Skip to content

Commit 4b3a10e

Browse files
committed
Fix pandoc 2.1+ errors
See jgm/pandoc#4246 for details on '-latex_macros'.
1 parent 0d32647 commit 4b3a10e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

00-FrontMatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ include-before: |
3939
\begingroup
4040
The source code for this book is available at
4141
[https://github.com/LearnYouSomeComputer/Tools-For-Computer-Scientists](https://github.com/LearnYouSomeComputer/Tools-For-Computer-Scientists).
42-
\input{.commit-info}
42+
\input{.commit-info.tex}
4343
4444
We welcome questions, corrections, and improvements!
4545
\endgroup

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ book: ${TITLE}.pdf
3737
@echo -e "\n\nDone! Be sure to print that bad-boy using short-edge duplexing."
3838

3939
${TITLE}.pdf: ${MD_PIECES} template.tex .commit-info.tex
40-
pandoc --latex-engine=xelatex --template=template.tex --from markdown+${EXTENSIONS} --output ${TITLE}.pdf ${MD_PIECES}
40+
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE}.pdf ${MD_PIECES}
4141

4242
${TITLE}.tex: ${MD_PIECES} template.tex .commit-info.tex
43-
pandoc --latex-engine=xelatex --template=template.tex --standalone --from markdown+${EXTENSIONS} --output ${TITLE}.tex ${MD_PIECES}
43+
pandoc --pdf-engine=xelatex --template=template.tex --standalone --from markdown-latex_macros+${EXTENSIONS} --output ${TITLE}.tex ${MD_PIECES}
4444

4545
%.pdf: 00-FrontMatter.md %*.md .commit-info.tex
46-
pandoc --latex-engine=xelatex --template=template.tex --from markdown+${EXTENSIONS} --output $@ $(filter %.md, $^)
46+
pandoc --pdf-engine=xelatex --template=template.tex --from markdown-latex_macros+${EXTENSIONS} --output $@ $(filter %.md, $^)
4747

4848
# .git/index is updated every time a commit, checkout, etc. occurs.
4949
# .dirty is updated the first time the index goes clean -> dirty.

0 commit comments

Comments
 (0)