-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Restart pgf's latex instance after bad latex inputs. #15969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -276,3 +277,14 @@ def test_pdf_pages_lualatex(): | |||
pdf.savefig(fig) | |||
|
|||
assert pdf.get_pagecount() == 2 | |||
|
|||
|
|||
def test_tex_restart_after_error(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to add
@needs_xelatex
@pytest.mark.backend('pgf')
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think only the first one (the backend will be autoswitched anyways), thanks.
... and also move the warning about pgf-to-stream not supporting raster images to when actually outputting a raster image (otherwise the warning is spurious, and affects e.g. test_tex_restart_after_error).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the issue for me
Thank you all for working on this! |
You're welcome, thanks for pointing out the issue :) |
This is being backported in the above PR. |
... and also move the warning about pgf-to-stream not supporting raster
images to when actually outputting a raster image (otherwise the warning
is spurious, and affects e.g. test_tex_restart_after_error).
Closes #15968.
PR Summary
PR Checklist