TeXShopeps Files don't work !?

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
TX_aero
Posts: 2
Joined: Tue Jun 17, 2008 10:25 pm

eps Files don't work !?

Post by TX_aero »

I'm using the latest version of TexShop to put together a report. I generated some .eps figures with Tecplot that I want to include. I am using the packages epsfig and graphicx. My basic structure for the figure is the following:

\begin{figure}[!h]
\begin{center}
\epsfig{file=rotor_upr.eps}
\caption{{\bf default}}
\label{default}
\end{center}
\end{figure}

When I try to typeset the document, I get an error message saying "!LaTeX Error: Unknown graphicsextension: .eps". Does anyone have any idea what the issue is with this? Thanks

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Re: eps Files don't work !?

Post by Stefan Kottwitz »

Hi TX_aero,

welcome to this board!
Don't use pdflatex, use latex instead. pdflatex does not support the eps format.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

eps Files don't work !?

Post by localghost »

TX_aero wrote:[…] I am using the packages epsfig and graphicx. […]
Use the graphicx package only and modify your code as follows.

Code: Select all

\begin{figure}[!ht]
  \centering
  \includegraphics{rotor_upr.eps}
  \caption{Default}\label{fig:default}
\end{figure}
But you have to avoid special characters like "_" in the path and the name of the graphics file. The caption package helps you to customize captions. Refer to its documentation to learn more.
TX_aero wrote:[…] When I try to typeset the document, I get an error message saying "!LaTeX Error: Unknown graphicsextension: .eps". Does anyone have any idea what the issue is with this? […]
Since you want to include EPS files, you have to compile your source code with latex. If you want to compile with pdflatex, you have to convert your EPS files to PDF. This conversion can be done with epstopdf on the command prompt or with the epstopdf package "on the fly".


Best regards and welcome to the board
Thorsten¹
TX_aero
Posts: 2
Joined: Tue Jun 17, 2008 10:25 pm

Re: eps Files don't work !?

Post by TX_aero »

Thanks for the advice guys. I appreciate it.
ccrummer
Posts: 2
Joined: Fri Jun 20, 2008 1:36 pm

Re: eps Files don't work !?

Post by ccrummer »

I am using Version 2.14-svn (2.14) of TeXShop and I can get neither .pdf nor .eps figures to appear in the typeset .pdf document. With

\usepackage{graphics}

the LaTeX code I'm using for the .pdf version is:

\begin{figure}[!ht]
\begin{center}
\includegraphics{./pdf/Figa.pdf}
%\epsfile{file="./eps/Figa.eps",scale=0.8}
\caption{{\bf Flows over a Wing}}
\label{fig:ina}
\end{center}
\end{figure}

Thanks for your help.

Charlie
User avatar
Stefan Kottwitz
Site Admin
Posts: 10319
Joined: Mon Mar 10, 2008 9:44 pm

Re: eps Files don't work !?

Post by Stefan Kottwitz »

Hi Charlie,

welcome to the forum!
Could you post the logfile as attachment? Perhaps we could find the cause by reading it.

Stefan
LaTeX.org admin
udayr
Posts: 1
Joined: Fri Jun 29, 2012 3:04 pm

Re: eps Files don't work !?

Post by udayr »

Hey Im sorry, If I had not understood from the above discussion.
My problem is same, I want to use the *.eps file from illustrator.
But later in latex i want to change some variables of this picture with symbols.
But my latex is converting the eps file to pdf.
pls some one help me how to use *.esp file without converting to pdf.
I'm using TexShop 2.47

Thanks in advance
Post Reply