Svg2TikZ can be used in three different ways:
- as an Inkscape extension
- as a command line tool
- as a python module
SVG2TikZ has the following dependencies:
- lxml (not required if SVG2TikZ is run as an inkscape extension)
- xclip or pbcopy (required only if you want clipboard support on Linux or Os X)
xclip is a command line tools available in most Linux distributions. Use your favorite package manager to install it. pbcopy is a command line tool available i OS X.
SVG2TikZ is not bundled with Inkscape. You therefore have to install it manually.
The extension consists of the following files:
tikz_export.py
, extension codetikz_export_effect.inx
, effect setup filetikz_export_output.inx
, output setup file
Installing is as simple as copying the script and its INX files to the Inkscape extensions directory. The location of the extensions directory depends on which operating system you use:
- Windows
C:\Program Files\Inkscape\share\extensions\
- Linux
/usr/share/inkscape/extensions
or~/.config/inkscape/extensions/
- Mac
/Applications/Inkscape.app/Contents/Resources/extensions
or~/.config/inkscape/extensions/
Additionally the extension has the following dependencies:
inkex.py
simplestyle.py
simplepath.py
- lxml
The dependencies are bundled with Inkscape and normally you don't need to install them yourself. However, if the extension is not loaded, copy the following files to the same directory as you put the tikz_export*
files.
inkex.py
simplestyle.py
simplepath.py
The above files should be bundled with Inkscape. Look in the main extensions directory. You can also download them from the repository
SVG2TikZ started out as an Inkscape extension, but it can also be used as a standalone tool.