ma-cb-en-footnotes.tex /size: 2629 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-footnotes
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Footnotes]
8
9\index{footnote}
10
11\Command{\tex{footnote}}
12\Command{\tex{setupfootnotes}}
13
14If you want to annotate your text you can use \type{\footnote}. The command looks
15like this:
16
17\shortsetup{footnote}
18
19The bracket pair is optional and contains a logical name. The curly braces
20contain the text you want to display at the foot of the page.
21
22The same footnote number can be called with its logical name.
23
24\shortsetup{note}
25
26If you have typed this text:
27
28\startbuffer
29The Hanse was a late medieval commercial alliance of towns in the
30regions of the North and the Baltic Sea. The association was formed
31for the furtherance and protection of the commerce of its
32members.\footnote[war]{This was the source of jealousy and fear among
33other towns that caused a number of wars.} In the Hanse period there
34was a lively trade in all sorts of articles such as wood, wool,
35metal, cloth, salt, wine and beer.\note[war] The prosperous trade
36caused an enormous growth of welfare in the Hanseatic
37towns.\footnote{Hasselt is one of these towns.}
38\stopbuffer
39
40\typebuffer
41
42It would look like this:
43
44\getbuffer
45
46The footnote numbering is done automatically. The command \type{\setupfootnotes}
47enables you to influence the display of footnotes:
48
49\shortsetup{setupfootnotes}
50
51Footnotes can be set at the bottom of a page but also at other locations, like
52the end of a chapter. This is done with the command:
53
54\shortsetup{placefootnotes}
55
56The footnotes will be placed at the end of your document with
57\type{\setupfootnotes[location=text]} in combination with \type{\placefootnotes}
58at the desired location.
59
60You can also couple footnotes to a table. In that case we speak of local
61footnotes. The commands are:
62
63\shortsetup{startlocalfootnotes}
64
65\shortsetup{placelocalfootnotes}
66
67An example illustrates the use of local footnotes:
68
69\startbuffer
70
71\placetable[][productivity]
72  {Decline of Hasselt's productivity.\footnote{Source: {\em Uit
73   de geschiedenis van Hasselt.}}}
74  {\startlocalfootnotes
75   \starttable[|l|c|c|c|c|]
76   \HL
77   \NC
78   \NC Ovens
79   \NC Blacksmiths
80   \NC Breweries
81   \NC Tile works\footnote{The factories that produced roof tiles.} \NC\SR
82   \HL
83   \NC 1682 \NC 15 \NC 9 \NC 3 \NC 2 \NC\FR
84   \NC 1752 \NC ~6 \NC 4 \NC 0 \NC 0 \NC\LR
85   \HL
86   \NC \use5 \JustLeft{\placelocalfootnotes} \NC\FR
87   \stoptable
88   \stoplocalfootnotes}
89\stopbuffer
90
91\typebuffer
92
93This will result in \in{table}[productivity] with a local footnote. The footnote
94in the caption will appear at the bottom of the page.
95\getbuffer
96
97\stopchapter
98
99\stopcomponent
100