1

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}
3
  • 1
    Do you want to add space between the column, the rows or both? Mar 22, 2013 at 12:53
  • have you seen Column padding in tables ?
    – cmhughes
    Mar 22, 2013 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, 2013 at 13:16

3 Answers 3

2

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

2
  • Thank very much for your help. Chaning the arraystrecth parameter is the best option for my purposes. Thanks again! Best, Beth.
    – user26281
    Mar 22, 2013 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. Mar 23, 2013 at 23:47
1

write before \begin{tabular}

\addtolength\tabcolsep{5pt}
1

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.

3
  • that version of tabu is no more supported and the new one will be published sometimes, whenever this may be
    – user2478
    Mar 22, 2013 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, 2013 at 14:00
  • in the newsgroups c.t.t and f.c.t.t
    – user2478
    Mar 22, 2013 at 14:02