Wednesday, 21 August 2013

Is there a way to always get a table on the same page with corresponding footnotes?

Is there a way to always get a table on the same page with corresponding
footnotes?

I have a situation where sometimes two tables (who look nearly identical
to the one in the MWE) are on the right page with the corresponding
footnotes but then unfortunately very often not, especially in the case
that I use the whole document (i.e. content of the respective chapter) in
front of the tables.
For the final version I must have them on the same page. For now I'd still
like to give it a shot without a \clearpage in front of the
table-environment since this leaves the typical white and ugly void. Are
there any best practice cases?

MWE
\documentclass[
11pt
]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{
booktabs,
longtable,
multicol,
lipsum
}
\begin{document}
\section{Test}
\lipsum[1-7]
%\clearpage
\begin{table}[tcb]
\begin{center}
\caption{A special table}
%\captionof{table}{A special table}
\begin{tabular}{lrrrrrrrrrrr}
\toprule
ABC & B & C & D & E & A & B & C & D & E
& A & B \\
\midrule
1 & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\
2 & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\
3 & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark &
ij\footnotemark & ij\footnotemark & ij\footnotemark & ij\footnotemark \\
\bottomrule
\end{tabular}%
\end{center}
\end{table}
\addtocounter{footnote}{-32}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}\addtocounter{footnote}{1}
\footnotetext{Word.}
\lipsum[8-10]
\end{document}

No comments:

Post a Comment