Graphics, Figures & Tablesgraphics with .eps

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
betbetbet
Posts: 14
Joined: Thu Jan 22, 2009 10:15 am

graphics with .eps

Post by betbetbet »

Hi,

I've searched the internet and I seem to be getting little help from what I read.

Anyway, when I write:

{
\centering
\resizebox{!}{3.0in}{\includegraphics{mn3p5s.eps}}
}

with packages,

\usepackage{amsfonts}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{amsmath}
\usepackage{fontenc}
\usepackage{amssymb}
\usepackage{dsfont}

I get the following error:

"unknown graphics extension: .eps"

Can anyone suggest anything else?

Recommended reading 2024:

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

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

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

Re: graphics with .eps

Post by josephwright »

Normally you should omit the extension of the graphics file. I suspect that you are trying to generate PDF output directly (pdflatex) rather than going via DVI (latex -> dvips -> ps2dpf). You can't use EPS graphics directly with PDF output: convert them with eps2pdf.
Joseph Wright
betbetbet
Posts: 14
Joined: Thu Jan 22, 2009 10:15 am

graphics with .eps

Post by betbetbet »

josephwright wrote:Normally you should omit the extension of the graphics file. I suspect that you are trying to generate PDF output directly (pdflatex) rather than going via DVI (latex -> dvips -> ps2dpf). You can't use EPS graphics directly with PDF output: convert them with eps2pdf.
Thanks for the information, but unfortunately I still have a problem.

I can convert my files easily to .pdf and that's no problem, however, I still need them in my document. So with the same packages:

Typing

{
\centering
\resizebox{!}{3.0in}{\includegraphics{mn3p5s.pdf}}
}

Causes the compiler to run until it hits this code block and the compiler terminates. The LaTeX file is then not able to open.

Typing

{
\centering
\resizebox{!}{3.0in}{\includegraphics{mn3p5s.pdf}}
}

returns a file not found error

Any more ideas?
betbetbet
Posts: 14
Joined: Thu Jan 22, 2009 10:15 am

graphics with .eps

Post by betbetbet »

betbetbet wrote:
josephwright wrote:Normally you should omit the extension of the graphics file. I suspect that you are trying to generate PDF output directly (pdflatex) rather than going via DVI (latex -> dvips -> ps2dpf). You can't use EPS graphics directly with PDF output: convert them with eps2pdf.
Thanks for the information, but unfortunately I still have a problem.

I can convert my files easily to .pdf and that's no problem, however, I still need them in my document. So with the same packages:

Typing

{
\centering
\resizebox{!}{3.0in}{\includegraphics{mn3p5s.pdf}}
}

Causes the compiler to run until it hits this code block and the compiler terminates. The LaTeX file is then not able to open.

Typing

{
\centering
\resizebox{!}{3.0in}{\includegraphics{mn3p5s.pdf}}
}

returns a file not found error

Any more ideas?
Sorry. Eliminate the .pdf extension in the second case.
Post Reply