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.

This question already has an answer here:

I'd like to add more space between the cells of the table below. I've tried the command [2ex] after \\ but this changes the vertical alignment, which I'd like to be centered.

\documentclass{article}
\begin{document}
\begin{table}
\footnotesize
\centering
\begin{tabular}{c|c|c|c}
\multicolumn{4}{c}{ } \\
Text text text text & Text text text text & Text text text text & Text text text text \\\hline
\multirow{2}{*}{Text text text}
& Text text text text & Text text text text & Text text text text \\[2ex]
& Text text text text & Text text text text & Text text text text \\[2ex]\hline
\multirow{2}{*}{Text text text}
& Text text text text & Text text text text & Text text text text \\[2ex]
& Text text text text & Text text text text & Text text text text \\[2ex]\hline
\end{tabular}
\end{table}
\end{document}
share|improve this question
1  
Do you want to add space between the column, the rows or both? –  Gonzalo Medina Mar 22 '13 at 12:53
    
have you seen Column padding in tables ? –  cmhughes Mar 22 '13 at 13:10
    
please let us know if my link resolves the issue- if so, we might vote to close to help keep the site tidy :) –  cmhughes Mar 22 '13 at 13:16
add comment

marked as duplicate by Gonzalo Medina, David Carlisle, Speravir, Kurt, zeroth Mar 24 '13 at 0:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

The following simple example shows several alternatives depending on your intent:

\documentclass{article}

\begin{document}

\noindent Default settings:\\
\begin{tabular}{ccc}
\hline
column1a & column2a & column3a \\
\hline
column1b & column2b & column3b \\
\hline
\end{tabular}

\vspace{36pt}

\noindent Changing \verb+\tabcolsep+ (default value: \texttt{6pt}):\\
{
\addtolength\tabcolsep{10pt}
\begin{tabular}{ccc}
\hline
column1a & column2a & column3a \\
\hline
column1b & column2b & column3b \\
\hline
\end{tabular}
}

\vspace{36pt}

\noindent Using the \verb+@{...}+ syntax to add space individually:\\
\begin{tabular}{c@{\hspace{25pt}}cc}
\hline
column1a & column2a & column3a \\
\hline
column1b & column2b & column3b \\
\hline
\end{tabular}

\vspace{36pt}

\noindent Changing \verb+\arraystretch+ factor:\\
{
\renewcommand\arraystretch{1.4}
\begin{tabular}{c@{\hspace{25pt}}cc}
\hline
column1a & column2a & column3a \\
\hline
column1b & column2b & column3b \\
\hline
\end{tabular}
}
\vspace{36pt}

\noindent Using the optional argument for \verb+\\+ in a \textit{per-row} basis:\\
\begin{tabular}{c@{\hspace{25pt}}cc}
\hline
column1a & column2a & column3a \\[2ex]
\hline
column1b & column2b & column3b \\
\hline
\end{tabular}

\end{document}

enter image description here

share|improve this answer
    
Thank very much for your help. Chaning the arraystrecth parameter is the best option for my purposes. Thanks again! Best, Beth. –  user26281 Mar 22 '13 at 15:55
    
@beth_calister You're welcome. Since this question is a duplicate (of the question cmhughes linked to in his comment), most probably it will be closed as a duplicate. –  Gonzalo Medina Mar 23 '13 at 23:47
add comment

write before \begin{tabular}

\addtolength\tabcolsep{5pt}
share|improve this answer
add comment

If you can afford changing environment, tabu instead of tabular and specify \tabulinesep=^Xmm_Ymm at the beginning of your document. Use the same value for X and Y to preserve the vertical alignment.

share|improve this answer
    
that version of tabu is no more supported and the new one will be published sometimes, whenever this may be –  Herbert Mar 22 '13 at 13:47
    
@Herbert I did not know that. Where may I find official statements about the support provided to the various packages? –  Federico Mar 22 '13 at 14:00
    
in the newsgroups c.t.t and f.c.t.t –  Herbert Mar 22 '13 at 14:02
add comment