% test `svglatex` alone.
\documentclass[10pt]{article}
\usepackage{graphicx,color}
\graphicspath{{./img/}}
\begin{document}
\begin{figure}
\centering
\def\svgwidth{0.6\textwidth}
\immediate\write18{svglatex -i ./img/beautiful -m latex-pdf}
\input{./img/beautiful.pdf_tex}
\caption{Nice caption.}
\label{fig:label}
\end{figure}
\end{document}
