Graphics, Figures & Tables ⇒ graphics with .eps
graphics with .eps
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?
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
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: graphics with .eps
graphics with .eps
Thanks for the information, but unfortunately I still have a problem.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.
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?
graphics with .eps
Sorry. Eliminate the .pdf extension in the second case.betbetbet wrote:Thanks for the information, but unfortunately I still have a problem.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.
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?