7

(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?

theHigherGeometer
  • 2,027
  • 2
  • 15
  • 24

1 Answers1

5

The svg2tikz --figonly option generates a tikzpicture environment which can be included in a TeX document.

Werner
  • 603,163
ws6079
  • 176