LaTeX forum ⇒ Graphics, Figures & TablesHeight of single row in table

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

Height of single row in table

Postby totalnewbi » Thu Sep 23, 2010 12:24 am

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.

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

Postby frabjous » Thu Sep 23, 2010 12:29 am

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

Postby gmedina » Thu Sep 23, 2010 12:35 am

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:

  1. \documentclass{article}
  2. \usepackage{makecell}
  3.  
  4. \begin{document}
  5.  
  6. \begin{tabular}{cc}
  7. Column1a & Column2a \\
  8. Column1b & \Gape[1cm][1cm]{Column2b} \\
  9. Column1c & Column2c \\
  10. Column1d & Column2d \\
  11. \end{tabular}
  12.  
  13. \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

Postby totalnewbi » Thu Sep 23, 2010 1:25 am

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

Postby gmedina » Thu Sep 23, 2010 1:33 am

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

Postby totalnewbi » Thu Sep 23, 2010 1:54 am

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



to the line to shrink it.

Thanks a lot!

Newbi


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 4 guests