allefeld / pytikz

A Python interface to TikZ
GNU General Public License v3.0
65 stars 11 forks source link

Allow adding arbitrary document code #8

Open soraxas opened 1 year ago

soraxas commented 1 year ago

I'm using this PR as follows:

pic.usepackage("tikz-3dplot")

pic.add_document_code(r"\tdplotsetmaincoords{70}{110}")
pic.add_document_code(r"\tdplotsetmaincoords{60}{90}")

where

\tdplotsetmaincoords{70}{110}

is not part of the preamble (which is supported currently), but it needs to be in-between

\begin{document}
...
\end{document}