General.eps ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
robousy
Posts: 6
Joined: Wed Jun 24, 2009 9:42 pm

.eps ?

Post by robousy »

When compiling I'm having problems with MikTex reading my .eps figures.

Preamble

\usepackage{amssymb,amsmath,amsfonts}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{eepic,epsfig}
\usepackage{cite}

Code

\begin{figure}[tbph]
\begin{center}
\epsfig{figure=fig1.eps,width=11.5cm,height=7.5cm}
\end{center}
\caption{Due to the non-trivial boundary conditions imposed on the
quantum vacuum, the plates are pulled toward each other due to a
force that is purely quantum in nature.} \label{fig1}
\end{figure}

Error


LateX Error: Unknown graphics extension: .eps.


Any suggestions?????

A thousand thank-you's in advance!

Richard

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

.eps ?

Post by Keta »

Hi robousy,

Regarding your preamble, you should not use three packages for images. Instead of having graphicx, graphics and epsfig, with graphicx alone you have all you need.

As for the error, I bet you are using PDFLaTeX, which only recognizes jpg, png or pdf file extensions. So, you might convert your eps file into pdf with epstopdf, or use LaTeX (not PDFLaTeX) to compile your document. Also, the command for including graphics with the graphicx package is \includegraphics. And as a further advice, it's better to use \centering than center inside the figure environment.

Hope this helps,

Keta
robousy
Posts: 6
Joined: Wed Jun 24, 2009 9:42 pm

Re: .eps ?

Post by robousy »

Thanks Keta,

I just figured how to deal with this in my own solution, although yours sounds like it would probably be more elegant.

My solution was to use an eps to pdf converter, then convert the pdf to jpg and use standard LateX code.

The address for that is: http://www.ps2pdf.com/

It worked fine in the end - but it took my half the night to figure it out as I was trying to find fancy solutions so I could keep the eps.

Rich
Post Reply