I am writing a document in markdown with inline citations [@ref]. References are stored in a separate biblatex file managed with betterbibtex and zotero.
I am then using pandoc to render this to PDF output (via LaTeX). I am using a publicly available template (https://github.com/Wandmalfarbe/pandoc-latex-template). I have modified it but I have tested everything below with an unmodified version.
It has been working absolutely fine rendering the document nicely. No changes to the template and it has stopped working and produces an error:
! Undefined control sequence.
<argument> ...size \sf@size \selectfont \citeproc
{ref-ref1}{1}, \ci...
l.581 \citeproc{ref-ref2{2}}
Mac OS X - Up to date
Pandoc v3.1.7
Mactex last update March 2023
I have tested and pandoc can still render a docx without issue.
I can still render a PDF in latex without the template
I have not changed the template.
I have also tried running this on a basic test.md which contained minimal text and a single reference. Works without template as soon as I add template no luck.
I have asked it to render to .tex and had a look at the code it produces and can't find anything odd. Although I've not worked out quite how citeproc defines the /citeproc command as in my experience with LaTeX (limited) this happens when a command hasn't been defined or a package hasn't been loaded.
I think I can reasonably assume that I have isolated the problem to the template. However, I cannot:
a. see how to fix it or
b. Understand why the issue has suddenly cropped up
My understanding is that with v3.1.6 and 3.1.7 there have been some changes on how templates interact. If that's the case anyone have any suggestions on what may need to be changed or any workaround I could try?