Skip to content

Instantly share code, notes, and snippets.

@danmosergist
Last active January 2, 2016 19:24
Show Gist options
  • Save danmosergist/08e39da11f9508be9535 to your computer and use it in GitHub Desktop.
Save danmosergist/08e39da11f9508be9535 to your computer and use it in GitHub Desktop.
Latex: table with booktabs
% \usepackage{booktabs}
% \begin{table}
% \centering % alternatively to \begin{center}
% \caption{Caption this!} \label{tab:}
\begin{center}
\begin{tabular}{llr}
\toprule
\multicolumn{2}{c}{Item} \\
\cmidrule(r){1-2}
Animal & Description & Price (\$) \\
\midrule
Gnat & per gram & 13.65 \\
& each & 0.01 \\
Gnu & stuffed & 92.50 \\
Armadillo & frozen & 8.99 \\
\bottomrule
\end{tabular}
\end{center}
% \end{table}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment