I ran into an issue when using the pandoc-fignos filter and pandoc to create a PDF (through pdflatex) from markdown. The issue occurs in the following situation:
- The markdown file contains one or more figures, none of which are referenced.
- The pandoc-fignos option 'fignos-plus-name' is set to some value.
The issue is that pdflatex, called by pandoc, crashes with the error
!Undefined control sequence.
l.XX \crefname
From what I understood the problem occurs because the filter decides it does not need to include the 'cleveref' package. However, the option 'fignos-plus-name' tries to redefine the \crefname command provided by the 'cleveref' package.