Graphics, Figures & Tablesfootnote in tables

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rudrales
Posts: 16
Joined: Wed Mar 11, 2009 1:52 am

footnote in tables

Post by rudrales »

Hi

I want to use a footnote in a table. The number of the footnote appears in the table but the footnote text doesn't at the end of the page. Do I have to use an other command in tables or what am I doing wrong?

Code: Select all

\begin{table}[htbp]
	\begin{center}
	\begin{tabular}{|l|l|l|l|}
		\hline
		Measurement  &Value\footnote{comment}\\
		\hline\hline
		MVL1	 & 269\\
		MVL2	 & 568\\
		MVL3	 & 269\\
		MVL4	 & 600\\
		\hline
	\end{tabular}
	\end{center}
	\caption{Measurement 1}
	\label{Measurement 1}
\end{table}
Thanks for the help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

footnote in tables

Post by olofos »

Unfortunately normal latex footnotes don't work inside a table. A number of workarounds are available in the FAQ.
rudrales
Posts: 16
Joined: Wed Mar 11, 2009 1:52 am

Re: footnote in tables

Post by rudrales »

Thanks for the help but it wasn't what I was looking for.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: footnote in tables

Post by daleif »

well, it is actually, beacause you should not be using footnotes inside a table. Notes in a table are 'tablenotes' and are meant to come immediately after the table, not at the bottom of the page.

These types of notes are a well defined entity described in all typographical manuals.

For this the threeparttable construction is well suited.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

footnote in tables

Post by localghost »

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{varwidth}
\usepackage{booktabs}

\begin{document}
  \begin{table}[!ht]
    \caption{Measurement 1}\label{tab:m1}
    \centering
    \begin{varwidth}{\linewidth}
      \begin{tabular}{llll} \toprule
        Measurement & Value\footnote{comment} & Value\footnote{comment} & Value\footnote{comment} \\ \midrule
        MVL1 & 269 & 781 & 354 \\
        MVL2 & 568 & 217 & 493 \\
        MVL3 & 269 & 387 & 154 \\
        MVL4 & 598 & 312 & 746 \\ \bottomrule
      \end{tabular}
    \end{varwidth}
  \end{table}
\end{document}

Best regards
Thorsten¹
rudrales
Posts: 16
Joined: Wed Mar 11, 2009 1:52 am

Re: footnote in tables

Post by rudrales »

Aha, tablenotes! Thanks for the help and the example.
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: footnote in tables

Post by daleif »

one problem with localghosts example, is that the footnote marker takes up space, and thus may screw up alignment.

If several items need the same marker, you need to know how to make a footnote with a specific number.

much easier with threeparttable (though the package is not perfect)
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

footnote in tables

Post by Juanjo »

There are some old threads about table notes, like this one, which may be helpful.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply