Latex: tables with notes -- threeparttable

latex

I recently learned how to create tables in latex that would allow a panel for notes at the bottom, in the style of many biology papers. The tool? threeparttable.

Here’s a minimal working example, and the output, below the example. I attempted to get some hyperlinking to work via footnotes, labels, references, and various combinations of those items, but eventually abandoned linking. (Please let me know if you know how to get linking from the symbol to the note to work!)

Latex MWE:

\documentclass{article}
\usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
\usepackage[english]{babel}
\usepackage[flushleft]{threeparttable}

\begin{document}


\begin{threeparttable}
\caption{Great caption}
   \begin{tabular}{|c | c | c | c | c | c |}
    \hline
    Col0 & Col1 & Col2 & Col3 & Col4 & Col5\\
    \hline
    \hline
    A & B & C$^\dagger$ & D & E$^\dagger$ & F \\
    \hline
    G & H$^\ddagger$ & I & J & K & L \\
    \hline
    \end{tabular}
    \begin{tablenotes}
	\small {
	\item{ $\dagger$ note about this item}
	\item $\ddagger$ another note}
    \end{tablenotes}
\end{threeparttable}
	

\end{document}

And the output is:

latex output

© Amy Tabb 2018 - 2023. All rights reserved. The contents of this site reflect my personal perspectives and not those of any other entity.