summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/math-dif.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/math-dif.mkxl')
-rw-r--r--tex/context/base/mkxl/math-dif.mkxl39
1 files changed, 39 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/math-dif.mkxl b/tex/context/base/mkxl/math-dif.mkxl
new file mode 100644
index 000000000..5cd65a80f
--- /dev/null
+++ b/tex/context/base/mkxl/math-dif.mkxl
@@ -0,0 +1,39 @@
+%D \module
+%D [ file=math-dif,
+%D version=2022.05.31, % moved code
+%D title=\CONTEXT\ Math Macros,
+%D subtitle=Differentials,
+%D author=Hans Hagen,
+%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 / Differentials}
+
+\unprotect
+
+\pushoverloadmode
+
+ % For new times sake:
+
+ \let\normal_math_dd\dd
+
+ \def\c!differentiald{differentiald} % for now
+
+ \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}
+
+ % \setupmathematics[differentiald=upright]
+
+\popoverloadmode
+
+\protect