5

I just discovered the Latex command \addlinespace which increases the whitespace between the rows in a table. I was wondering if there is a command like that to increase the whitespace between the columns?

1
  • 1
    For this you could (should) define a new column type. So, \usepackage{array}\newcolumntype{R}{@{\hspace{\dimexpr2\tabcolsep+3pt}}r} and then \begin{tabular}{rRRRR}. Try it.
    – Werner
    Jan 3, 2013 at 18:56

1 Answer 1

2

Whether to be applied to one table:

\documentclass{article}

\begin{document}

\begingroup\addtolength{\tabcolsep}{3mm}
\begin{tabular}{|c|c|c|}
\addlinespace{3mm}
a & b & c
\end{tabular}
\endgroup

\end{document}

Whether to be applied globally:

\documentclass{article}

\addtolength{\tabcolsep}{3mm}

\begin{document}

\begin{tabular}{|c|c|c|}
\addlinespace{3mm}
a & b & c
\end{tabular}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .