TeXShop ⇒ eps Files don't work !?
eps Files don't work !?
\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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
Re: eps Files don't work !?
welcome to this board!
Don't use pdflatex, use latex instead. pdflatex does not support the eps format.
Stefan
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
eps Files don't work !?
Use the graphicx package only and modify your code as follows.TX_aero wrote:[…] I am using the packages epsfig and graphicx. […]
Code: Select all
\begin{figure}[!ht]
\centering
\includegraphics{rotor_upr.eps}
\caption{Default}\label{fig:default}
\end{figure}
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".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? […]
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: eps Files don't work !?
Re: eps Files don't work !?
\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
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
Re: eps Files don't work !?
welcome to the forum!
Could you post the logfile as attachment? Perhaps we could find the cause by reading it.
Stefan
Re: eps Files don't work !?
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