# Tag Info

1

The original LaTeX code found on page 3 of this document, on which your question seems to be based on, requires the packages graphicx.sty and color.sty (or xcolor.sty) to work. A slightly different approach is to make additional use of the package import.sty: \usepackage{graphicx,import,xcolor} \newcommand{\executeiffilenewer}[3]{% \ifnum\pdfstrcmp% ...

5

Actually it's the other way round:-) the path mechanism is implemented for \input and \includegraphics locally sets it to the value given in \graphicspath . So most efficient is don't use \graphicspath just set TEXINPUTS="D:/work/figures;" before you run latex which will add that folder to the start of the search path. Or, if you want to use the ...

4

unfortunately svg loads a load of packages not directly related to svg inclusion itself including subfig which is incompatible with subcaption. You can suppress subfig inclusion by: \documentclass{article} \usepackage{subcaption} \expandafter\def\csname ver@subfig.sty\endcsname{} \usepackage{svg} \usepackage{hyperref} \begin{document} ...

2

I think you are using latex you need to use pdflatex --shell-escape svg-test and also it seems that you need to not put the extension in the file, and do not use px units, in fact there is no need to specify the height and width at all. \documentclass{article} \usepackage{svg} \usepackage{amsmath} \begin{document} \begin{figure} \centering ...

0

Since inkscape just moves your text as is, i was able to simply embed latex into the text itself. This isn't the most elegant solution but it does work. The only "gotcha" is that the text location is based on where in the svg the text starts. So if you start your text with a latex command that gets interpreted, the text will end up where the latex starts. ...

6

As David Carlisle points out, the error is in the fact that \includesvg calls \newread\SVG@in@file at every call (and also does \newwrite\SVG@out@file. This is a big error, because LaTeX doesn't free an allocated output/input stream after usage. You can fix the bad behavior by patching \@includesvg: \documentclass{article} \usepackage{svg} ...

Top 50 recent answers are included