symb-imp-mis.mkiv /size: 3193 b    last modification: 2021-10-28 13:50
1%D \module
2%D   [       file=symb-mis,
3%D        version=2002.05.07,
4%D          title=\CONTEXT\ Symbol Libraries,
5%D       subtitle=Miscelaneous,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\unprotect
15
16%D We predefine some common symbols and conversions that will
17%D be understood by many commands. The \type {\mathematics}
18%D is no longer needed, although only math fonts might have
19%D these symbols. The \type {\textmath} macro is twice as
20%D efficient.
21
22\definesymbol [\v!none]     []
23
24% \definesymbol [bullet]      [\textmath\bullet]
25% \definesymbol [dash]        [\textmath-]
26% \definesymbol [star]        [\textmath\star]
27% \definesymbol [triangle]    [\textmath\triangleright]
28% \definesymbol [circle]      [\textmath\circ]
29% \definesymbol [square]      [\textmath\square]
30% \definesymbol [diamond]     [\textmath\diamond]
31% \definesymbol [asterisk]    [\textmath\ast]
32
33% I'm not sure about this ... I dislike the small bullet. So we provide
34% it as variant: \type {\setupsymbolset[text]}. Also, we want to be
35% backward compatible.
36
37% \startsymbolset[text]
38
39    \definesymbol [bullet]        [\textormathchar{"2022}] % • \bullet
40    \definesymbol [dash]          [\textormathchar{"2013}] % –
41    \definesymbol [star]          [\textormathchar{"22C6}] % ⋆ \star
42    \definesymbol [triangle]      [\textormathchar{"22B3}] % ⊳ \triangleright
43    \definesymbol [circle]        [\textormathchar{"2218}] % ∘ \circ
44    \definesymbol [square]        [\textormathchar{"25A1}] % □ \square
45    \definesymbol [diamond]       [\textormathchar{"22C4}] % ⋄ \diamond
46    \definesymbol [checkmark]     [\textormathchar{"2713}] % ✓ \checkmark
47    \definesymbol [asterisk]      [\textormathchar{"2217}] % ∗ \asterisk
48
49    \definesymbol [blacktriangle] [\textormathchar{"25B6}] % ▶
50    \definesymbol [blacksquare]   [\textormathchar{"25A0}] % ■
51    \definesymbol [blackdiamond]  [\textormathchar{"25C6}] % ◆
52
53% \stopsymbolset
54
55\definesymbol [smallcircle] [\hbox{\raise.1ex\hbox{\textmath{\scriptscriptstyle\bigcirc}}}]
56\definesymbol [medcircle]   [\hbox{\raise.1ex\hbox{\textmath{\scriptstyle      \bigcirc}}}]
57\definesymbol [bigcircle]   [\textmath{\bigcirc}]
58
59\definesymbol [1]           [\symbol{bullet}]
60\definesymbol [2]           [\symbol{dash}]
61\definesymbol [3]           [\symbol{star}]
62\definesymbol [4]           [\symbol{triangle}]
63\definesymbol [5]           [\symbol{circle}]
64\definesymbol [6]           [\symbol{medcircle}]
65\definesymbol [7]           [\symbol{bigcircle}]
66\definesymbol [8]           [\symbol{square}]
67\definesymbol [9]           [\symbol{checkmark}]
68
69\definesymbol [S]           [\sectionmark]
70\definesymbol [P]           [\paragraphmark]
71\definesymbol [Numero]      [\textnumero]
72\definesymbol [numero]      [\textnumero]
73\definesymbol [euro]        [\texteuro]
74
75\aliased\let\euro\texteuro
76
77\permanent\protected\def\Numero{\symbol[Numero]} % obsolete
78\permanent\protected\def\numero{\symbol[numero]} % obsolete
79
80\protect \endinput
81