2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Math Macros Tweaks}
15
16
17
18
19\unprotect
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\immutable\Umathchardef \unaryminus \mathunarycode \zerocount \privatecharactercode{unary minus}
46\immutable\Umathchardef \unaryplus \mathunarycode \zerocount \privatecharactercode{unary plus}
47\immutable\Umathchardef \unaryplusminus \mathunarycode \zerocount \privatecharactercode{unary plus minus}
48\immutable\Umathchardef \unaryminusplus \mathunarycode \zerocount \privatecharactercode{unary minus plus}
49
50\permanent\protected\def\um {\mathortext\unaryminus \textminus}
51\permanent\protected\def\up {\mathortext\unaryplus \textplus}
52\permanent\protected\def\upm{\mathortext\unaryplusminus\textpm}
53\permanent\protected\def\ump{\mathortext\unaryminusplus\textmp}
54
55\permanent\protected\def\una#1{\mathatom \s!class \mathunarycode {#1}}
56\permanent\protected\def\bin#1{\mathatom \s!class \mathbinarycode {#1}}
57\permanent\protected\def\rel#1{\mathatom \s!class \mathrelationcode{#1}}
58\permanent\protected\def\ord#1{\mathatom \s!class \mathordinarycode{#1}}
59
60
61
62
63\immutable\Umathchardef\mathunaryplus \mathunarycode\zerocount"002B
64\immutable\Umathchardef\mathunaryminus \mathunarycode\zerocount"2212
65\immutable\Umathchardef\mathunaryplusminus\mathunarycode\zerocount"00B1
66\immutable\Umathchardef\mathunaryminusplus\mathunarycode\zerocount"2213
67
68\permanent\protected\def\+{\mathortext\mathunaryplus \textplus }
69
70\permanent\protected\def\-{\mathortext\mathunaryminus \explicitdiscretionary}
71\permanent\protected\def\±{\mathortext\mathunaryplusminus\textpm}
72\permanent\protected\def\∓{\mathortext\mathunaryminusplus\textmp}
73
74\immutable\chardef\textminute"2032
75\immutable\chardef\textsecond"2033
76
77
78
79
80
81
82
83
84
85\protect
86 |