# Include eps in Latex

Recently I wanted to include a directed graph in a LaTeX doc­u­ment. unfortunately I couldn’t import an svg file to my document. So which meant I had to find another alternative method rather than converting the file to any other image format to avoid rasterization.
 $sudo apt-get install inkscape $ inkscape -z image.svg image.eps --export-eps=image.eps 
to receive the EPS(Encapsulated Postscript Vector graphics) file which I wanted to include in LaTeX. Run­ning Gummi with pdfla­tex for type­set­ting on a file con­tain­ing
 \begin{figure}[!htb] \centering \includegraphics[scale=.7]{image.eps} \caption{image} \label{fig:image} \end{figure} 
how­ever returns the error
 ! LaTeX Error: Unknown graphics extension: .eps. 

This can be resolved by adding
 \usepackage{epstopdf} 
which allows to con­vert eps images to pdf for use with pdfla­tex. This works perfect.