Register to reply

PS and Jpg in Latex Files

by ed2288
Tags: jpeg, jpg, latex, postscript
Share this thread:
Mar26-11, 10:58 AM
P: 25
Hi everyone,

I was wondering if someone could clarify how to put both .ps and .jpg files in the same latex file.

At the minute I'm having to convert all my .jpgs to .ps using photoshop then compiling my latex file by going Latex->PS->PDF. However all my converted jpgs look all pixelated and frankly pretty rubbish.

*Surely* there must be a way to include both .jpgs and .ps files, people need to do this all the time.

When I try to include jpgs I get error messages saying no Bounding Box. Can anyone help me out?

Phys.Org News Partner Science news on
'Smart material' chin strap harvests energy from chewing
King Richard III died painfully on battlefield
Capturing ancient Maya sites from both a rat's and a 'bat's eye view'
Mar27-11, 04:23 PM
Sci Advisor
P: 1,724
When you say "include both .jpgs and .ps files" does that mean that you're actually using the \include function? If so, there's your problem: ps is postscript, which LaTeX will include in your actual document (it just so happens that your .ps codes for an image, so things happily chug along).

If so, take a look at some of the examples here:

Don't forget to \usepackage{graphicx}!

If not, well, I've never run into that particular problem before--can you post the offending code?
Mar27-11, 05:49 PM
P: 313
There's a program called ebb to Extract Bounding Boxes.

It's easy to get for *nix

And for windows is distributed with miktex. Here's a page with tips

Apr26-11, 10:46 AM
PF Gold
cobalt124's Avatar
P: 147
PS and Jpg in Latex Files

Just want to post a quick thankyou to contributors in this thread. I've been having problems importing gifs into a pdf via latex and you have fixed my problem(s). I'm just converting jpgs to eps's and following what ed2288 and matlabdude suggest. The resultant image isn't perfect but is fit for purpose. Thanks.

Register to reply

Related Discussions
Latex .bst files for APL Math & Science Software 9
Latex files for APL Academic Guidance 5
PDF files Programming & Computer Science 3
Bat files Computing & Technology 2