0

I would like to add one specific located horizontal space in a table (not after all rows like here). For instance, \addlinespace works perfectly well but not when vertical lines are added.

 \centering
        \begin{tabular}{|c|c|} 
    \hline
        blabla & blabla\\ \hline
\addlinespace
        blabla & blabla\\ \hline
        blabla & blabla\\ \hline
    \end{tabular}

Any suggestion will be appreciated. Please let me know if there is a more efficient and parsimonious solution.

  • \addlinespace is from booktabs, a package which does not really support vertical lines or better: booktabs is a package that is designed to provide nicely looking tables -- which is most times not the case for tables with vertical lines –  Mar 06 '16 at 20:45
  • you mean vertical space, not horizontal I think. – David Carlisle Mar 06 '16 at 22:54
  • 2
    use \\[5cm] to add extra space without breaking the lines. – David Carlisle Mar 06 '16 at 22:55
  • Thanks @DavidCarlisle but \\[5cm] works only before \hline. I would prefer to have the horizontal space after \hline, which is the purpose of \addlinespace – emeryville Mar 07 '16 at 07:29
  • Really it is more normal to call that vertical space (it pushes the following line down, like \vspace) horiziontal space pushes the following things to the right, like \hspace the standard mechanism to do that without breaking likes is to replace \addlinespace by \rule{0pt}{5xm} – David Carlisle Mar 07 '16 at 08:05
  • Thanks @DavidCarlisle for the rule option. Yes, in the future I will call it vertical space! – emeryville Mar 07 '16 at 08:48
  • Thanks @ChristianHupfer. For a while I thought that the use of vertical lines was a matter of taste to avoid any ambiguity when using \multicolumn. But I tried the package booktabs more seriously and it designs nice looking tables with no ambiguity. – emeryville Mar 07 '16 at 08:52

1 Answers1

2

You can increase the space under the \hrule by increasing the height of the next row for example replacing \addlinespace by \rule{0pt}{40pt} for some suitable height 40pt.

David Carlisle
  • 757,742