Hi!
I’m running into a recurring problem during get_paper(add_citations=True).
Denario generates a .tex file that contains at least one figure block like this:
\begin{figure}
\includegraphics{...}
—but without the corresponding \end{figure}.
As a result:
- Pandoc fails completely with
expecting \end{figure}
\end{document}
^
- The built-in PDF generation does produce a PDF, but the output is truncated and the content stops early — likely due to the malformed environment.
This also causes the citations step to fail.
Question:
- Is this a known issue?
- How can I avoid Denario generating incomplete figure environments?
- Is there some recommended configuration to ensure valid LaTeX output?
Thanks!