Skip to content

Commit

Permalink
Makefile: 针对 pandoc 更新。
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperVector committed Jul 2, 2018
1 parent 89beca7 commit 2bf8610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PROJECT = owl-rescue-guide owl-taxon-guide
TEMPLATE = pandoc-caspervector.tex
LATEX = xelatex
PANDOC_FLAGS = -s --latex-engine=${LATEX} --template=${TEMPLATE} \
-V ctex --no-tex-ligatures --toc -N
PANDOC_FLAGS = -s -t latex-smart -V ctex --toc -N \
--pdf-engine=${LATEX} --template=${TEMPLATE}

all: ${PROJECT:%=%.pdf}
debug: ${PROJECT:%=%.tex}
Expand All @@ -11,7 +11,7 @@ debug: ${PROJECT:%=%.tex}
pandoc ${PANDOC_FLAGS} -H ${@:%.pdf=%.h.tex} $< -o $@

%.tex: %.rst %.h.tex
pandoc -s ${PANDOC_FLAGS} -H ${@:%.tex=%.h.tex} $< -o $@
pandoc ${PANDOC_FLAGS} -H ${@:%.tex=%.h.tex} $< -o $@

.PHONY: clean distclean
clean:
Expand Down

0 comments on commit 2bf8610

Please sign in to comment.