Skip to content
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

Standalone workaround does not trigger #65

Closed
schillic opened this issue Sep 16, 2020 · 3 comments
Closed

Standalone workaround does not trigger #65

schillic opened this issue Sep 16, 2020 · 3 comments

Comments

@schillic
Copy link

The workaround for standalone catches a specific error message:

if !standaloneWorkaround() && occursin("\\sa@placebox ->\\newpage \\global \\pdfpagewidth", tex_log)

For me the error message differs and hence the workaround does not kick in:

\sa@placebox ...wd \sa@box \global \pdfpageheight

I tried on two different systems (Ubuntu and Fedora) and got the same error. I can of course work around this by manually enabling the workaround. But maybe you could consider generalizing the filter (I guess replacing ->\\newpage by a wildcard should do the trick).

@mykelk
Copy link
Member

mykelk commented Sep 16, 2020

Ah, interesting! Yes, feel free to file a PR with that filter. We don't want it to be too broad though, but what you describe seems okay. Which version of texlive are you running?

@schillic
Copy link
Author

feel free to file a PR with that filter

Alright, probably in the next days 🐌

Which version of texlive are you running?

Ubuntu: 2017; Fedora: 2019

@schillic
Copy link
Author

Sorry, this was a wrong report. I do get the same substring in the error message, so the issue is somewhere else.
For context, I want to use TreeView, which uses TikzGraphs for printing a tikz picture in a notebook. Somewhere in this pipeline there seems to be a problem for me (for at least one other person it seems to work). But I give up now and just always do this:

using TreeView
using TikzPictures  # workaround
TikzPictures.standaloneWorkaround(true)  # workaround
@tree exp(x^4 + 2) - x^3

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

No branches or pull requests

2 participants