TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example,

\begin{tabular}{c c}
    $f^{(n)}(x)$ & $f^{(n)}(0)$ \\
    $-2xe^{-x^{x^{x^2}}}$ & 0 
\end{tabular}

This looks awkward because of the powers of x. I wonder if there is an option to expand the vertical spaces between these rows?

share|improve this question
up vote 76 down vote accepted

You have at least three options here:

  • Increasing the array stretch factor using \renewcommand{\arraystretch}{<factor>} where <factor> is a numeric value:

    \documentclass{article}
    \begin{document}
    \renewcommand{\arraystretch}{2}
    \begin{tabular}{c c}
      $f^{(n)}(x)$ & $f^{(n)}(0)$ \\\hline
      $-2xe^{-x^{x^{x^2}}}$ & 0
    \end{tabular}
    \end{document}
    

    enter image description here

  • Explicitly specifying the row skip using \\[<len>] where <len> is any length:

    \documentclass{article}
    \begin{document}
    \begin{tabular}{c c}
      $f^{(n)}(x)$ & $f^{(n)}(0)$ \\[1cm] \hline
      $-2xe^{-x^{x^{x^2}}}$ & 0
    \end{tabular}
    \end{document}
    

    enter image description here

  • Modifying the array package's \extrarowheight length using \setlength{\extrarowheight}{<len>}, where <len> is any length:

    \documentclass{article}
    \usepackage{array}% http://ctan.org/pkg/array
    \begin{document}
    \setlength{\extrarowheight}{20pt}
    \begin{tabular}{c c}
      $f^{(n)}(x)$ & $f^{(n)}(0)$ \\\hline
      $-2xe^{-x^{x^{x^2}}}$ & 0
    \end{tabular}
    \end{document}
    

    enter image description here

In the above examples, the \hline was used to illustrate the effect of the different styles used. The choice depends on the specific usage/typesetting of the tabular within your document.

Finally, if the contents of your entire tabular is math, you could typeset it in an array environment:

\[
  \begin{array}{c c}
    f^{(n)}(x) & f^{(n)}(0) \\
    -2xe^{-x^{x^{x^2}}} & 0
  \end{array}
\]
share|improve this answer
    
Thanks a lot for the answer as well as many other alternative solutions ;) – Chan Aug 28 '11 at 2:10
    
How can I define the row skip (\[1cm] in your example) with a multirow cell in my table? I would like to enlarge the space between all other cells which are spanned by the multirow, but defining the row skip just like you do it does not work. – Rob Feb 22 at 13:13
    
@Rob: My suggestion would be to ask a new question with a clear demonstration of what you have and what you're after. You can then link to this post if you wish to provide some additional context. – Werner Feb 22 at 17:11
1  
Problem solved. \\[1cm] was just not big enough to see any difference... – Rob Feb 23 at 9:08

For multi-rows, you can try this

\documentclass{article}
\usepackage{array}% 
\begin{document}
\begin{tabular}{c c}
  $f^{(n)}(x)$ & $f^{(n)}(0)$ \\[1cm]
  $-2e^{-x^{x^{x}}}$ & 0\\[1cm]
  $2x&\frac{x}{2}\\[1cm] 
.
.
.
\end{tabular}
\end{document}
share|improve this answer
    
This is already covered by Werner's answer. – Heiko Oberdiek Jul 22 at 18:10

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.