General\footnote is not working within a tabular environment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
chandangiri
Posts: 20
Joined: Thu Sep 06, 2007 7:31 pm

\footnote is not working within a tabular environment

Post by chandangiri »

Hi,
I have used the following code to get the footnote. But footnote text is not showing except the marker.

\documentclass[11pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{caption}

\begin{document}
\section{Section title}

\begin{table}[!ht]
\centering
\subtable[\label{tab:chapter4:1a}]{
\tiny
\centering
\begin{tabular}{|c|c|c|}\hline
a&b&c\\
d&e&f\footnotemark\\\hline
\end{tabular}
}
\subtable[\label{tab:chapter4:1b}]{
\tiny
\centering
\begin{tabular}{|c|c|c|}\hline
g&h&i\\
j&k&l\\\hline
\end{tabular}
}
\subtable[\label{tab:chapter4:1c}]{
\tiny
\centering
\begin{tabular}{|c|c|c|}\hline
m&n&o\\
p&q&r\\\hline
\end{tabular}
}
\caption{Testing}\label{tab:chapter4:1}
\footnotetext{myfootnote}
\end{table}
\end{document}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\footnote is not working within a tabular environment

Post by localghost »

Placing the the \footnotetext command outside and directly behind the table environment should do the trick. I again recommend to replace the obsolete subfigure package by subfig and the \subtable command by \subfloat.


Best regards and a happy new year
Thorsten
Post Reply