Skip to content

Instantly share code, notes, and snippets.

@janmayer
Created April 30, 2015 12:43
Show Gist options
  • Save janmayer/50f47cb44e79434206bd to your computer and use it in GitHub Desktop.
Save janmayer/50f47cb44e79434206bd to your computer and use it in GitHub Desktop.
Example for beautiful LateX tables
\documentclass{scrreprt}
\usepackage{booktabs}
\usepackage{isotope}
\usepackage{siunitx}
\sisetup{
per-mode = fraction,
load-configurations = abbreviations,
}
\begin{document}
\begin{table}[!hb]
\centering
\captionabove{Some caption for the table}\label{tab:mytable}
\begin{tabular}{
S |
S[separate-uncertainty = true] |
S[table-format = 5] |
S
}
\toprule
{Id} & {$N_T$ \isotope[4]{He} [\SI{e15}{atoms\per\square\cm}]} & {$E_p$ [keV]} & {Something $\Delta E$ [keV]}\\
\midrule
1 & 1234(567) & 10 & 34(7) \\
2 & 8900(200) & 200 & 27(6) \\
3 & 3570(170) & 3000 & 21(6) \\
4 & 1590(420) & 40000 & 22(5) \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment