1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus { loading }{ ConTeXt Math Macros Integrals }
15
16
17
18\unprotect
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39\installcorenamespace { mathintegral }
40
41\newconstant \mathintlimitmode
42
43\def \intlimits
44 { \ifcase \mathintlimitmode
45 \nolimits
46 \or
47 \displaylimits
48 \or
49 \limits
50 \or
51 \ifnum \attribute \mathmodeattribute = \plusone
52 \limits
53 \else
54 \nolimits
55 \fi
56 \else
57
58 \fi }
59
60\letvalue { \??mathintegral nolimits } \zerocount
61\letvalue { \??mathintegral displaylimits } \plusone
62\letvalue { \??mathintegral limits } \plustwo
63\letvalue { \??mathintegral autolimits } \plusthree
64\letvalue { \??mathintegral none } \plusfour
65
66\appendtoks
67 \mathintlimitmode \executeifdefined { \??mathintegral \mathematicsparameter \s!integral } \zerocount
68\to \everyswitchmathematics
69
70\setupmathematics
71
72 [ \v!integral = autolimits ]
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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
141\protect \endinput
142 |