Graphics, Figures & TablesHow do I put an image next to the text?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
joeschmidt
Posts: 4
Joined: Sat Jan 17, 2009 6:34 pm

How do I put an image next to the text?

Post by joeschmidt »

Right now I have this list:

AB = 1991

BC = 67

CD = 1984 Image goes here

DE = 49

EF = x

FA = y

I am aiming to put the image
\includegraphics[scale=0.5]{challenge3.png}
right next to the large blank space to the right of this list, because right now wherever I put this line for the graphics, it move down the rest of the text, like if I put it after BC = 67, it will create a huge space between BC = 67 and CD = 1984 where the image is, and I don't want that. Thanks!

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

How do I put an image next to the text?

Post by phi »

Put the \includegraphics command inside a \smash command, then it is treated like a zero-height object:

Code: Select all

\smash{\includegraphics[scale=0.5]{challenge3.png}}
Another possibility would be setting the bounding box in the \includegraphics command, please read the grfguide document to find out how to do this.
Post Reply