4

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
    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 '13 at 18:56
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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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