Graphics, Figures & Tablesfigures in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

figures in table

Post by fatra2 »

Hi there,

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

Recommended reading 2024:

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

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

fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Re: figures in table

Post by fatra2 »

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.

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

figures in table

Post by localghost »

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. [...]
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.


Best regards
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

figures in table

Post by Stefan Kottwitz »

Hi fatra2,

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
LaTeX.org admin
fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

figures in table

Post by fatra2 »

This is more a workaround than a real solution.
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.

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
Post Reply