Graphics, Figures & Tablesfigures ont text

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

figures ont text

Post by fhrttn »

Code: Select all

\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
2.png (59.87 KiB) Viewed 1716 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10329
Joined: Mon Mar 10, 2008 9:44 pm

figures ont text

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply