summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/math-ini.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/math-ini.mkxl')
-rw-r--r--tex/context/base/mkxl/math-ini.mkxl21
1 files changed, 21 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/math-ini.mkxl b/tex/context/base/mkxl/math-ini.mkxl
index a1e5c29a6..ce5f73d74 100644
--- a/tex/context/base/mkxl/math-ini.mkxl
+++ b/tex/context/base/mkxl/math-ini.mkxl
@@ -737,6 +737,7 @@
\definesystemattribute[mathvariant] [public]
\definesystemattribute[mathnumbers] [public]
\definesystemattribute[mathspacing] [public]
+\definesystemattribute[mathfencing] [public]
\definesystemattribute[displaymath] [public]
@@ -2817,6 +2818,26 @@
\setupmathematics
[\c!autonumbers=\v!no]
+\installcorenamespace{autofencing}
+
+\permanent\protected\def\enablemathautofencing
+ {\attribute\mathfencingattribute\plusone
+ \clf_initializemathfencing}
+
+\permanent\protected\def\disablemathautofencing
+ {\attribute\mathfencingattribute\attributeunsetvalue}
+
+\appendtoks
+ \ifcstok{\mathematicsparameter\c!autofencing}\v!yes
+ \enablemathautofencing
+ \else
+ \disablemathautofencing
+ \fi
+\to \everysetupmathematics
+
+\setupmathematics
+ [\c!autofencing=\v!no]
+
%D The consequences of setting this are as follows:
%D
%D \def\TestA#1#2#3%