Feed on
Posts
Comments

to adjust the spacing between rows in a latex table, add square brackets and the size adjustment after the linebreak.

for instance, to compress rows by 1 inch:

entry1 & entry2 & entry3 \\[-1in]


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

8 Responses to “adjust row spacing in a latex table”

  1. on 06 Apr 2008 at 5:51 pm Victor Ramiro

    Cool!
    Do you know how to adjust the spacing between rows, but for all the tabular?

    cheers,
    Victor

  2. on 07 Apr 2008 at 7:06 am Lawrence David

    Sorry, don’t know that!

  3. on 15 Sep 2008 at 11:24 am Mickael

    Hi,

    you can write something like that :

    \begin{table}[!ht]\renewcommand{\arraystretch}{2}\addtolength{\tabcolsep}{-1pt}
    \begin{center}
    \label{ResumeContact}
    \begin{tabularx}{\linewidth}{cccc}

    etc

  4. on 14 Nov 2010 at 10:37 am Amber

    Thanks Mickael! That helped so, so much.

  5. on 19 Dec 2010 at 10:31 am Pas

    and how about the space between the columns? I mean, is it possible to adjust the minimal distance between a cell’s content and its left and right edge?

    Thanks a lot in advance!

  6. on 19 Feb 2011 at 3:50 am sst

    Pas,

    \setlength{\tabcolsep}{5pt}

  7. on 14 Feb 2012 at 5:05 pm Li

    When I do this :

    \begin{table}[!h]
    \begin{center}
    \caption{Resultados dos testes de hipótese}\label{tab:fremantle_modelos}
    \begin{tabular}
    {c|c|c c}
    \hline \hline \\
    entry1&entry2$entry3&entry4 \\
    etc..

    Only the first vertical line is complete, the others start at second line.
    How should I do?
    Thank you.

  8. on 06 Jan 2013 at 6:09 am kk

    add \\[5pt] to the end of each row would increase the height of each row

Did I get this wrong? Let me know!

Trackback URI | Comments RSS