(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 \includeing 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.pyto get just atikzpictureenvironment, without the full document preamble?" – Jake Dec 11 '13 at 07:48\begin{document}and after the\end{tikzpicture}. I think that thestandaloneclass does something similar. – Andrew Stacey Dec 11 '13 at 08:29