# Putting several footnotes below the table

I'm having trouble putting notes below the table - I want to put several notes below the table but the footnote seems to stretch, making the table longer than necessary. Would there be a way to fix this?

\begin{table}[htbp]\centering \caption{Summary Statistics}
\begin{tabular}{l c c c}
\hline\hline
\multicolumn{1}{c}{\textbf{Variable}} & \textbf{Mean} & \textbf{Std. Dev.} & \textbf{N}\\
\hline
a & a & a & a \\
\hline
\label{table2}
\multicolumn{3}{l}{\textsuperscript{*}\footnotesize{blah blah}}
\end{tabular}
\end{table}


• I just put notes into the caption. That way people won't miss seeing them. – Benjamin McKay Nov 12 '14 at 22:13

## 2 Answers

You should use the threeparttable package, that's designed for that sort of things. In the following code, I added the caption package, to ensure a proper spacing between caption and table, bookttabs and the makecell package, that allows for common formatting of column heads.

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{booktabs, caption, makecell}
\renewcommand\theadfont{\bfseries}
\usepackage{threeparttable}

\begin{document}

\begin{table}[! htbp]\centering \caption{Summary Statistics}
\begin{threeparttable}
\begin{tabular}{l c c c}
\toprule\midrule
\thead{Variable} & \thead{Mean}
& \thead{Std. Dev.} & \thead{N}\\ \midrule
a & a & a\tnote{*} & a \\
\bottomrule\addlinespace[1ex]
\end{tabular}
\begin{tablenotes}\footnotesize
\item[*] Blahblah
\end{tablenotes}
\end{threeparttable}
\label{table2}
\end{table}

\end{document}


• Should a \tnote{*} directive be inserted somewhere in the tabular environment? – Mico Nov 12 '14 at 22:16
• Yes. As your code didn't contain anything of the sort I didnt put one. Another remark: there is a threepartablex package that works with long tables, that break across pages, and a slightly different syntax. – Bernard Nov 12 '14 at 22:20
• Hi thanks for the feedback! I actually tried threeparttable but the note below seems to align towards the center rather than as it should in an ordinary text. If the note is short, it is no problem, but my note is long and threeparttable doesn't seem to align the note well. Please see after inputing longer text after \item – user2298759 Nov 13 '14 at 0:48
• I'll take a look at this and come back in a moment. – Bernard Nov 13 '14 at 1:02
• @user2298759: I have no such problem. You can try the flushleft option on loading the package. – Bernard Nov 13 '14 at 1:27
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{threeparttable}
\usepackage{booktabs, caption, makecell}
\renewcommand\theadfont{\bfseries}
\begin{document}

\begin{table}[htbp]
\begin{minipage}{10cm}
\begin{threeparttable}[t]
\centering
\begin{tabular}{|c|c|}
\hline
\textbf{Activity} & \textbf{Activity Sequence}\\\hline
Getting on a Tram \tnote{1}& \multicolumn{1}{m{6cm}|}{Standing, Walking, Turn Left or right, walk, climb up stairs, turn left or right, walk again till reach seat, turn left or right 90$^{\circ}$ or 180$^{\circ}$, seat down, sitting for long time.}  \\\hline
Getting off a Tram\tnote{2}& \multicolumn{1}{m{6cm}|}{Sitting, stand up, turn left or right 90$^{\circ}$ or 180$^{\circ}$, walk till reach the door, turn left or right to reach stairs, climb down, walk out from the Tram.}  \\
\hline
\end{tabular}
\begin{tablenotes}
\item[1] Note that \textit{Getting On Sequence} will start from steady standing in the station.
\item[2] Note that \textit{Getting Off Sequence} will start from steady sitting state in the Tram.
\end{tablenotes}
\end{threeparttable}
\end{minipage}
\caption{Getting on/off passengers' activity states}
\label{tab:GettingOnOffPassengersActivityStates}
\end{table}
\end{document}


• What is the difference to Bernard's answer? Btw. if you post code, it should be compilable see minimal working example (MWE). – dexteritas Jul 27 '18 at 11:45
• \multicolumn{1}{m{6cm}|}{...} does not make much sense. You could write m{6cm}| in the parameter of the tabular. – dexteritas Jul 27 '18 at 11:48
• duplicate answer – dexteritas Jul 27 '18 at 11:56