Skip to content

LaTeX error when figures are included but not referenced #109

@Tklauw-TNO

Description

@Tklauw-TNO

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions