Thanks for the feedback! I simply was not aware of the fact that every @ string is apparently automatically converted into a Cite block in the AST, even without using citeproc (?). Anyhow, being aware of this fixed the problem. I've attached the filter, if someone is interested. It is still very raw and only for HTML (adding latex shouldnt be a huge problem though). Thanks again for the help! With best wishes, Thomas William Lupton schrieb am Mittwoch, 29. November 2023 um 15:49:45 UTC+1: > From the information given, I think that the AST must still contain a > fig:fig1 citation after your filter has run. Are you able to share your > filter? > > On Wed, 29 Nov 2023 at 13:28, 'Thomas J.' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > >> Hi everyone, >> >> Since pandoc-fignos isn't working anymore (at least, with my Pandoc >> version), I have written a Lua filter that basically does what fignos does, >> namely replacing tags such as @fig:fig1 with anchors/refs to the figures in >> html/latex. Now, if I am trying to use this filter without citeproc, >> everthing works as expected. The moment I use --citeproc, I get the error >> message "fig:fig1 citation not found" and I have no link in my output file. >> I am actually calling the lua filter BEFORE --citeproc in the command >> line... >> >> pandoc --lua-filter=filter/pandoc-figref.lua --citeproc --number-sections >> --from markdown --template=templates/phimisci-1-5.html --bibliography= >> $BIBLIOGRAPHY --csl=csl/apa7-single-spaced.csl yaml/gen-metadata.yaml >> article/$1 article/$2 -o $HTMLFILE >> >> What am I missing? Thanks for the help! >> >> Best wishes, >> Thomas >> >> -- >> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/15e09292-83a1-4e28-ba84-d0c518be709dn%40googlegroups.com >> >> . >> > -- 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/ee97eefb-cb70-4bf9-859c-e75448438894n%40googlegroups.com.