I'm trying to use the svg package, for some svg files I have in a graphics/ subdirectory. My includegraphics command used to be:
\includegraphics{graphics/foo.png}
Now, if I write:
\includesvg{graphics/foo.svg}
I get this issue: The package needs you not to specify the file extension. But if I write
\includesvg{graphics/foo}
I get:
! LaTeX Error: File `./graphics/foo' not found.
and even if I set the path and write:
\includesvg[svgpath=./graphics/]{foo}
I still get:
! LaTeX Error: File `./graphics/foo' not found.
Finally, the svg package documentation says:
The path to the svg can be specified using the svgpath option, where the path must terminate in a /.
So that last attempt should have gotten me there. But just to be on the safe side, I tried:
\includesvg[svgpath=./graphics/.]{foo}
and still got
! LaTeX Error: File `./graphics/.foo' not found.
What should I do then?

-shell-escape? – einpoklum Mar 23 '16 at 11:25latexmkdescribes how to do it – egreg Mar 23 '16 at 11:31latexmk -shell-escape mydocument, and getting the same errors as you were getting (! LaTeX Error: File <filename> not found). – Filip S. Oct 21 '16 at 06:52