Hi,
When I was trying to inculde a *.eps file using Latex=>PDF, the adobe acrobat produce a warning saying that
"there was an error opening the document. the file is damaged and could not be repaired." I could not see any output PDF file.
The attahed is the logfile. My code is as followed
\begin{figure}[ht]
\centering
\includegraphics[width=6.0in]{linear.eps}
\caption{Amplitude}
\label{fig:mass_same_amplitude}
\end{figure}
Could anyone please kindly help me?
Thanks a lot,
Jane
General ⇒ include *.eps figure using texnicCenter
include *.eps figure using texnicCenter
- Attachments
-
- transfer report.log
- log
- (13.84 KiB) Downloaded 207 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include *.eps figure using texnicCenter
This fault is done very often, as a search in the forum would reveal. You cannot compile with pdflatex when trying to include EPS files. Convert them with the epstopdf or "on the fly" with epstopdf package. If the origin of the files is different from EPS (such as JPG or PNG), keep them in that format. Omit the suffix *.eps from the files. The compiler will search the right file format if provided.
Best regards and welcome to the board
Thorsten¹
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: include *.eps figure using texnicCenter
Hi Thorsten
Thanks a lot for your reply.
I am so sorry that I am new to the Latex and TexnicCenter, and I also did see some solusion talking about "convert them with the epstopdf or 'on the fly' with epstopdf package". But I don't know how to do this, so could you kindly explain this in detail please?
Thanks again,
Jane
Thanks a lot for your reply.
I am so sorry that I am new to the Latex and TexnicCenter, and I also did see some solusion talking about "convert them with the epstopdf or 'on the fly' with epstopdf package". But I don't know how to do this, so could you kindly explain this in detail please?
Thanks again,
Jane
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include *.eps figure using texnicCenter
As I noticed after a closer look at the log file you are already using the epstopdf package. But you have not enabled the shell escape option, which is set on MiKTeX with --enable-write18. Go to the dialogue window to define the build profiles (Alt+F7) in TeXnicCenter and adapt the profiles by adding this switch in the command line arguments for the compiler. You can see some explaining screenshots in another topic [1]. At the moment I'm not running Windows, but in case of further difficulties I will generate some additional screenshots later.
[1] LaTeX => PS => PDF
[1] LaTeX => PS => PDF
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
include *.eps figure using texnicCenter
localghost wrote:As I noticed after a closer look at the log file you are already using the epstopdf package. But you have not enabled the shell escape option, which is set on MiKTeX with --enable-write18. Go to the dialogue window to define the build profiles (Alt+F7) in TeXnicCenter and adapt the profiles by adding this switch in the command line arguments for the compiler. You can see some explaining screenshots in another topic [1]. At the moment I'm not running Windows, but in case of further difficulties I will generate some additional screenshots later.
[1] LaTeX => PS => PDF
It DOES work when I enabled the option, thanks a lot!!