2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Math Macros Definitions}
15
16\unprotect
17
18\pushoverloadmode
19
20\startluacode
21 mathematics.define(\number\defaultmathfamily)
22
23\stopluacode
24
25\popoverloadmode
26
27\activatemathcharacters
28
29
30
31
32\definemathcommand [arccos] [nolop] {\mfunctionlabeltext{arccos}}
33\definemathcommand [arcsin] [nolop] {\mfunctionlabeltext{arcsin}}
34\definemathcommand [arctan] [nolop] {\mfunctionlabeltext{arctan}}
35\definemathcommand [arccosh] [nolop] {\mfunctionlabeltext{arccosh}}
36\definemathcommand [arcsinh] [nolop] {\mfunctionlabeltext{arcsinh}}
37\definemathcommand [arctanh] [nolop] {\mfunctionlabeltext{arctanh}}
38\definemathcommand [acos] [nolop] {\mfunctionlabeltext{acos}}
39\definemathcommand [asin] [nolop] {\mfunctionlabeltext{asin}}
40\definemathcommand [atan] [nolop] {\mfunctionlabeltext{atan}}
41\definemathcommand [arg] [nolop] {\mfunctionlabeltext{arg}}
42\definemathcommand [cosh] [nolop] {\mfunctionlabeltext{cosh}}
43\definemathcommand [cos] [nolop] {\mfunctionlabeltext{cos}}
44\definemathcommand [coth] [nolop] {\mfunctionlabeltext{coth}}
45\definemathcommand [cot] [nolop] {\mfunctionlabeltext{cot}}
46\definemathcommand [csc] [nolop] {\mfunctionlabeltext{csc}}
47\definemathcommand [deg] [nolop] {\mfunctionlabeltext{deg}}
48\definemathcommand [det] [limop] {\mfunctionlabeltext{det}}
49\definemathcommand [dim] [nolop] {\mfunctionlabeltext{dim}}
50\definemathcommand [exp] [nolop] {\mfunctionlabeltext{exp}}
51\definemathcommand [gcd] [limop] {\mfunctionlabeltext{gcd}}
52\definemathcommand [hom] [nolop] {\mfunctionlabeltext{hom}}
53\definemathcommand [inf] [limop] {\mfunctionlabeltext{inf}}
54\definemathcommand [injlim] [limop] {\mfunctionlabeltext{injlim}}
55\definemathcommand [ker] [nolop] {\mfunctionlabeltext{ker}}
56\definemathcommand [lg] [nolop] {\mfunctionlabeltext{lg}}
57\definemathcommand [liminf] [limop] {\mfunctionlabeltext{liminf}}
58\definemathcommand [limsup] [limop] {\mfunctionlabeltext{limsup}}
59\definemathcommand [lim] [limop] {\mfunctionlabeltext{lim}}
60\definemathcommand [ln] [nolop] {\mfunctionlabeltext{ln}}
61\definemathcommand [log] [nolop] {\mfunctionlabeltext{log}}
62\definemathcommand [median] [limop] {\mfunctionlabeltext{median}}
63\definemathcommand [max] [limop] {\mfunctionlabeltext{max}}
64\definemathcommand [min] [limop] {\mfunctionlabeltext{min}}
65\definemathcommand [mod] [limop] {\mfunctionlabeltext{mod}}
66
67\definemathcommand [projlim] [limop] {\mfunctionlabeltext{projlim}}
68\definemathcommand [Pr] [limop] {\mfunctionlabeltext{Pr}}
69\definemathcommand [sec] [nolop] {\mfunctionlabeltext{sec}}
70\definemathcommand [sinh] [nolop] {\mfunctionlabeltext{sinh}}
71\definemathcommand [sin] [nolop] {\mfunctionlabeltext{sin}}
72\definemathcommand [sup] [limop] {\mfunctionlabeltext{sup}}
73\definemathcommand [tanh] [nolop] {\mfunctionlabeltext{tanh}}
74\definemathcommand [tan] [nolop] {\mfunctionlabeltext{tan}}
75\definemathcommand [diff] {\mfunctionlabeltext{diff}}
76
77\let\normalmatharg\arg
78
79
80
81\unexpanded\def\setoperatorlimits#1#2
82 {\savenormalmeaning{#1}
83 \expandafter\def\expandafter#1\expandafter{\csname normal\csstring#1\endcsname#2}}
84
85\pushoverloadmode
86
87\setoperatorlimits \int \intlimits
88\setoperatorlimits \iint \intlimits
89\setoperatorlimits \iiint \intlimits
90\setoperatorlimits \oint \intlimits
91\setoperatorlimits \oiint \intlimits
92\setoperatorlimits \oiiint \intlimits
93\setoperatorlimits \intclockwise \intlimits
94\setoperatorlimits \ointclockwise \intlimits
95\setoperatorlimits \ointctrclockwise \intlimits
96
97\popoverloadmode
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140\pushoverloadmode
141
142\definemathcommand [colonsep] {\mkern1.2mu}
143\definemathcommand [doublecolonsep] {\mkern0.9mu}
144
145\definemathcommand [centercolon] [rel] {\mathstylevcenteredhbox\colon}
146\definemathcommand [colonminus] [rel] {\centercolon\colonsep\mathrel{}}
147
148
149
150\definemathcommand [colonapprox] [rel] {\centercolon\colonsep\approx}
151\definemathcommand [approxcolon] [rel] {\approx\centercolon\colonsep}
152\definemathcommand [colonsim] [rel] {\centercolon\colonsep\sim}
153\definemathcommand [simcolon] [rel] {\sim\centercolon\colonsep}
154
155\definemathcommand [coloncolon] [rel] {\centercolon\doublecolonsep\centercolon}
156\definemathcommand [coloncolonminus] [rel] {\coloncolon\colonsep\mathrel{}}
157\definemathcommand [minuscoloncolon] [rel] {\mathrel{}\colonsep\coloncolon}
158\definemathcommand [coloncolonequals] [rel] {\coloncolon\colonsep=}
159\definemathcommand [equalscoloncolon] [rel] {=\coloncolon\colonsep}
160\definemathcommand [coloncolonapprox] [rel] {\coloncolon\colonsep\approx}
161\definemathcommand [approxcoloncolon] [rel] {\approx\coloncolon\colonsep}
162\definemathcommand [coloncolonsim] [rel] {\coloncolon\colonsep\sim}
163\definemathcommand [simcoloncolon] [rel] {\sim\coloncolon\colonsep}
164
165\popoverloadmode
166
167
168
169
170
171\protect \endinput
172 |