[OS X TeX] Bounding Boxes for jpg Files

Maarten Sneep maarten.sneep at xs4all.nl
Mon Jun 6 21:36:04 CEST 2005

On 6 Jun 2005, at 3:24, Sam.Bradley wrote:

> I am using TeXShop 1.34 on Moc OS X 10.3.9.  Over the past 10  
> months, I have
> been slowly migrating a autobiography from the PC world to the Mac  
> OS X
> world.  I have been able to migrate my document (including 100’s of  
> graphics
> in .jpg format) without problem until today.  Today, as I entered my
> ‘standard’ command for including a new graphic,

just a little nitpicking here: the center environment will add  
vertical space, which you may want when centring a portion of text  
within normal justified text, but probably not for a figure. Use the  
\centering declaration instead.

> \begin{figure
>     \begin{center}
>         \includegraphics[width=\columnwidth]
>         {../jpeg/Sam-Eileen-15Dec2001.JPG}\\
>         \color{blue}\caption[15 December 2001 - Sam Jr. and Eileen]{15
> December 2001 - Sam Jr. and Eileen immediately prior to graduation
> ceremonies for Sam's Masters Degree}
>         \index{Bradley!Samuel Edward, Jr.}
>         \index{Anderson!Eileen}
>     \end{center}
> \end{figure}
> I was told that TeXShop could not determine the size of the graphic  
> due to a
> lack of a bounding box.  In the PC world, I would have included a  
> ‘bb=0 0 x
> y’ command immediately following the width command and the system  
> would have
> been happy.  TeXShop does not seem to like the bb command.

It is in the graphics bundle, so there's nothing for TeXShop to like...
> Any ideas on how to feed the bounding box information directly to  
> TeXShop or
> how to embed the bounding box information in the .jpg file so that  
> TeXShop
> can find it?  Thanks.  Sam.....

I think the jpg is missing resolution or size information, which may  
upset latex (some division by zero or something). It shouldn't need  
it, since the pixel count is there, but alas. I would use Graphic  
Converter to set a resolution and see if that helps.

Maarten--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the macostex-archives mailing list