(Apologies if this is too far from topic, but I thought it might be of interest to some here)
I am writing a makefile to take a bunch of SVGs that I have drawn and turn them into TikZ pictures via SVG2TikZ, but not stand-alone .tex
files as is the default - I will be \include
ing these in another file. I have no issues with the makefile. The documentation for command line usage of SVG2TikZ however is sadly not quite up to scratch. The following code works to give a stand-alone file:
python tikz_export.py Tux.svg -o tux.tex
(taken from TeXample.net, using the Tux image linked to at the blog post, and also my own SVGs using appropriate substitutions).
I could conceivably hack the code, but I'd rather not (the relevant bits are near the bottom). Can anyone see a way of calling from the command line and getting a TikZ picture?
tikz_export.py
to get just atikzpicture
environment, without the full document preamble?"\begin{document}
and after the\end{tikzpicture}
. I think that thestandalone
class does something similar.