1
votes

MWE:

---
lang: hu
---

"Test quotation"

If I run pandoc test.md -o test.pdf, I get the following error:

Error producing PDF.
! Undefined control sequence.
l.66 `

This seems to happen because of the Hungarian language setting. How do I avoid this? If I remove lang: hu from the YAML block, pandoc succeeds in building the pdf file, but of course with English quotation marks. I would like to have localised, Hungarian quotation marks...

1

1 Answers

1
votes

This happens because pandoc is using pdfTeX by default, not XeLaTeX. Specify your preferred engine by adding the option --pdf-engine=xelatex to your pandoc call. (The option was named --latex-engine=xelatex before pandoc 2.)