GeneralProblem with jpg and eps file in compiling

General information and discussion about TeXnicCenter
Post Reply
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Problem with jpg and eps file in compiling

Post by pban92 »

My thesis has both jpg and eps figures. In texniccenter I can compile my thesis without any probolem if I use only jpg (latex > pdf) or eps (latex > ps > pdf) figures.

What should I do if I want to keep both jpg and eps figures and compile successfully?

Many thanks!

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Problem with jpg and eps file in compiling

Post by frabjous »

Plain latex cannot handle .jpg; pdflatex cannot handle .eps. Your best bet would be to convert the .eps files to .pdf for use with pdflatex, either by using the epstopdf command line program, or adding the epstopdf package to do this "on the fly". One last option would be to try compiling with xelatex, the newer versions of which I think can handle both eps and jpg.
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Problem with jpg and eps file in compiling

Post by MartinC »

You can keep files in both eps and jpg format (note that pdf would be better than jpg). Just don't enter the file extension in your includegraphic calls and Latex will choose the right one.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with jpg and eps file in compiling

Post by localghost »

MartinC wrote:You can keep files in both eps and jpg format (note that pdf would be better than jpg). [...]
Since when? Which compiler (except XeLaTeX) manages that? As far as I know this feature will find it's way into TeX Live 2010.


Best regards
Thorsten
Post Reply