[OS X TeX] inputting figures that are pfd files

Herbert Schulz herbs at wideopenwest.com
Mon Apr 10 08:53:32 EDT 2006

On Apr 10, 2006, at 5:52 AM, Bruce Kellogg wrote:

> Sorry to continue on this silly question. Following Ross Moore's  
> suggestion I use the
> command
> \includegraphics [viewport= 0 0 144 216,crop ]{fb2}
> and I get the error message:
>    --------------------
> ! Missing number, treated as zero.
> <to be read again>
>                    v
> l.137 ...aphics [viewport= 0 0 144 216,crop ]{fb2}
>    --------------------
> Bruce


This sounds like you are using the graphics package instead of the  
suggested graphicx package.

Try opening the pdf file with TeXShop. It should be a tightly cropped  
image; i.e., the ``page boundaries'' should be just outside of the  
image. I have a feeling that your figure is taking up a small part of  
a full page. The included graphics then tries to display the full  
page which doesn't fit.

If that is true you might be able to get a proper bounding box by  
going into Terminal (by the way that's where you execute the other  
command line commands suggested before), changing to the directory  
where the figure pdf is located and then run

pdfcrop figure.pdf

on your figure file (figure.pdf here) which would produce the file  
figure-crop.pdf. Opening that file in TeXShop should show the proper  
page size / bounding box.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/

More information about the MacOSX-TeX mailing list