General ⇒ Annotate Table, inserting footnotes to Tables
Annotate Table, inserting footnotes to Tables
I went thru the help files looking for typeset to add footnotes to particular entries in my table:
\begin{table}
\centering
\caption{My caption}
\small\addtolength{\tabcolsep}{-5pt}
\begin{tabular}{c||c|c|c||c|c||c}
X& x1 & $x2$ & x3 & x4 & x5&x6\\\hline
I & 1& 2& 3 & 4 & 5& 6\\
& (.46) & & & (.16)&&\\
II&1&2&3 & 4&5&6\\
& (.82) & & & (.28)&&\\
III &1&2 &3& 4&5&6\\
& (.63) & & & (.24)&&\\
IV & 1& 2& 3& 4&5& 6\\
& (.39) & & & (.14)&&\\
V & 1& 2& 3& 4&5& 6\\
& (.82) & & & (.39)&&\\
VI & 1& 2& 3& 4&5& 6\\
& (1.15) & & & (2.65)&&\\
\end{tabular}
\label{tab:mytab}
\end{table}
Inserting \footnote{} next to the values did not show the footnote at the end of the table.
Thank you!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Annotate Table, inserting footnotes to Tables
B.A.
Re: Annotate Table, inserting footnotes to Tables
Re: Annotate Table, inserting footnotes to Tables
Regards,
B.A.
Annotate Table, inserting footnotes to Tables
A direct approach to get footnotes in tables is to include them in a minipage. Try this:
Code: Select all
\documentclass{article}
\begin{document}
\begin{table}
\centering
\fbox{% Remove this line to delete the frame
\begin{minipage}{4.1cm}
\caption{My caption} \label{tab:mytab}\smallskip
\small\addtolength{\tabcolsep}{-5pt}
\begin{tabular}{c||c|c|c||c|c||c}
X\footnote{A footnote}& x1 & $x2$ & x3 & x4 & x5&x6\\ \hline
I & 1& 2& 3 & 4 & 5& 6\\
& (.46) & & & (.16)&&\\
II&1&2&3 & 4&5&6\\
& (.82) & & & (.28)&&\\
III &1&2 &3& 4&5&6\\
& (.63) & & & (.24)\footnote{Other footnote}&&\\
IV & 1& 2& 3& 4&5& 6\\
& (.39) & & & (.14)&&\\
V & 1& 2& 3& 4&5& 6\\
& (.82) & & & (.39)&&\\
VI & 1& 2\footnote{The third one}& 3& 4&5& 6\\
& (1.15) & & & (2.65)&&\\ \hline
\end{tabular}
\end{minipage}%
} % Remove this line to delete the frame
\end{table}
\end{document}
This looks better:
Code: Select all
\documentclass{article}
\begin{document}
\begin{table}
\centering
\fbox{% Remove this line to delete the frame
\begin{minipage}{4.9cm}
\centering
\caption{My caption} \label{tab:mytab}\smallskip
\small\addtolength{\tabcolsep}{-5pt}
\begin{tabular}{c||c|c|c||c|c||c}
X\footnote{A footnote}& x1 & $x2$ & x3 & x4 & x5&x6\\ \hline
I & 1& 2& 3 & 4 & 5& 6\\
& (.46) & & & (.16)&&\\
II&1&2&3 & 4&5&6\\
& (.82) & & & (.28)&&\\
III &1&2 &3& 4&5&6\\
& (.63) & & & (.24)\footnote{Other footnote}&&\\
IV & 1& 2& 3& 4&5& 6\\
& (.39) & & & (.14)&&\\
V & 1& 2& 3& 4&5& 6\\
& (.82) & & & (.39)&&\\
VI & 1& 2\footnote{The third one}& 3& 4&5& 6\\
& (1.15) & & & (2.65)&&\\ \hline
\end{tabular}%
\vspace{-7pt}\renewcommand{\footnoterule}{}
\end{minipage}%
} % Remove this line to delete the frame
\end{table}
\end{document}
Annotate Table, inserting footnotes to Tables
I worked out a dirty fix without using minipages.
Code: Select all
\begin{table}
\begin{center}
\begin{tabular}{|r|r|}
\hline
x & x \\
\hline
x & x \\
x & x \\
\hline
\end{tabular}
\label{tbl:runtime}
\caption{blah $^1$.}
\end{center}
\end{table}
\footnotetext[1]{foot note blah.}