I was using latex for a while on Linux and I was using SVG. I remember it was a very hard time to fix the errors specially the one saying

Now, installed TeXStudio and latest version of InkScape, MikTex and required packages.

Making a simple test tex:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{color}
\usepackage{graphicx}
\graphicspath{ {images/} }     %%%% file path here
\usepackage{svg}
\usepackage[margin=0.5in]{geometry}
\usepackage{float}
\usepackage{subfig}

\begin{document}

\begin{figure}[H]
\centering
\includesvg[width=140mm]{samplecar}  %%%%%%%%%% error here
\caption{aaaaaaa}
\label{fig:aaaaaaaa}
\end{figure}

\end{document}


Creating a folder called images and putting a file inside it called samplecar.svg.

I am getting error:

File ./samplecar' not found. \includesvg[width=140mm]{samplecar}

Even copying samplecar.svg in the same path with .tex file does not help.

Where am I making mistake?

Please avoid linking to this question as it does not help me.

• Please tell us why How to include SVG diagrams in LaTeX does not help you? Note that the linked post mentions you could convert SVG to PDF using Inkscape, rather than including it directly. – Werner Apr 30 '15 at 2:35
• @Werner in Linux I could include SVG files directly and I want to do the same thing in windows. When I switch between my operating systems, the file must be compiled in the same way. – zekri Apr 30 '15 at 2:41
• You cannot include the SVG directly. On Linux, you were converting the files and you must do the same on Windows. It may have looked as if you included them directly because the conversion was done automatically, but the images were converted or you'd not have been able to use them at all. Given that, I assume you want something like this setup. Have you installed all of the necessary programmes? (Note that you need ImageMagick for conversion and pdftops.) – cfr Apr 30 '15 at 2:44
• Welcome to TeX SE, by the way! – cfr Apr 30 '15 at 2:45
• @crf, I did not have pdftops` however in the download link, there is no installation. Just a few exe files. I followed the instructions of that Tex SE answers and no difference in the result. – zekri Apr 30 '15 at 3:05