summaryrefslogtreecommitdiff
path: root/usergrps/uktug/baskervi/5_4/hhst11a.tex
blob: 50a8adc9ba9924a213ed4e22c65105cb86e5ef69 (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
% step 1:
\newcommand\getfootnotemarker[1]{%
  \stepcounter{footnote}%
  \newcounter{#1}%
  \setcounter{#1}{\value{footnote}}%
  \expandafter\newcommand\csname #1\endcsname
    {\footnotemark[\value{#1}]}}
\getfootnotemarker{notea}%
\getfootnotemarker{noteb}%
\getfootnotemarker{notec}%

% step 2:
\newcommand\tablenotes{%
  \footnotetext[\value{notea}]{%
                     First example footnote}%
  \footnotetext[\value{noteb}]{%
                     Second example footnote}%
  \footnotetext[\value{notec}]{%
                     Third example footnote}}

% step 3:
\tablenotes
\begin{center}
\begin{tabular}{|l|l|}%
\hline
  name       & amount in \$ \\
\hline
  Achterberg & 100          \\
  Bosman     & 150\notea    \\
  Evers      & 125\noteb    \\
  Gerritsen  & 145          \\
  Hooier     & 170\notec    \\
  Jansen     & 165\notea    \\
\hline
\end{tabular}
\end{center}