Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help needed: LaTeX Error: Unknown graphics extension: .eps.

10,652 views
Skip to first unread message

ANNlearner

unread,
Jun 21, 2007, 5:21:01 PM6/21/07
to
Dear All:

I met a problem when try to include a eps file in LaTex.

Tha warning message is as following:

=========================================================================
! LaTeX Error: Unknown graphics extension: .eps.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.73 \includegraphics[scale=1]{pc1.eps}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
========================================================================

By the way, I try to convert a postscript file into esp file by
GSview, PS - EPS option. The type of the file is still postscript.

Could you do me a favor and give me some suggestions?

Thank you!

ANNlearner

Lars Madsen

unread,
Jun 21, 2007, 6:07:19 PM6/21/07
to

either you are not using LaTeX (but rather pdfLaTeX) or you are using
the wrong option to graphicx, please post a minimal example

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

ANNlearner

unread,
Jun 21, 2007, 6:20:07 PM6/21/07
to
Hi, Lars:

Thank you for your reply,

minimal example:

=================================================================================
\documentclass[10pt]{report}
\usepackage{graphicx} % package for insert graphics
\begin{document}
\includegraphics[scale=1]{pc1.eps}
\end{document}
==================================================================================

Error Message:
=================================================================================


! LaTeX Error: Unknown graphics extension: .eps.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.4 \includegraphics[scale=1]{pc1.eps}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

=================================================================================

Henk Koster

unread,
Jun 22, 2007, 2:18:54 AM6/22/07
to

This happens when using pdflatex or pdftex in conjunction with EPS
graphics. One way to fix this is to go the latex -> dvips -> ps2pdf route
for producing PDF output. Another (better, in my view) way is to use only
PNG graphics in conjunction with pdflatex or pdftex. Converting is simple
in Xfig, just export as PNG.

JD

unread,
Jun 22, 2007, 2:44:54 AM6/22/07
to
On 2007-06-22, Henk Koster <H.A.J....@xs4all.nl> wrote:
>
> Another (better, in my view) way is to use only
> PNG graphics in conjunction with pdflatex or pdftex. Converting is simple
> in Xfig, just export as PNG.
>

Replacing a vector image by a raster is often a very poor choice.
I would never do it.

Joseph Wright

unread,
Jun 22, 2007, 3:26:22 AM6/22/07
to
On Jun 22, 7:44 am, JD <j...@something.com> wrote:

> On 2007-06-22, Henk Koster <H.A.J.Kos...@xs4all.nl> wrote:
>
>
>
> > Another (better, in my view) way is to use only
> > PNG graphics in conjunction with pdflatex or pdftex. Converting is simple
> > in Xfig, just export as PNG.
>
> Replacing a vector image by a raster is often a very poor choice.
> I would never do it.

Or use epstopdf to make the eps files into pdfs (can be done on the
fly if you install epstopdf and use the epstopdf package).

Joseph Wright

Lars Madsen

unread,
Jun 22, 2007, 4:09:57 AM6/22/07
to

then you are using pdflatex, which does not support EPS-files. Either switch to
LaTeX (or learn what exactly it is that your editor does) or convert the EPS to
PDF using epstopdf and include that instead

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

http://www.minimalbeispiel.de/mini-en.html

ANNlearner

unread,
Jun 22, 2007, 4:27:31 PM6/22/07
to
Thanks for the replies. To be honest, I can not tell whether what I am
using is pdfLatex or pure Latex. What I know is the MikTex 2.5 and
TexMaker is installed in my computer. Is there any other disadvantage
in pdflatex comparing with pure latex in addition to can not include
eps figure?

Thank you!

ANNlearner

Peter Flynn

unread,
Jun 22, 2007, 6:02:57 PM6/22/07
to
ANNlearner wrote:
> Is there any other disadvantage in pdflatex comparing with pure latex
> in addition to can not include eps figure?

http://research.silmaril.ie/latex/chapter6.html#images

///Peter

ANNlearner

unread,
Jun 23, 2007, 7:59:16 AM6/23/07
to
Hi, Peter:

Thanks a lot of your link, it is very helpful. It seems that what I am
using is pdflatex since it given out the following error message when
I delete the filetype .eps from the /includegraphics command.

How can I get a standard LaTex?

Thank you,

ANNlearner

ANNlearner

unread,
Jun 23, 2007, 8:00:37 AM6/23/07
to
On Jun 23, 7:59 am, ANNlearner <lizh...@gmail.com> wrote:
> Hi, Peter:
>
> Thanks a lot of your link, it is very helpful. It seems that what I am
> using is pdflatex since it given out the following error message when
> I delete the filetype .eps from the /includegraphics command.
>
> How can I get a standard LaTex?
>
> Thank you,
>
> ANNlearner
>
Sorry I forgot to attach the error information:

=============================================================================================
! LaTeX Error: File `pc1' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.4 \includegraphics[scale=1]{pc1}

I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.PNG,.PDF,.JPG,.JPEG


Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

===============================================================================================


> On Jun 22, 6:02 pm, Peter Flynn <peter.n...@m.silmaril.ie> wrote:
>
>
>
> > ANNlearner wrote:
> > > Is there any other disadvantage in pdflatex comparing with pure latex
> > > in addition to can not include eps figure?
>
> >http://research.silmaril.ie/latex/chapter6.html#images
>

> > ///Peter- Hide quoted text -
>
> - Show quoted text -


Scott Pakin

unread,
Jun 23, 2007, 2:16:04 PM6/23/07
to
ANNlearner wrote:
> Thanks a lot of your link, it is very helpful. It seems that what I am
> using is pdflatex since it given out the following error message when
> I delete the filetype .eps from the /includegraphics command.
>
> How can I get a standard LaTex?

I'd recommend continuing to use pdflatex but converting your EPS files
into a format that pdflatex understands:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=pdftexgraphics

-- Scott

ANNlearner

unread,
Jun 25, 2007, 9:12:30 AM6/25/07
to
Thanks a lot for your reply, the link is very helpful.

Have a nice day!

ANNlearner

0 new messages