Skip to content

Missing \end{figure} inserted into generated LaTeX — known issue? How to avoid it? #30

Description

@anvarKhakimov

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:

  1. Is this a known issue?
  2. How can I avoid Denario generating incomplete figure environments?
  3. Is there some recommended configuration to ensure valid LaTeX output?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions