I have a LaTeX file that works on my Linux machine. The code for SVG graphics is the following:
Code: Select all
\graphicspath{{gen/}{fig/}}
\newcommand{\includegraphicsvg}[2][]{%
\ifnum\pdfstrcmp{\pdffilemoddate{fig/#2.svg}}%
{\pdffilemoddate{gen/#2.pdf}}>0%
{\immediate\write18{inkscape -z -D --file=fig/#2.svg %
--export-pdf=gen/#2.pdf --export-eps=gen/#2.eps %
--export-area-drawing}}\fi%
\includegraphics[#1]{#2}%
}
Code: Select all
\begin{figure}
\centering
[stransko odpiranje]{\label{fig:ste1}\includegraphicsvg[width=0.40\textwidth,height=0.40\textwidth,keepaspectratio]{ste1}}
\caption{Pozicija nasedov stekel, pri različnih načinih odpiranja}
\label{fig:stea}
\end{figure}
As I see it, the Inkscape fails to run. I already added path variable for my Inkscape location. Thanks in advance.! LaTeX Error: File `ste1' not found.