ma-cb-en-registers.tex /size: 1776 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-registers
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Registers]
8
9\index{register}
10
11\Command{\tex{index}}
12\Command{\tex{placeindex}}
13\Command{\tex{completeindex}}
14\Command{\tex{defineregister}}
15\Command{\tex{placeregister}}
16\Command{\tex{completeregister}}
17\Command{\tex{setupregister}}
18
19It is possible to generate one or more registers. By default the command
20\type{\index} is available. If you want to add a word to the index you type:
21
22\starttyping
23\index{town hall}
24\stoptyping
25
26The word {\em town hall} will appear as an index entry in the sorted register.
27Sometimes the index word does not appear in normal alphabetic order. For example,
28entries such as symbols have to provide extra sorting information in order to
29produce a correct alphabetical list:
30
31\starttyping
32\index[minus]{$-$}
33\stoptyping
34
35Sometimes you have sub- or sub sub entries. These can be defined as follows:
36
37\starttyping
38\index{town hall+location}
39\index{town hall+architecture}
40\stoptyping
41
42You can generate your register with the command:
43
44\starttyping
45\placeindex
46\stoptyping
47
48or
49
50\starttyping
51\completeindex
52\stoptyping
53
54The command \type{\index} is a predefined \CONTEXT\ command, but of course you
55can also define your own registers.
56
57\shortsetup{defineregister}
58
59For example if you want to make a new register based on the streets in Hasselt
60you could type:
61
62\starttyping
63\defineregister[street]
64\stoptyping
65
66Now a new register command \type{\street} is available. Now
67\type{\street{Ridderstraat}} is a new index entry. To produce a list of entries
68you could now use:
69
70\starttyping
71\placeregister[street]
72\placestreet
73\completestreet
74\stoptyping
75
76You can alter the layout of the registers with:
77
78\shortsetup{setupregister}
79
80\stopchapter
81
82\stopcomponent
83
84