General ⇒ include *.eps figure using texnicCenter
include *.eps figure using texnicCenter
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
- Attachments
-
- transfer report.log
- log
- (13.84 KiB) Downloaded 215 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
include *.eps figure using texnicCenter
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: include *.eps figure using texnicCenter
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
[1] LaTeX => PS => PDF
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!!