| 1 |
%% |
| 2 |
%% This is file `tablefootnote-example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tablefootnote.dtx (with options: `example') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: tablefootnote |
| 12 |
%% Version: 2014/01/26 v1.1c |
| 13 |
%% |
| 14 |
%% Copyright (C) 2011 - 2014 by |
| 15 |
%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> |
| 16 |
%% |
| 17 |
%% The usual disclaimer applies: |
| 18 |
%% If it doesn't work right that's your problem. |
| 19 |
%% (Nevertheless, send an e-mail to the maintainer |
| 20 |
%% when you find an error in this package.) |
| 21 |
%% |
| 22 |
%% This work may be distributed and/or modified under the |
| 23 |
%% conditions of the LaTeX Project Public License, either |
| 24 |
%% version 1.3c of this license or (at your option) any later |
| 25 |
%% version. This version of this license is in |
| 26 |
%% http://www.latex-project.org/lppl/lppl-1-3c.txt |
| 27 |
%% and the latest version of this license is in |
| 28 |
%% http://www.latex-project.org/lppl.txt |
| 29 |
%% and version 1.3c or later is part of all distributions of |
| 30 |
%% LaTeX version 2005/12/01 or later. |
| 31 |
%% |
| 32 |
%% This work has the LPPL maintenance status "maintained". |
| 33 |
%% |
| 34 |
%% The Current Maintainer of this work is H.-Martin Muench. |
| 35 |
%% |
| 36 |
%% This work consists of the main source file tablefootnote.dtx, |
| 37 |
%% the README, and the derived files |
| 38 |
%% tablefootnote.sty, tablefootnote.pdf, |
| 39 |
%% tablefootnote.ins, tablefootnote.drv, |
| 40 |
%% tablefootnote-example.tex, tablefootnote-example.pdf. |
| 41 |
%% |
| 42 |
%% In memoriam Tommy Muench + 2014/01/02. |
| 43 |
%% |
| 44 |
\documentclass[british]{article}[2007/10/19]% v1.4h |
| 45 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 46 |
\usepackage{float}[2001/11/08]% v1.3d |
| 47 |
\usepackage{placeins}[2005/04/18]% v2.2 ; for \FloatBarrier |
| 48 |
\usepackage{rotating}[2009/03/28]% v2.16a; for sidewaystable-environment |
| 49 |
\usepackage[% |
| 50 |
hyperfootnotes=true,% |
| 51 |
extension=pdf,% |
| 52 |
plainpages=false,% |
| 53 |
pdfpagelabels=true,% |
| 54 |
hyperindex=false,% |
| 55 |
pdflang={en},% |
| 56 |
pdftitle={tablefootnote package example},% |
| 57 |
pdfauthor={H.-Martin Muench},% |
| 58 |
pdfsubject={Example for the tablefootnote package},% |
| 59 |
pdfkeywords={LaTeX, tablefootnote, footnote, table, H.-Martin Muench},% |
| 60 |
% pdfview=FitH and FitBH do not work: hyperlinks in sidewaystables |
| 61 |
% do no lead to the footnotes, due to a bug in pdfTeX, |
| 62 |
% computing wrong anchor coordinates (Heiko Oberdiek, 29. October 2011) |
| 63 |
% pdfview=Fit, FitV, FitR, FitB, FitBV work |
| 64 |
% print is OK for all those options |
| 65 |
pdfstartview=FitH,% |
| 66 |
pdfpagelayout=OneColumn% |
| 67 |
]{hyperref}[2012/11/06]% v6.83m |
| 68 |
% Due to the urls used in the example, either the hyperref or the url |
| 69 |
% package are needed (or the urls must be removed before compiling). |
| 70 |
|
| 71 |
\usepackage{footnotebackref}[2012/07/01]% v1.0 |
| 72 |
\usepackage{tablefootnote}[2014/01/26]% v1.1c |
| 73 |
|
| 74 |
\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% |
| 75 |
\listfiles |
| 76 |
\begin{document} |
| 77 |
\pagenumbering{arabic} |
| 78 |
\section*{Example for tablefootnote} |
| 79 |
|
| 80 |
This example demonstrates the use of package\newline |
| 81 |
\textsf{tablefootnote}, v1.1c as of 2014/01/26 (HMM).\newline |
| 82 |
There were no options used. (The package provides no options.)\newline |
| 83 |
|
| 84 |
\textbf{The \texttt{tablefootnote-example.tex} needs to be compiled |
| 85 |
at least twice to get the references right!}\newline |
| 86 |
|
| 87 |
If the etoolbox-package is found, it is automatically used.\newline |
| 88 |
|
| 89 |
For more details please see the documentation!\newline |
| 90 |
|
| 91 |
\noindent Save per page about $200\unit{ml}$ water, |
| 92 |
$2\unit{g}$ CO$_{2}$ and $2\unit{g}$ wood:\newline |
| 93 |
Therefore please print only if this is really necessary.\newline |
| 94 |
|
| 95 |
Here is some text.\footnote{And this is a text footnote.}\newline |
| 96 |
|
| 97 |
Tables \ref{tab.symbol}, \ref{tab.normal}, \ref{tab.another} and |
| 98 |
\ref{tab.floatH} show normal tables, table~\ref{tab.sideways} depicts |
| 99 |
a sidewaystable. Table~\ref{tab.floatH} uses the float |
| 100 |
specifier~\texttt{H} from the float package.\newline |
| 101 |
|
| 102 |
\texttt{Hyperref} option \verb|pdfview=FitH| and \verb|FitBH| do |
| 103 |
not work due to a bug in pdf\TeX{}, computing wrong |
| 104 |
anchor coordinates (\textsc{Heiko Oberdiek}, 29.~October 2011). |
| 105 |
Depending on used pdf-viewer, hyperlinks in sidewaystables lead |
| 106 |
e.\,g.~at the end of the document, not at the footnote. |
| 107 |
\verb|pdfview=Fit|, \verb|FitV|, \verb|FitR|, \verb|FitB|, |
| 108 |
\verb|FitBV| work, print is OK for all those options. |
| 109 |
|
| 110 |
\bigskip |
| 111 |
|
| 112 |
\listoftables |
| 113 |
|
| 114 |
\pagebreak |
| 115 |
|
| 116 |
\renewcommand{\thefootnote}{\fnsymbol{footnote}} |
| 117 |
\verb|\renewcommand{\thefootnote}{\fnsymbol{footnote}}| |
| 118 |
causes footnote{-}symbol{-}footnotes, which are possible |
| 119 |
(see Table~\ref{tab.symbol}). |
| 120 |
|
| 121 |
\begin{table} |
| 122 |
\centering |
| 123 |
\begin{tabular}{ccc} |
| 124 |
Another\tablefootnote{A table footnote.} & % |
| 125 |
text\tablefootnote{Another table footnote.} & % |
| 126 |
in a table\tablefootnote{A third table footnote.} |
| 127 |
\end{tabular} |
| 128 |
\caption[A footnotesymbol table]{% |
| 129 |
A table with footnote-symbol-footnotes.\label{tab.symbol}} |
| 130 |
\end{table} |
| 131 |
|
| 132 |
Some text.\footnote{A text footnote.} |
| 133 |
|
| 134 |
\renewcommand{\thefootnote}{\arabic{footnote}} |
| 135 |
\verb|\renewcommand{\thefootnote}{\arabic{footnote}}| |
| 136 |
switches back to normal footnote numbers again. |
| 137 |
|
| 138 |
\pagebreak |
| 139 |
|
| 140 |
\begin{table} |
| 141 |
\centering |
| 142 |
\begin{tabular}{ccc} |
| 143 |
Some\tablefootnote{A table footnote.} & % |
| 144 |
text\tablefootnote[99]{A table footnote with custom footnote number.} & % |
| 145 |
in a table\tablefootnote{A third table footnote.} |
| 146 |
\end{tabular} |
| 147 |
\caption[A table]{A normal table.\label{tab.normal}} |
| 148 |
\end{table} |
| 149 |
|
| 150 |
Some text.\footnote{Another text footnote.} |
| 151 |
|
| 152 |
\pagebreak |
| 153 |
|
| 154 |
More text.\footnote{And yet another text footnote.} |
| 155 |
|
| 156 |
\begin{table}[t] |
| 157 |
\centering |
| 158 |
\begin{tabular}{|c|c|c|} |
| 159 |
\hline |
| 160 |
Another\tablefootnote{A $3^{rd}$ table footnote.} & % |
| 161 |
text\tablefootnote{Another $3^{rd}$ table footnote.} & % |
| 162 |
in a table\tablefootnote{A $3^{rd}$ third table footnote.}\\ \hline |
| 163 |
\end{tabular} |
| 164 |
\caption[Another table]{Another table (third one)\label{tab.another}} |
| 165 |
\end{table} |
| 166 |
|
| 167 |
Please note that Table~\ref{tab.another} floated to the top of the page. |
| 168 |
While the footnotes are set and (when hyperref is used) hyperlinked, |
| 169 |
they are not automatically adapted. Thus either do not use a footnote |
| 170 |
at the same page before the table, or place the table in |
| 171 |
\textquotedblleft here\textquotedblright\ or |
| 172 |
\textquotedblleft bottom\textquotedblright\ position. |
| 173 |
\verb|\clear(double)page|, \verb|h(!)|, \verb|H|~from the |
| 174 |
\texttt{float} package, or \verb|\FloatBarrier| from the |
| 175 |
\texttt{picins} package might help, too. (Or move the table in the |
| 176 |
source code near the position where it floats to |
| 177 |
or use the optional footnote marks.) |
| 178 |
|
| 179 |
Table~\ref{tab.floatH} (page~\pageref{tab.floatH}) uses float specifier |
| 180 |
\texttt{H} from the float package and does not float. |
| 181 |
|
| 182 |
Some text.\footnote{This is just another text footnote.} |
| 183 |
|
| 184 |
\pagebreak |
| 185 |
|
| 186 |
\FloatBarrier |
| 187 |
|
| 188 |
\begin{sidewaystable} |
| 189 |
\centering% |
| 190 |
\begin{tabular}{ccc} |
| 191 |
Text\tablefootnote{Please rotate the view for testing the % |
| 192 |
hyperlinks.} & % |
| 193 |
in a\tablefootnote[98]{Another sidewaystable footnote % |
| 194 |
with optional footnote mark.} & % |
| 195 |
sidewaystable% |
| 196 |
\tablefootnote{Sidewaystable-environment provided by % |
| 197 |
\url{http://www.ctan.org/pkg/rotating} package.} |
| 198 |
\end{tabular} |
| 199 |
\caption[A sideways table]{A table in the \texttt{sideways} % |
| 200 |
environment\label{tab.sideways}}% |
| 201 |
\end{sidewaystable}% |
| 202 |
|
| 203 |
\FloatBarrier |
| 204 |
|
| 205 |
\pagebreak |
| 206 |
|
| 207 |
A last table, here with float specifier \texttt{H} from the |
| 208 |
float\footnote{\url{http://www.ctan.org/pkg/float}} package. |
| 209 |
|
| 210 |
\begin{table}[H] |
| 211 |
\centering |
| 212 |
\begin{tabular}{ccc} |
| 213 |
Another\tablefootnote{A $5^{th}$ table footnote.} & % |
| 214 |
text\tablefootnote{Another $5^{th}$ table footnote.} & % |
| 215 |
in a table\tablefootnote{A $5^{th}$ third table footnote.} |
| 216 |
\end{tabular} |
| 217 |
\caption[A last table]{A very last table\label{tab.floatH}} |
| 218 |
\end{table} |
| 219 |
|
| 220 |
Some text.\footnote{This is just another text footnote.} |
| 221 |
|
| 222 |
\pagebreak |
| 223 |
|
| 224 |
End of the example for the |
| 225 |
tablefootnote\footnote{\url{http://www.ctan.org/pkg/tablefootnote}} |
| 226 |
package. |
| 227 |
|
| 228 |
\end{document} |
| 229 |
\endinput |
| 230 |
%% |
| 231 |
%% End of file `tablefootnote-example.tex'. |