ma-cb-en-sortedlists.tex /size: 1452 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-sortedlists
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[reference=synonyms,title=Sorted lists]
8
9\index{sorted lists}
10
11\Command{\tex{definesorting}}
12\Command{\tex{setupsorting}}
13\Command{\tex{sort}}
14\Command{\tex{placelistofsorts}}
15\Command{\tex{completelistofsorts}}
16
17If you want to create a sorted list you can use:
18
19\shortsetup{definesorting}
20
21For example:
22
23\startbuffer
24\define[1]\street{#1\Street{#1}}
25\definesorting[Street][Streets]
26\setupsorting[Street][criterium=all]
27
28When you walk in the \street{Eikenlaan} you will cross the
29\street{Vechtlaan} and \street{Gasthuisstraat}. Go left into the
30\street{Gasthuisstraat} and take another left on the
31\street{Heerengracht}. You walk along the canal to the
32\street{Ridderstraat}, there you turn right. Cross the canal and
33turn left to the \street{Julianakade}. There you can enjoy the
34view over the Zwartewater.
35
36So the streets you visited are:
37
38\placelistofStreets
39\stopbuffer
40
41\typebuffer
42
43This will become:
44
45\getbuffer
46
47Note that the Gasthuisstraat appears only once in the list.
48
49The predefined \type{\logo} command is used for the consistent use of text logos.
50
51When you define:
52\startbuffer
53\logo [HSTEX]    {Hassel\TeX}
54\stopbuffer
55
56\getbuffer\typebuffer
57
58You can use that logo througout your text.
59
60\startbuffer
61How would you call a \TEX\ based macropackage when you work
62in Hasselt? \HSTEX?
63\stopbuffer
64
65\typebuffer
66
67\getbuffer
68
69\stopchapter
70
71\stopcomponent
72