Skip to content

Pythontex and TikZ externalization  #184

Description

@Nnomis

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...

Activity

  1. gpoore commented on Jun 6, 2021

    @gpoore
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions