Take the 2-minute tour ×

How can I introduce some vertical spaces in the table before the headers in Latex. The method I use below has introduced a gap, but the gap is too big. How can I have a more controllable vertical gap?

         Parameters & ~ \\ \hline
         \rule{0pt}{3pt} & ~ \\

        ~ & ~ \\
share|improve this question

migrated from stackoverflow.com May 29 '12 at 15:12

This question came from our site for professional and enthusiast programmers.

See the answer to Column padding in tables for different ways of padding rows/columns with whitespace. –  Werner May 29 '12 at 16:00

1 Answer 1

LaTeX doesn't really have a perfect answer for it. You can add or substract space vertically by using \\[<value>]. However this will appear above the rule if you use \hline.

So a poor man's solution would be:

     Parameters & ~ \\ \hline
       &            \\[-5pt]        % adjust value as necessary                            
     x & y \\ \hline
share|improve this answer
anyway to get this below the line? –  Androidian Jun 1 '12 at 9:46
@Androidian my solution shows a way to get a space below the line by producing an empty table row and backtrack. That is the only "out-of-the-box" solution available. The array package also has \extrarowheight, but that applies to all rows not to individual ones. –  Frank Mittelbach Jun 1 '12 at 10:14

Your Answer


