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-latexwhich 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 findinkscapeat all. – Rico Dec 26 '15 at 00: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 09:11which inkscapegives/usr/local/bin/inkscape. Even if I run the command using the full path - I have the same issue. – weymouth Dec 26 '15 at 09:13/Applications/Inkscape.app/Contents/Resources/bin/inkscape(this is the script which runs inkscape). I've got the svg example in/Users/weymouth/Downloads/svg. – weymouth Dec 26 '15 at 13:58