I would like to use the .pdf_tex
option for my SVG images exported from Inkscape because it's an amazing feature but it doesn't work as intended.
What I do:
Export image from Inkscape
Integrate into TeX by
\begin{figure} \centering \def\svgwidth{\columnwidth} \input{N1N2N3.pdf_tex} \end{figure}
Compile
Result:
In the PDF
My original SVG:
So thats not what I expected. Can you help me to get it tidy and neat?
So I fixed it partly by using
\begin{center}
\resizebox{2in}{!}{\input{inkscapeout.pdf_tex}}
\end{center}
to scale text and image together but I still got a problem with the xlabel of the graph because the numbers are moved into the graph and also the legend is moved a little upward.
New result
I uploaded my original svg-file here
\put(0,0.007){\includegraphics[width=\unitlength]{N1N2N3.pdf}}%
(around line 50). However, if you are not using any LaTeX code in your graphs, maybe exporting to eps is easier?\includesvg
apparently treats text in your figure independently, so that it is rendered by LATEX by default. Probably the best way to solve this is to change the optioninkscapelatex
to false. See this answer.