blob: 30d9643cf71b1f413a63ce4f2ed5e8fbfa9a846f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
%D \module
%D [ file=math-int,
%D version=2007.07.19,
%D title=\CONTEXT\ Math Macros,
%D subtitle=Scripts,
%D author={Hans Hagen \& Taco Hoekwater \& Aditya Mahajan},
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\writestatus{loading}{ConTeXt Math Macros / Integrals}
%D This is replaced by the operator module.
\unprotect
\installcorenamespace{mathintegral}
\newconstant\mathintlimitmode
\permanent\def\intlimits % also used elsewhere
{\ifcase\mathintlimitmode
\nolimits
\or
\displaylimits
\or
\limits
\or
\ifnum\attribute\mathmodeattribute=\plusone
\limits
\else
\nolimits
\fi
\else
% none
\fi}
\letcsname\??mathintegral nolimits\endcsname\zerocount
\letcsname\??mathintegral displaylimits\endcsname\plusone
\letcsname\??mathintegral limits\endcsname\plustwo
\letcsname\??mathintegral autolimits\endcsname\plusthree
\letcsname\??mathintegral none\endcsname\plusfour
\appendtoks
\mathintlimitmode
\ifcsname\??mathintegral\mathematicsparameter\s!integral\endcsname
\lastnamedcs
\else
\zerocount
\fi
\to \everyswitchmathematics
\setupmathematics
% [\c!integral=nolimits]
[\c!integral=autolimits]
\protect \endinput
|