summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/start/en/ma-cb-en-sortedlists.tex
blob: c3b47ea27ea1e274638539c6d586e736af00200e (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
\startcomponent ma-cb-en-sortedlists

\enablemode[**en-us]

\project ma-cb

\startchapter[reference=synonyms,title=Sorted lists]

\index{sorted lists}

\Command{\tex{definesorting}}
\Command{\tex{setupsorting}}
\Command{\tex{sort}}
\Command{\tex{placelistofsorts}}
\Command{\tex{completelistofsorts}}

If you want to create a sorted list you can use:

\shortsetup{definesorting}

For example:

\startbuffer
\define[1]\street{#1\Street{#1}}
\definesorting[Street][Streets]
\setupsorting[Street][criterium=all]

When you walk in the \street{Eikenlaan} you will cross the
\street{Vechtlaan} and \street{Gasthuisstraat}. Go left into the
\street{Gasthuisstraat} and take another left on the
\street{Heerengracht}. You walk along the canal to the
\street{Ridderstraat}, there you turn right. Cross the canal and
turn left to the \street{Julianakade}. There you can enjoy the
view over the Zwartewater.

So the streets you visited are:

\placelistofStreets
\stopbuffer

\typebuffer

This will become:

\getbuffer

Note that the Gasthuisstraat appears only once in the list.

The predefined \type{\logo} command is used for the consistent use of text logos.

When you define:
\startbuffer
\logo [HSTEX]    {Hassel\TeX}
\stopbuffer

\getbuffer\typebuffer

You can use that logo througout your text.

\startbuffer
How would you call a \TEX\ based macropackage when you work
in Hasselt? \HSTEX?
\stopbuffer

\typebuffer

\getbuffer

\stopchapter

\stopcomponent