Installation and Setup
You can set your system up for either manual mode or an integrated setup.
You run the commands from the command line. This is a useful approach if you want to use Latex in the cloud (such as with Overleaf.com) and you don't want to install Latex in your system.
When you compile your latex code, icemaker and inkscape will automatically update the appropriate files. This way, you can easily include figures in your latex document and make changes to the figures, recompile and everything is updated.
Setting PATH for command line access
In both manual mode and integrated setup, you will need add to your PATH the directories where the executable code is for both Inkscape and Icemaker. This will allow calling Inkscape and Icemaker from anywhere in your system.
Information on how to set your PATH is below
The best way to include an svg file into Latex is by using Inkscape
You should be using Inkscape version 1.0 or above.
(versions below 1.0 have issues with exporting for latex)
You can use LTSpice with its built in symbols but it is suggested you add an svg library to improve the schematic drawing experience.
- For Windows ... typically in C:"user"\Documents\LTspiceXVII\lib\sym\svg (svg is the new added directory)
- For MAC ... typically in "user"/Library/ApplicationSupport/LTspice/lib/sym/svg (svg is the new added directory)
Windows: C:\Program Files\
Test Manual Setup
Run the following 2 commands on ex01.asc file:
icemaker -export=ex01.svg ex01.asc
inkscape -D --export-filename=ex01.pdf --export-latex ex01.svg
Include the resulting .pdf_tex file using \input into your latex document
Test Integrated Setup
For example, in texmaker, this flag can be added in preferences as
"/Library/TeX/texbin/latex" --shell-escape -interaction=nonstopmode %.tex
"/Library/TeX/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex
the "--shell-escape" flag is required so that Latex can call a command line app
In this example, one LTSpice figure is included into a latex document. The LTSpice figure is automatically converted to an svg file (using icemaker) and then the svg file is included (using inkscape). You should be able to delete all the files in the tmp directory and when run again, they should be re-generated automatically.