Skip to content

Lack of useful error messages when LaTeXImage fails #2834

@dlglin

Description

@dlglin

When latex fails to compile a TikZ image for inclusion in hardcopy the user gets two warnings:

  • Image file production failed. at [PG]/lib/LaTeXImage.pm line 265.
  • Error generating graph for [WW]/htdocs/tmp/...

There doesn't appear to be a way to access the actual error messages produced by latex when trying to generate the image. In LaTeXImage.pm the temp files are all deleted regardless of whether the compilation was successful.

Two thoughts:

  1. Add a conditional to LaTeXImage.pm that preserves the temp files if compilation failed or if preserve_temp_files is set.
  2. If compilation fails for an image, then return the contents of the latex.err file in addition to the "Image file production failed" warning.

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