GeneralInserting PDF and EPS images

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
klebestift
Posts: 4
Joined: Thu Feb 28, 2008 1:45 pm

Inserting PDF and EPS images

Post by klebestift »

Hi, I'm a new latex user, but I'm having issues insetring graphics into my document.

I used the advice in an earlier post using \usepackage{graphicx} and removing spaces in the file name to insert PDFs and that works fine.
But I also want to insert .eps images (they are plots I created in maple and then exported in EPS format).
... how do I go about this? If I've understood what I've read, it seems that you can't have both types in the same document?
Thanks for any advice,
k

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Inserting PDF and EPS images

Post by gmedina »

Effectively, if you want to obtain a final document in PDF format you better convert your EPS images to PDF format.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
klebestift
Posts: 4
Joined: Thu Feb 28, 2008 1:45 pm

Re: Inserting PDF and EPS images

Post by klebestift »

Is there any way of doing that without reducing the quality of the graphics?
klebestift
Posts: 4
Joined: Thu Feb 28, 2008 1:45 pm

Re: Inserting PDF and EPS images

Post by klebestift »

ok, so I've worked out that If I compile my document into a DVI file then I can include eps images. Seems as I'm going to be including more eps images than jpg this makes sense.
So...Is there anyway of converting jpg images to eps?
Thanks again
k
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inserting PDF and EPS images

Post by localghost »

The conversion from a pixel based format (JPG) to a vector based format (EPS) would result in bad quality of the converted graphics hence its no good idea. A good solution would be to convert the EPS files with the command line tool epstopdf or on the fly with the epstopdf package.


Best regards
Thorsten
klebestift
Posts: 4
Joined: Thu Feb 28, 2008 1:45 pm

Re: Inserting PDF and EPS images

Post by klebestift »

ok. *brain whirs slowly*
What do I need to do to make use of epstopdf... do I just need to put \usepackage{epstopdf} or do i need to install something...?
Thankyou :|
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Inserting PDF and EPS images

Post by localghost »

klebestift wrote:[…] do I just need to put \usepackage{epstopdf} or do i need to install something […]|
Just include the package in the preamble and pay special attention to sections 1.2 and 1.3 of the documentation. Regarding the hints in section 1.2, you may have to adapt some settings in your editor. Other settings for the package are made via options.
Post Reply