Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
5.96k stars 954 forks source link

pandoc fails to use eisvogel template #349

Closed wjfeeney closed 11 months ago

wjfeeney commented 12 months ago

macOS 13.4.1(c)

I use the command pandoc -t pdf FILENAME.md --pdf-engine=xelatex --reference-doc=/Users/williamfeeney/.local/share/pandoc/templates/eisvogel.latex -o FILENAME.pdf

The output file looks like it was formatted with pandoc's default.latex template, not with the eisvogel template., dated 4/17/2023. I've used other templates in my templates file to test the output, but all look like the default output. Am I doing something wrong in my command?

cagix commented 12 months ago

You might want to use the option --template=/Users/williamfeeney/.local/share/pandoc/templates/eisvogel.latex.

The option --reference-doc is supposed to be used for the docx-format (cf. https://pandoc.org/MANUAL.html#options-affecting-specific-writers).

wjfeeney commented 12 months ago

@cagix Thank you! That is the solution.