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:
- Add a conditional to LaTeXImage.pm that preserves the temp files if compilation failed or if
preserve_temp_files is set.
- If compilation fails for an image, then return the contents of the latex.err file in addition to the "Image file production failed" warning.
When latex fails to compile a TikZ image for inclusion in hardcopy the user gets two warnings:
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:
preserve_temp_filesis set.