inclugraphic and textwidth 

Newsgroups: comp.text.tex
Date: 2002-09-23 07:55:03 PST
> I have included my grafics with the following:
>
> \usepackage{graphicx}
>
> \DeclareGraphicsRule {.tif}{.bmp}{}{}
>
>
> \begin{figure}[h]
>
> \begin{center}
>
> \includegraphics[width=6cm,heigh=6cm]{bilder/per_beanspr_1.bmp}
>
> \caption[GrenzSpg]{Beanspruchungsbereiche in Abha"ngigkeit von R}
>
> \end{center}
>
> \end{figure}
>
> Everything went good, but if i exchange my includegraphics with the
> following:
>
> \includegraphics[width=\textwidth]{bilder/per_beanspr_1.bmp}
>
> i get the error:
>
> ! LaTeX Error: Cannot determine size of graphic in bilder/per_beanspr_1.bmp
> (no size specifed).

LaTeX cannot determine the size of the graphic in bilder/per_beanspr_1.bmp because you did not specify the size fully (the height is missing). LaTeX needs to know how much space to reserve for the graphic, and it can't read in .bmp files itself in order to find out.

Read grfguide. You might use an externally generated .bb file if appropriate.

David Kastrup

inclugraphic and textwidth 

I think the problem lies in the fact that LaTeX cannot guess the bounding box from a .bmp file. Therefore the first way gives no errors, while the second one fails, because the height of the picture is unknown.

A better way should be to convert your pictures into EPS format.

Enrico