Wandmalfarbe / pandoc-latex-template

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

Latex error \footref already defined #271

Closed sahumphreys closed 2 years ago

sahumphreys commented 2 years ago

Just found this error popping up on a system that was previously working fine:

stderr: Error producing PDF. ! LaTeX Error: Command \footref already defined. Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.6172 }

The file being converted is just a basic test markdown file, and calling on pandoc (v 2.9) to convert using the eisvogel template:

pandoc test.md --pdf-engine=xelatex --from markdown --template=eisvogel -o test.pdf

(Windows 10 OS, Pandoc 2.9, Miktex)

Any thoughts?

Th30n3and0nly commented 2 years ago

I ran into the same issue (Linux, pdfTeX 3.141592653-2.6-1.40.23 (TeX Live 2021/Arch Linux), pandoc 2.17.1.1).

Without having a deep understanding on how to properly fix this, I was able to get it to work with the help of https://komascript.de/release3.32 (known issues).

Try to add \let\footref\relax before \documentclass[ ... in the template file eisvogel.latex

sahumphreys commented 2 years ago

That sorted it ... thanks