summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl')
-rw-r--r--Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl56
1 files changed, 27 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl b/Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl
index 4c11177260a..425ddf9dc36 100644
--- a/Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl
+++ b/Master/texmf-dist/tex/context/base/mkxl/math-dif.mkxl
@@ -15,34 +15,32 @@
\unprotect
-\pushoverloadmode
-
- % For new times sake:
-
- \ifdefined\dd \aliased\let\normal_math_dd\dd \else \lettonothing\normal_math_dd \fi
- \ifdefined\DD \aliased\let\normal_math_DD\DD \else \lettonothing\normal_math_DD \fi
-
- \def\c!differentiald{differentiald} % for now
-
- \def\upright_math_dd{\mathatom \s!unpack \mathdifferentialcode{\mathupright d}}
- \def\upright_math_DD{\mathatom \s!unpack \mathdifferentialcode{\mathupright D}}
-
- \permanent\protected\def\dd
- {\ifcstok{\mathematicsparameter\c!differentiald}\s!upright
- \upright_math_dd
- \else
- \normal_math_dd
- \fi}
-
- \permanent\protected\def\DD
- {\ifcstok{\mathematicsparameter\c!differentiald}\s!upright
- \upright_math_DD
- \else
- \normal_math_DD
- \fi}
-
- % \setupmathematics[differentiald=upright]
-
-\popoverloadmode
+%D The shapes are defined in \type {char-def.lua} where they get the right class
+%D too.
+%D
+%D \starttyping
+%D \setupmathematics
+%D [differentiald=upright]
+%D \stoptyping
+
+\permanent\protected\def\dd
+ {\ifcstok{\mathematicsparameter\c!differentiald}\s!upright
+ \begingroup
+ \mathupright
+ \mathduprightshape
+ \endgroup
+ \else
+ \mathditalicshape
+ \fi}
+
+\permanent\protected\def\DD
+ {\ifcstok{\mathematicsparameter\c!differentiald}\s!upright
+ \begingroup
+ \mathupright
+ \mathDuprightshape
+ \endgroup
+ \else
+ \mathDitalicshape
+ \fi}
\protect