Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to add some space between rows of my threeparttable. One way is to add \midrules, but that adds lines which are visually confusing. Is there a \midspace command?

Side question: Is threeparttable the best table to use in memoir?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

The booktabs package provides \addlinespace, which by default adds a space equal to that of \midrule.

\documentclass{article}

\usepackage{booktabs}

\begin{document}

\begin{tabular}{cc}
\toprule
letter & number \\
A & 1 \\
B & 2 \\
\midrule
C & 3 \\
\addlinespace% adds \defaultaddspace (by default 5pt)
D & 4 \\
\addlinespace[3pt]
E & 5 \\
\bottomrule
\end{tabular}

\end{document}

enter image description here

In case you didn't know: The booktabs manual is a must read on "how to build typographic pleasant tables" (Sveinung).

share|improve this answer
1  
I suggest that to your answer you add a recommendation to Booktabs’ excellent documentation on how to build typographic pleasant tables. –  Sveinung Mar 17 '12 at 11:55
add comment

You can add vertical space in the optional argument of the \\ command:

\begin{tabular}{l}
test \\
test \\[\smallskipamount]
test
\end{tabular}

\smallskipamount, \medskipamount and \bigskipamount are predefined lengths that are used by \smallskip, \medskip and \bigskip vertical spacing commands. Of course, you can also specify any other length in the optional argument.

Using (not too big) vertical space to separate parts of a table should be typographically fine. But, IMO, rules should be preferred for caption rows or "total" rows.

share|improve this answer
    
That looks great. What's the default if I don't specify anything? (Just to understand.) –  Neil G Mar 17 '12 at 11:09
    
@NeilG: The default is no additional space :-) –  Andrey Vihrov Mar 17 '12 at 11:10
1  
I see: these are additional to the default space. Thanks :) –  Neil G Mar 17 '12 at 11:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.