Professional tables in LaTeX

Every time I write a paper, I learn new good tricks and practices with LaTex. This time it’s about creating professional looking tables in a publication. With the help of booktabs, it becomes a very simple task — took me a few glances to figure out how to use it.

The golden rule is to stop using \hline and \cline
– Replace \hline with \toprule, \midrule, \bottomrule for horizontal stretching lines across the table at the top, middle, and bottom of the table, respectively.
– To draw a line spanning a few columns, say 2 to 4, the old way is to use \cline{2-4}. The equivalent of this is \cmidrule{2-4}.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s