tags:

views:

485

answers:

3

I tried doing:

imports:

\usepackage{color}  
\usepackage{epsfig}

figure code:

\begin{figure}[htbp]    
 \begin{center}
 \psfig{file=filename.latex} 
 \caption{caption}
 \end{center}
\end{figure}

It says:

! LaTeX Error: Cannot determine size of graphic in filename.latex (no BoundingBox).

ideas?

thanks

A: 

From here, for figures missing bounding boxes you may add options of the form:

bbllx=foo,bblly=bar,bburx=baz,bbury=quux

to the command making:

\psfig{file=filename.latex,bbllx=foo,bblly=bar,bburx=baz,bbury=quux}

to set the bounding box. It seem to imply that this forces the bounding box on all postscript figures if you need to override the values in a figure that has a bounding box.

The link also contains information on several other options that you might find useful.

dmckee
A: 

there is a pretty good explanation on how to combine xfig and latex in: LaTeX and Xfig

Guy
A: 

if your figure is actually post-script, then give it the proper file extension (.ps) and you may want to convert it into encapsulated post-script (.eps) or to PDF if you're using pdflatex. i believe .eps should carry bounding box information.

Mica