Skip to content

Conversation

@drgrice1
Copy link
Member

This moves the error warnings up to immediately after latex or pdflatex/xelatex (whichever is the latex2pdf program) runs. This way these errors are always warned.

When the TikZ.pm module was converted the the LaTeXImage.pm module and restructured for PTX output, it resulted in the case that a pdf file is the end result (such as for hardcopy) not having these warnings issued.

This is to address issue openwebwork/webwork2#2834.

@drgrice1 drgrice1 force-pushed the lateximage-warnings branch from cbb2b71 to 454fa21 Compare October 21, 2025 19:41
@drgrice1 drgrice1 force-pushed the lateximage-warnings branch 2 times, most recently from 8c9f1ff to 092afff Compare November 4, 2025 21:19
This moves the error warnings up to immediately after latex or
pdflatex/xelatex (whichever is the latex2pdf program) runs.  This way
these errors are always warned.

When the `TikZ.pm` module was converted the the `LaTeXImage.pm` module
and restructured for PTX output, it resulted in the case that a `pdf`
file is the end result (such as for hardcopy) not having these warnings
issued.

This is to address issue openwebwork/webwork2#2834.
@drgrice1 drgrice1 force-pushed the lateximage-warnings branch from 092afff to 8e09356 Compare December 2, 2025 11:44
Copy link
Member

@dlglin dlglin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now gives the full latex output when using "download hardcopy" in the problem editor, which I guess is the desired result (though it's a lot to read through).

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does give the full latex error, which as @dlglin mentioned is "a lot", but that's what you get in tex.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants