Great Looking LaTeX Tables

  • No colour
  • No vertical gridlines
  • No fills
  • No borders
  • No bolding
  • Left align text
  • Right align numbers
  • Align titles with data
  • Resize columns to data
  • Use consistent precision

LaTeX Table

\documentclass{article}

% \toprule, \midrule, \multicolumn
\usepackage{booktabs}

% unit formatting
\usepackage[per-mode=symbol]{siunitx}

\begin{document}
\begin{table}

% use consistent precision
\sisetup{round-mode=places,round-precision=2}

% center table in text
\centering

% make a good descriptive caption
\caption{My caption.}

% labels must come after captions
\label{table:my-table}

% resize boxes help fit tables inside 2-column formats
% \resizebox{\columnwidth}{!}{%

% text is left aligned
% numbers are right aligned
\begin{tabular}{lr}

\toprule
Text & Numbers \\
\midrule
first & \num{123.456} \\
second & \num{0.9876543} \\
third & \num{98765.4321} \\
\bottomrule
\end{tabular}

% close resizebox
% }

\end{table}
\end{document}

Related

Next
Previous