Graphics, Figures & TablesHeight of single row in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
totalnewbi
Posts: 11
Joined: Wed Sep 15, 2010 2:44 pm

Height of single row in table

Post by totalnewbi »

Hi forum,

does anybody know whether I can adjust the height of single rows in a table without influencing the other?

Cheers
Newbi
Last edited by totalnewbi on Thu Sep 23, 2010 1:55 am, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Height of single row in table

Post by frabjous »

Try putting a length on the \\ at the end of the row, e.g., \\[2ex].
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Height of single row in table

Post by gmedina »

Hi,

there's a number of ways to achieve what you desire; however, the simpler approach (in my opinion) would be to use some of the commands provided by the makecell package; a little example:

Code: Select all

\documentclass{article}
\usepackage{makecell}

\begin{document}

\begin{tabular}{cc}
  Column1a & Column2a \\
  Column1b & \Gape[1cm][1cm]{Column2b} \\
  Column1c & Column2c \\
  Column1d & Column2d \\
\end{tabular}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
totalnewbi
Posts: 11
Joined: Wed Sep 15, 2010 2:44 pm

Re: Height of single row in table

Post by totalnewbi »

OK, thanks for your replies. The [2px] thing does not work. The gape stuff does, but not as I want. Basicly what I want to do is to add an empty row somewhere inside the table which is very thin. This \Gape somehow does not let me define small values (like 1pt..).

Any Ideas?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Height of single row in table

Post by gmedina »

Change 2ex in frabjous's suggestion to 1pt or 3pt or whatever value you need.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
totalnewbi
Posts: 11
Joined: Wed Sep 15, 2010 2:44 pm

Height of single row in table

Post by totalnewbi »

OK guys, with your help and some trying I found the solution. I had to add

Code: Select all

\\[-2ex]
to the line to shrink it.

Thanks a lot!

Newbi
Post Reply