I am trying to get the svg package working on an OSX system. If I use inkscape to save the *.svg files as *.pdf and *.pdf_tex, then the sample file from this question works fine:
\documentclass{article}
\usepackage{svg}
\usepackage{amsmath}
\begin{document}
\begin{figure}[htbp]
\centering
\includesvg{example}
\caption{svg image}
\end{figure}
\end{document}
But no matter what I try, the package will not create the pdf and pdf_tex files automatically. Instead I get an error:
! LaTeX Error: File `./example' not found.
I have added inkscape to the PATH. I've added the --shell-escape
option to the latex command... I'm at a loss.
inkscape -z -C -f./example.svg -A./example.pdf --export-latex
which may give some hints about what's going wrong. – egreg Dec 25 '15 at 23:37which inkscape
. If this returns no answers, the problem is, that LaTeX can't findinkscape
at all. – Rico Dec 26 '15 at 0:00** (inkscape-bin:821): WARNING **: Can't open file: example.svg (doesn't exist)
. This looks to be related to a Mac python issue with directories. However, I've tried every combination on that webpage and nothing works. – weymouth Dec 26 '15 at 9:11which inkscape
gives/usr/local/bin/inkscape
. Even if I run the command using the full path - I have the same issue. – weymouth Dec 26 '15 at 9:13