## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ figures ont text

Information and discussion about graphics, figures & tables in LaTeX documents.
fhrttn
Posts: 12
Joined: Thu Nov 16, 2017 2:43 pm

### figures ont text

\begin{figure}[h]\centering\includegraphics[totalheight=0.35\textheight]{b.eps}\caption{awd}\label{40cafig}\end{figure}

I have used this version to add figures. But figures overflow, "(I attached an example)".
Attachments
2.png (59.87 KiB) Viewed 534 times

Stefan Kottwitz
Posts: 8979
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

the code is ok. (I just would use [ht] at least, and I usually prefer the more relaxed [!htbp]).

It is an EPS figure, which has a bounding box, that states the figure dimensions. I guess that the bounding box is wrong. There are ways to fix it, if that is the case. Perhaps post that EPS image here as attachment, to look into it, or open it with a graphics software, fix the bounding box, or convert it.

Stefan