$if(lot)$ \listoftables $endif$ is literally writing $if(lot)$, then the list of tables, then $endif$ this is in a file I wrote called contents.tex that I include from main.tex ... \begin{document} \include{cover} \pagestyle{plain} \include{contents} ... The pandoc command i use is pandoc --listings --bibliography ../test/bib/complete-pub-1.bib ../test/pandoc/complete-pub-1.json --filter=pandoc-citeproc --csl ../chicago-fullnote-bibliography.csl --latex-engine=lualatex --template=main.tex -o published2.pdf For the most part main.tex is the default pandoc-citeproc latex template. I have incrementally switched things around.If you want to see the exact files that I am working with they are here: https://github.com/pubpub/prosemirror-to-pandoc/tree/master/templateRecreation Thank you. -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0e3bdc5d-c284-4a7d-8ed7-ce2714b449e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.