Hello everybody, I'm building a pdf with a latex template, and every single entry in the TOC as well as the .toc file is duplicated likle this: \contentsline {section}{Verification}{11}{section*.20}% \contentsline {section}{Verification}{11}{section*.20}% I'm absolutely stumped, I would like to untangle pandoc's and latexmk's invocations to at least know what source code to read but I can't figure that out. The repository is at https://gitlab.com/tywonemi-school-stuff/titania/doc and you need latexmk, inkscape, and this latex template/cls to build it. If it helps, here's what the Makefile runs: pandoc analysis.md \ -s \ --filter pandoc-minted/pandoc-minted.py \ --filter pandoc-svg/pandoc-svg.py \ --data-dir=. \ --template=ctuthesis.tex \ --bibliography bibliography.bib \ --pdf-engine=latexmk \ --pdf-engine-opt=-outdir=temp \ --pdf-engine-opt=-shell-escape \ --pdf-engine-opt=-bibtex \ -o doc.pdf If I let it generate .tex, it has sections looking as expected: \hypertarget{verification}{% \section{Verification}\label{verification}} Any suggestions where to look would be much appreciated. I found zero cases of somebody's .toc items being duplicated and zero information on how the .toc is even generated. Thanks, Emil J -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7713e9c1-1056-4891-996b-1297e2145913n%40googlegroups.com.