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
51
52
53\definemathcommand [exp] [nolop] {\mfunctionlabeltext{exp}}
54\definemathcommand [gcd] [limop] {\mfunctionlabeltext{gcd}}
55\definemathcommand [hom] [nolop] {\mfunctionlabeltext{hom}}
56\definemathcommand [inf] [limop] {\mfunctionlabeltext{inf}}
57\definemathcommand [injlim] [limop] {\mfunctionlabeltext{injlim}}
58\definemathcommand [ker] [nolop] {\mfunctionlabeltext{ker}}
59\definemathcommand [lg] [nolop] {\mfunctionlabeltext{lg}}
60\definemathcommand [liminf] [limop] {\mfunctionlabeltext{liminf}}
61\definemathcommand [limsup] [limop] {\mfunctionlabeltext{limsup}}
62\definemathcommand [lim] [limop] {\mfunctionlabeltext{lim}}
63\definemathcommand [ln] [nolop] {\mfunctionlabeltext{ln}}
64\definemathcommand [log] [nolop] {\mfunctionlabeltext{log}}
65\definemathcommand [median] [limop] {\mfunctionlabeltext{median}}
66\definemathcommand [max] [limop] {\mfunctionlabeltext{max}}
67\definemathcommand [min] [limop] {\mfunctionlabeltext{min}}
68\definemathcommand [mod] [limop] {\mfunctionlabeltext{mod}}
69
70\definemathcommand [projlim] [limop] {\mfunctionlabeltext{projlim}}
71\definemathcommand [Pr] [limop] {\mfunctionlabeltext{Pr}}
72\definemathcommand [sec] [nolop] {\mfunctionlabeltext{sec}}
73\definemathcommand [sinh] [nolop] {\mfunctionlabeltext{sinh}}
74\definemathcommand [sin] [nolop] {\mfunctionlabeltext{sin}}
75\definemathcommand [sup] [limop] {\mfunctionlabeltext{sup}}
76\definemathcommand [tanh] [nolop] {\mfunctionlabeltext{tanh}}
77\definemathcommand [tan] [nolop] {\mfunctionlabeltext{tan}}
78\definemathcommand [diff] {\mfunctionlabeltext{diff}}
79
80\let\normalmatharg\arg
81
82
83
84\unexpanded\def\setoperatorlimits#1#2
85 {\savenormalmeaning{#1}
86 \expandafter\def\expandafter#1\expandafter{\csname normal\csstring#1\endcsname#2}}
87
88\pushoverloadmode
89
90\setoperatorlimits \int \intlimits
91\setoperatorlimits \iint \intlimits
92\setoperatorlimits \iiint \intlimits
93\setoperatorlimits \oint \intlimits
94\setoperatorlimits \oiint \intlimits
95\setoperatorlimits \oiiint \intlimits
96\setoperatorlimits \intclockwise \intlimits
97\setoperatorlimits \ointclockwise \intlimits
98\setoperatorlimits \ointctrclockwise \intlimits
99
100\popoverloadmode
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
141
142
143\pushoverloadmode
144
145\definemathcommand [colonsep] {\mkern1.2mu}
146\definemathcommand [doublecolonsep] {\mkern0.9mu}
147
148\definemathcommand [centercolon] [rel] {\mathstylevcenteredhbox\colon}
149\definemathcommand [colonminus] [rel] {\centercolon\colonsep\mathrel{}}
150
151
152
153\definemathcommand [colonapprox] [rel] {\centercolon\colonsep\approx}
154\definemathcommand [approxcolon] [rel] {\approx\centercolon\colonsep}
155\definemathcommand [colonsim] [rel] {\centercolon\colonsep\sim}
156\definemathcommand [simcolon] [rel] {\sim\centercolon\colonsep}
157
158\definemathcommand [coloncolon] [rel] {\centercolon\doublecolonsep\centercolon}
159\definemathcommand [coloncolonminus] [rel] {\coloncolon\colonsep\mathrel{}}
160\definemathcommand [minuscoloncolon] [rel] {\mathrel{}\colonsep\coloncolon}
161\definemathcommand [coloncolonequals] [rel] {\coloncolon\colonsep=}
162\definemathcommand [equalscoloncolon] [rel] {=\coloncolon\colonsep}
163\definemathcommand [coloncolonapprox] [rel] {\coloncolon\colonsep\approx}
164\definemathcommand [approxcoloncolon] [rel] {\approx\coloncolon\colonsep}
165\definemathcommand [coloncolonsim] [rel] {\coloncolon\colonsep\sim}
166\definemathcommand [simcoloncolon] [rel] {\sim\coloncolon\colonsep}
167
168\popoverloadmode
169
170
171
172
173
174\protect \endinput
175 |