Graphics, Figures & Tables ⇒ JPEG or EPS figures in a Latex document?
JPEG or EPS figures in a Latex document?
Hello,
I am looking to include figures in JPEG format into my report...which accepts only .EPS figures..
Which command should I add...
\usepackage{graphicx}
otherwise, if you have any Latex report template, that would be very helpful...
Many Thanks
I am looking to include figures in JPEG format into my report...which accepts only .EPS figures..
Which command should I add...
\usepackage{graphicx}
otherwise, if you have any Latex report template, that would be very helpful...
Many Thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: JPEG or EPS figures in a Latex document?
Hi Sam,
pdfLaTeX supports inclusion of jpeg files directly. \usepackage{graphicx} would be sufficient, but choose compilation to pdf, not to dvi/ps.
Stefan
pdfLaTeX supports inclusion of jpeg files directly. \usepackage{graphicx} would be sufficient, but choose compilation to pdf, not to dvi/ps.
Stefan
LaTeX.org admin
Re: JPEG or EPS figures in a Latex document?
Hi Steph,
Thanks for the advice!
I have included
\usepackage{graphicx}
but still latex do not like it.
I would be grateful if you could send me a template of a latex report...
I am quite novice...
Thanks
Thanks for the advice!
I have included
\usepackage{graphicx}
but still latex do not like it.
I would be grateful if you could send me a template of a latex report...
I am quite novice...
Thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
JPEG or EPS figures in a Latex document?
I remember that you're using TeXnicCenter. So, choose the output profile LaTeX => PDF instead of LaTeX => DVI or LaTeX => PS.
Stefan
Stefan
LaTeX.org admin
Re: JPEG or EPS figures in a Latex document?
Thanks Stef for teh prompt response.
I tried for a JPEG file but it did not work... is there a trick?
Thanks
I tried for a JPEG file but it did not work... is there a trick?
Thanks
JPEG or EPS figures in a Latex document?
Sam wrote:Thanks Stef for teh prompt response.
I tried for a JPEG file but it did not work... is there a trick?
Thanks
JPEG should work with pdflatex. Are you using latex not pdflatex?
When you say "it does not work", that is not very helpful. How does it not work? Post your log file if need be.
Re: JPEG or EPS figures in a Latex document?
Hello,
Thanks for ur help!
Yep I am using Latex ==> PDF
Attached is the log file..
I guess I can t use both EPS and PDF/JPEG in the same document?
Thanks for ur help!
Thanks for ur help!
Yep I am using Latex ==> PDF
Attached is the log file..
I guess I can t use both EPS and PDF/JPEG in the same document?
Thanks for ur help!
- Attachments
-
- log.JPG (65.85 KiB) Viewed 5278 times
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: JPEG or EPS figures in a Latex document?
Yes, if you're using pdf/jpg you cannot use eps. That's the reason of the error message in the log: unknown graphics extension: eps.
Convert the eps to pdf, it's possible in perfect quality with the tool epstopdf. Use it on the command prompt.
Or try \usepackage{epstopdf} in your document.
Stefan
Convert the eps to pdf, it's possible in perfect quality with the tool epstopdf. Use it on the command prompt.
Or try \usepackage{epstopdf} in your document.
Stefan
LaTeX.org admin
Re: JPEG or EPS figures in a Latex document?
Thanks Stef, you area STAR! but it still did not work!
I get a void figure with just the frame ...
see attached please.
Thanks,
I get a void figure with just the frame ...
see attached please.
Thanks,
- Attachments
-
- log1.JPG (10.26 KiB) Viewed 5276 times
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
JPEG or EPS figures in a Latex document?
That may be caused by a draft Option to \documentclass or the graphicx package. Check those two lines.
Stefan
Stefan
LaTeX.org admin