-
Notifications
You must be signed in to change notification settings - Fork 111
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
external generates pdf file with multiple copies of the same image #1372
Comments
I guess the cause here is that the
|
The
Both are included in TeX Live 2024. |
Duplicate of #759 |
Thank you. |
Brief outline of the bug
Please look at the MWE and run it.
Have a look at the externalized file "a-triangle.pdf".
Then delete "a-triangle.pdf" and change the align environment to equation.
In the first case there are two copies of the same file.
In the second case there is only one.
It seems that if there are more instances of \tikzsetnextfilename in a document with the same output name, the outputs are re-run and written to the same file. align needs to run its contents twice while equation does not.
This is a variation of what is discussed here: https://tex.stackexchange.com/questions/668448/tikz-externalize-creating-pdf-with-repeated-images
In my opinion this is a bug, since the TikZ picture is not supposed to change during re-runs. Alternatively, I could use a workaround: how can I tell tikz to generate only one copy of the triangle in the externalised output and reuse it immediately?
Minimal working example (MWE)
The text was updated successfully, but these errors were encountered: