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

Pythontex and TikZ externalization #184

Open
Nnomis opened this issue May 9, 2021 · 1 comment
Open

Pythontex and TikZ externalization #184

Nnomis opened this issue May 9, 2021 · 1 comment

Comments

@Nnomis
Copy link

Nnomis commented May 9, 2021

Is it possible to externalize TikZ pictures ?
I read on stack that it seems like the answer is no.
I'm using pycode and pysub everywhere to write exercices.
Can I hope a solution ? It would be so amazing.
Currently the only things that really make my compilations slow down are the tikzpictures, and I'm kind of desperate about that...
I'm using subfiles waiting for a better solution...

@gpoore
Copy link
Owner

gpoore commented Jun 6, 2021

PythonTeX is not currently compatible with TikZ externalization. It may be possible to add support for that at some point in the future, so I will leave this issue open for now.

Possible workaround: If you are generating the TikZ code using Python, you could save the TikZ code to its own separate file and then use Python's subprocess.run() to create a PDF from this.

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

No branches or pull requests

2 participants