[OS X TeX] Latex from command line vs. Texshop

Herbert Schulz herbs at wideopenwest.com
Wed Dec 8 15:46:08 EST 2010


On Dec 8, 2010, at 2:33 PM, Curiouslearn wrote:

> Hi All,
> 
> I have written a quiz in latex that has some .png figures in it (using
> the \includegraphics[scale=0.5]{moviebooks.png} command).
> 
> When I compile the file from my TexShop, it creates a PDF without
> errors but some warnings. However, if I compile it from the command
> line using
> 
> latex Quiz2.tex
> 
> I get the following error. I will post a minimal example if necessary.
> But possibly someone may know why this might happen. Any suggestions?
> 
>                           ! LaTeX Error: Cannot determine size of
> graphic in moviebooks.png (no BoundingBox).
> 
> Thanks very much for your help.

Howdy,

By default TeXShop uses pdflatex to typeset your document. The traditional latex command can only include eps and ps graphics so your png graphic won't work with it. On the command line use

pdflatex Quiz2.tex

and it should work fine.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list