Graphics, Figures & Tables ⇒ figures in table
figures in table
I am making a table document, meaning that the whole document will be a table. It seems to work absolutely fine, except when I \includegraphics. The figure shows at the right place, but the text in the next column is align at the bottom of the figure, leaving a blank. Is there anyway to remove this blank, and to have the text next to my figure. Cheers
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: figures in table
It seems like the compiler aligns the first line of text in each column. Therefore, having a figure on top, forces the text in the next cell to be align at the bottom of the figure.
Cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
figures in table
This is more a workaround than a real solution. Show with a sample table what you want to do and we will see how to get it working.fatra2 wrote:I found a solution that suits me pretty well. I just need to add a new line in the cell on top of the figure. [...]
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
figures in table
the base line of included graphics is at the bottom, this could cause that alignment. Have a look here: Vertical alignment of graphics, you could try that \vspace{0pt} hack or use \raisebox for example.
Or post a piece of your code.
Stefan
figures in table
And you are absolutely right, this is a workaround. But this is the only suitable workaround I found up to now. I have tried with raisebox, but then the text that is raised never breaks line.This is more a workaround than a real solution.
The appearance is quite suitable for me, specially that I have a few figures in my table. I would look for a real solution if I would have all the time in the world, and many more figures to include.
Thank you for your help. Cheers