summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tablefootnote/tablefootnote-example.tex
blob: b615d86c85f966bd336a3546f57886e1d5e44693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
%%
%% This is file `tablefootnote-example.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tablefootnote.dtx  (with options: `example')
%% 
%% This is a generated file.
%% 
%% Project: tablefootnote
%% Version: 2011/10/29 v1.0b
%% 
%% Copyright (C) 2011 by
%%     H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de>
%% 
%% The usual disclaimer applys:
%% If it doesn't work right that's your problem.
%% (Nevertheless, send an e-mail to the maintainer
%%  when you find an error in this package.)
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% The Current Maintainer of this work is H.-Martin Muench.
%% 
%% This work consists of the main source file tablefootnote.dtx,
%% the README, and the derived files
%%    tablefootnote.sty, tablefootnote.pdf,
%%    tablefootnote.ins, tablefootnote.drv,
%%    tablefootnote-example.tex, tablefootnote-example.pdf.
%% 
\documentclass[british]{article}[2007/10/19]% v1.4h
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{float}[2001/11/08]%    v1.3d
\usepackage{placeins}[2005/04/18]% v2.2  ; for \FloatBarrier

\usepackage{rotating}[2009/03/28]% v2.16a; for sidewaystable-environment

\usepackage{tablefootnote}[2011/10/29]% v1.0b

\usepackage[%
 extension=pdf,%
 plainpages=false,%
 pdfpagelabels=true,%
 hyperindex=false,%
 pdflang={en},%
 pdftitle={tablefootnote package example},%
 pdfauthor={Hans-Martin Muench},%
 pdfsubject={Example for the tablefootnote package},%
 pdfkeywords={LaTeX, tablefootnote, footnote, table, Hans-Martin Muench},%
 % pdfview=FitH and FitBH do not work: hyperlinks in sidewaystables
 % aim at the end of the document, not at the footnote
 % pdfview=Fit, FitV, FitR, FitB, FitBV work
 % print is OK for all those options
 pdfstartview=FitH,%
 pdfpagelayout=OneColumn%
]{hyperref}[2011/10/01]% v6.82j

\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}%
\listfiles
\begin{document}
\pagenumbering{arabic}
\section*{Example for tablefootnote}

This example demonstrates the use of package\newline
\textsf{tablefootnote}, v1.0b as of 2011/10/29 (HMM).\newline
There were no options used. (The package provides no options.)\newline

\textbf{The \texttt{tablefootnote-example.tex} needs to be compiled
at least twice to get the references right!}\newline

If the etoolbox-package is found, it is automatically used.\newline

For more details please see the documentation!\newline

\noindent Save per page about $200\unit{ml}$ water,
$2\unit{g}$ CO$_{2}$ and $2\unit{g}$ wood:\newline
Therefore please print only if this is really necessary.\newline

Here is some text.\footnote{And this is a text footnote.}\newline

Tables \ref{tab.first}, \ref{tab.another} and \ref{tab.floatH} show
normal tables, table~\ref{tab.sideways} depicts a sidewaystable.
Table~\ref{tab.floatH} uses the float specifier~\texttt{H} from the
float package.\newline

\texttt{Hyperref} option \verb|pdfview=FitH| and \verb|FitBH| do
not work: hyperlinks in sidewaystables aim at the end of the document,
not at the footnote. \verb|pdfview=Fit|, \verb|FitV|, \verb|FitR|,
\verb|FitB|, \verb|FitBV| work, print is OK for all those options.

\bigskip

\listoftables

\pagebreak

\begin{table}
\centering
\begin{tabular}{ccc}
Some\tablefootnote{A table footnote.} & %
text\tablefootnote{Another table footnote.} & %
in a table\tablefootnote{A third table footnote.}
\end{tabular}
\caption[A table]{A first table\label{tab.first}}
\end{table}

Some text.\footnote{Another text footnote.}

\pagebreak

More text.\footnote{And yet another text footnote.}

\begin{table}[t]
\centering
\begin{tabular}{|c|c|c|}
\hline
Another\tablefootnote{A $2^{nd}$ table footnote.} & %
text\tablefootnote{Another $2^{nd}$ table footnote.} & %
in a table\tablefootnote{A $2^{nd}$ third table footnote.}\\ \hline
\end{tabular}
\caption[Another table]{Another table (second one)\label{tab.another}}
\end{table}

Please note that the table floated to the top of the page. While the
footnotes are set and (when hyperref is used) hyperlinked, they are
not automatically adapted. Thus either do not use a footnote at the
same page before the table, or place the table in
\textquotedblleft here\textquotedblright\ or
\textquotedblleft bottom\textquotedblright\ position.
\verb|\clear(double)page|, \verb|h(!)|, \verb|H|~from the
\texttt{float} package, or \verb|\FloatBarrier| from the
\texttt{picins} package might help, too. (Or move the table in the
source code near the position where it floats to.)

Table~\ref{tab.floatH} (page~\pageref{tab.floatH}) uses float specifier
\texttt{H} from the float package and does not float.

Some text.\footnote{This is just another text footnote.}

\pagebreak

\FloatBarrier

\begin{sidewaystable}
\centering%
\begin{tabular}{ccc}
Text\tablefootnote{Rotate view for testing the hyperlinks.} & %
in a\tablefootnote{Another sidewaystable footnote.} & %
sidewaystable%
\tablefootnote{Sidewaystable-environment provided by %
\url{http://CTAN.org/pkg/rotating} package.}
\end{tabular}
\caption[A sideways table]{A table in the \texttt{sideways} %
environment\label{tab.sideways}}%
\end{sidewaystable}%

\FloatBarrier

\pagebreak

A last table, here with float specifier \texttt{H} from the
float\footnote{\url{http://CTAN.org/pkg/float}} package.

\begin{table}[H]
\centering
\begin{tabular}{ccc}
Another\tablefootnote{A $4^{th}$ table footnote.} & %
text\tablefootnote{Another $4^{th}$ table footnote.} & %
in a table\tablefootnote{A $4^{th}$ third table footnote.}
\end{tabular}
\caption[A last table]{A very last table\label{tab.floatH}}
\end{table}

Some text.\footnote{This is just another text footnote.}

\pagebreak

End of the example for the
tablefootnote\footnote{\url{http://CTAN.org/pkg/tablefootnote}} package.

\end{document}
\endinput
%%
%% End of file `tablefootnote-example.tex'.