blob: 1d48cb50ef7926275dde76101a3ab89ff650b370 (
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-ini,
%D version=2022.07.24,
%D title=\CONTEXT\ Math Macros,
%D subtitle=Extensions aka Tweaks,
%D author={Hans Hagen \& Mikael Sundqvist},
%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 / Tweaks}
%D This file deals with some ommisions in \UNICODE\ (at least we flag them as such).
%D Some of the definitione done elsewhere will be moved here.
\unprotect
% Mathematics - Hollie + Metropole Orkest (conducted by Jules Buckley) .. more than minusses
% \startbuffer
% \startTEXpage[offset=2dk]\showmakeup[mathglue]\mathspacingmode1 % \tracingmath3\tracingonline2
% $ a + - 1 $ \quad
% $ - 2 $ \quad
% $ \um 3 $ \quad
% $ a + \um 4 $ \par
% $ \ump 3 $ \quad
% $ a + \ump 4 $ \quad
% $ \up 5 $ \par
% $ a - \up 6 $ \quad
% $ \upm 5 $ \quad
% $ a - \upm 6 $ \quad
% \par
% $\textstyle - + \um \up \upm \ump $ \quad
% $\scriptstyle - + \um \up \upm \ump $ \quad
% $\scriptscriptstyle - + \um \up \upm \ump $ \quad
% \stopTEXpage
% \stopbuffer
%
% \setupbodyfont[bonum] \getbuffer
% \setupbodyfont[pagella] \getbuffer
\Umathchardef \unaryminus \mathunarycode \zerocount \privatecharactercode{unary minus}
\Umathchardef \unaryplus \mathunarycode \zerocount \privatecharactercode{unary plus}
\Umathchardef \unaryplusminus \mathunarycode \zerocount \privatecharactercode{unary plus minus}
\Umathchardef \unaryminusplus \mathunarycode \zerocount \privatecharactercode{unary minus plus}
\permanent\protected\def\um {\mathortext\unaryminus \textminus}
\permanent\protected\def\up {\mathortext\unaryplus \textplus}
\permanent\protected\def\upm{\mathortext\unaryplusminus\textpm}
\permanent\protected\def\ump{\mathortext\unaryminusplus\textmp}
\permanent\protected\def\una#1{\mathatom class \mathunarycode {#1}}
\permanent\protected\def\bin#1{\mathatom class \mathbinarycode {#1}}
\permanent\protected\def\rel#1{\mathatom class \mathrelationcode{#1}}
\permanent\protected\def\ord#1{\mathatom class \mathordinarycode{#1}}
\protect
|