# How to include file with extension SVG in LaTeX(Tex.tex)? [duplicate]

Is there a way to include svg figures directly into LaTeX? I have only mySVG.svg file and myTex.tex file. The big question is how to include this svg into my file with extension tex. I tried all examples in this forum, but without any results for me.

Important! I have only .svg and .tex file, not .pdf_tex or my svg in pdf format. Is it possible to generate them with latex syntaxis.

Maybe i need something like this (BUT THIS NOT WORKING FOR ME)

 \newcommand{\includesvg}[1]{%
{inkscape -z -D --file=MYSVG.svg %
--export-pdf=MYSVG.pdf --export-latex}%


and if this code generate PDF inside in \begin{document}

\begin{figure}
\centering
\includegraphics[width=\columnwidth]{MYSVG.pdf}
\caption{FIRST SVG}
\label{fig:normal}
\end{figure}

-

## marked as duplicate by Masroor, Jesse, doncherry, Peter Jansson, ThorstenJan 17 at 13:31

I suspect the issue is that you don't have inkscape. Or that you're on windows and need to add it to your path. If it's neither of these be sure to run pdflatex --shell-escape myfile.tex so that pdflatex to allow pdflatex to call inkscape. LaTeX CANNOT READ SVG, so you need to convert it somehow, transparently inline using the code you have posted or the SVG package. –  Chris H Jan 17 at 15:28