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


how­ever returns the error

! LaTeX Error: Unknown graphics extension: .eps.

This can be resolved by adding


which allows to con­vert eps images to pdf for use with pdfla­tex. This works perfect.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s