Captions in Latex tables

Writing my thesis, I had to create a table with table captions located below the table. Without much thinking I looked at the Latex bible and read about three ways of doing it.

The solution I chose was to use a package `threeparttable’, which did exactly what I wanted. Here’s my code:

\usepackage{threeparttable}

\begin{table}[htb]
  \centering
  \begin{threeparttable}
    \caption{Caption.}
    \begin{tabulary}{\linewidth}{|L|C|}
      \hline a\tnote{a} & b\tnote{b} \\
      \hline
    \end{tabulary}
    \begin{tablenotes}[para]
      \scriptsize
      \item[a] Footnote a.
      \item[b] Footnote b.
    \end{tablenotes}
    \label{table:ml_requirements}
  \end{threeparttable}
\end{table}

Leave a Reply