Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.13k stars 959 forks source link

Figure numbers reset for every chapter/markdown file #374

Open p3t3rc opened 8 months ago

p3t3rc commented 8 months ago

Hi,

I'm using the template to generate a PDF from multiple markdown files for a book (I've got some tex in so pre-processing). The figures are re-starting at 1 for every chapter when I use the eisvogel template (but not the default PDF template).

I'm using these options:

$ pandoc -f markdown+latex_macros -t pdf -s --file-scope=true --toc --top-level-division=chapter -V "book" -V "footer-left= " -V "titlepage=true" frontmatter.tex *.md metadata.yaml

I experimented with the latex output and discovered it can be avoided if section numbering is on (but I'd prefer not to have section numbers).

Any help to resolve would be appreciated.

Thanks