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
\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}
Nicholas Nadeau, Ph.D., P.Eng.
Nicholas Nadeau, Ph.D., P.Eng.
Project Director

Nicholas Nadeau is the project director at Halodi Robotics, leading their mission of bringing safe and capable humanoid robots to everyone.

Related