blynn / gitmagic

A guide to using Git
http://cs.stanford.edu/~blynn/gitmagic/
GNU General Public License v3.0
1.92k stars 669 forks source link

make fails with the "--latex-engine" option of pandoc (debian sid) #55

Closed blonchkman closed 5 years ago

blonchkman commented 5 years ago

it seems that the option --latex-engine is no longer valid for pandoc 2.2.1 (debian sid) Workaround: replace --latex-engine with --pdf-engine Many thanks to all people working on this document. Kind regards

index fe25ef2..286e026 100644
--- a/Makefile
+++ b/Makefile
@@ -60,22 +60,22 @@ $(foreach l,$(LANGS),book-$(l).html): book-%.html: book-%.xml
    pandoc -s -f docbook -t html5 -o $@ $^

 $(foreach l,$(LANGS),book-$(l).pdf): book-%.pdf: book-%.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex $^
+   pandoc -s -f docbook -o $@  --pdf-engine=xelatex $^

 book-ru.pdf: book-ru.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex -V mainfont='DejaVuSansMono' $^
+   pandoc -s -f docbook -o $@ --pdf-engine xelatex -V mainfont='DejaVuSansMono' $^

 book-uk.pdf: book-uk.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex -V mainfont='DejaVuSansMono' $^
+   pandoc -s -f docbook -o $@ --pdf-engine xelatex -V mainfont='DejaVuSansMono' $^

 book-ko.pdf: book-ko.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+   pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^

 book-zh_cn.pdf: book-zh_cn.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+   pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^

 book-zh_tw.pdf: book-zh_tw.xml
-   pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+   pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^

 $(foreach l,$(LANGS),book-$(l).epub): book-%.epub: book-%.xml
    pandoc -s -f docbook -o $@ $^
blynn commented 5 years ago

Thanks! I just updated the repo.