GeneralteXnicCenter can't handle .eps files ?

General information and discussion about TeXnicCenter
Post Reply
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

teXnicCenter can't handle .eps files ?

Post by juliette »

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}
\includegraphics[width=\textwidth]{myfigure.eps}
\end{figure}

\end{document}
gives me the error:
! Latex Error: Unknown graphics extension: .eps.


while if I input a .jpg or .png file instead it works.

How do I get around this ?? I don't want to convert all 800 eps figures into jpg's!

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

teXnicCenter can't handle .eps files ?

Post by josephwright »

Your using pdfLaTeX, I suspect. First, remove the extension from your \includegraphics line. Then either switch to latex (dvi output) or include something like

Code: Select all

\usepackage{epstopdf}
in your preamble to automatically convert EPS files to PDF for inclusion.
Joseph Wright
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Re: teXnicCenter can't handle .eps files ?

Post by juliette »

I switched it to output a .dvi file instead of .pdf,
and the diagrams came out perfectly in my .dvi file, but then when I sent the .dvi file to someone by e-mail, the figures were gone.

Is this usual ?
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: teXnicCenter can't handle .eps files ?

Post by josephwright »

Yes. The DVI file just contains pointers to the EPS information, which the viewer may or may not handle. You can either send the EPS files along with the DVI, or convert the DVI to PS and then to PDF, which will then be self-contained.
Joseph Wright
donutzeatpeople
Posts: 1
Joined: Thu Apr 08, 2010 5:19 am

teXnicCenter can't handle .eps files ?

Post by donutzeatpeople »

To josephwright: thanks a lot for the tip! I was having the same problem and I just added:

Code: Select all

\usepackage{epstopdf}
as you recommended. Thanks and take care!
Post Reply