GeneralFootnote appears before a table

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
simonvlc
Posts: 6
Joined: Wed Jun 18, 2008 9:53 am

Footnote appears before a table

Post by simonvlc »

Hi again,

I wish anyone could help me with this. I have a table in a page where must be a footnote, but this one appears just before the table instead at the bottom of the page.

This is the code:

Code: Select all

Some random text.\footnotemark

Some random text \textsf{table}.

\begin{table}
\begin{center}\small
\begin{tabular}{lll}
pt & punt & 1pt = 0,351mm \\
pc & pica & 1pc = 12pt = 4,218mm \\
\hline
mm & mi\l.límetre & 1mm = 2.845pt \\
cm & centímetre & 1cm = 28,45pt = 10mm \\
\hline
ex & ics & alçada de la lletra ’x’ \\
em & ema & amplada de la lletra ’M’
\end{tabular}
\end{center}
\caption{Unitats diverses}
\end{table}

\footnotetext{Footnote text}
Any idea in how to prevent this? Thanks in advance, Simon!

Recommended reading 2024:

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

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

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

Footnote appears before a table

Post by localghost »

There are two possible solutions. The first one is to use the footmisc package with an option that forces footnotes to be set at the bottom of the page.

Code: Select all

\usepackage[bottom,flushmargin,hang]{footmisc}
Refer to the documentation of the package to learn more. The second approach is to prevent float environments to be placed at the bottom of the page by giving some optional parameters which control their placement.

Code: Select all

\begin{table}[!ht]
  \small
  \centering
  \begin{tabular}{lll}
    ...
  \end{tabular}
  \caption{Unitats diverses}\label{tab:unidiv}
\end{table}
For explanations about float placement you should refer to some basic LaTeX documentation.


Best regards
Thorsten¹
simonvlc
Posts: 6
Joined: Wed Jun 18, 2008 9:53 am

Re: Footnote appears before a table

Post by simonvlc »

Thanks again Thorsten! The second one worked like a charm ;)!
Post Reply