summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/math-ini.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-04-04 14:11:01 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-04-04 14:11:01 +0200
commit64f6e8fc0c6cb9254a6fe3db0b4ab31c51cf8524 (patch)
tree1b36a0b35f5b6d516d27fe817a27249d4c6d9c78 /tex/context/base/mkiv/math-ini.mkiv
parent70a938c4934f042face9805fc4c392c0676b11d5 (diff)
downloadcontext-64f6e8fc0c6cb9254a6fe3db0b4ab31c51cf8524.tar.gz
2019-04-04 13:38:00
Diffstat (limited to 'tex/context/base/mkiv/math-ini.mkiv')
-rw-r--r--tex/context/base/mkiv/math-ini.mkiv16
1 files changed, 13 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/math-ini.mkiv b/tex/context/base/mkiv/math-ini.mkiv
index 50da1a400..3c27bbf07 100644
--- a/tex/context/base/mkiv/math-ini.mkiv
+++ b/tex/context/base/mkiv/math-ini.mkiv
@@ -268,8 +268,8 @@
\def\math_m_yes_text_openedup#1%
{\setbox\scratchbox\hbox\bgroup
- \normalstartimath
\the\everyswitchmathematics\relax
+ \normalstartimath
#1%
\normalstopimath
\egroup
@@ -285,8 +285,8 @@
\endgroup}
\def\math_m_yes_text_normal#1%
- {\normalstartimath
- \the\everyswitchmathematics\relax
+ {\the\everyswitchmathematics\relax
+ \normalstartimath
#1%
\normalstopimath
\endgroup}
@@ -436,6 +436,16 @@
% if there were many features we could have a feature pass over math nodes but it makes no
% sense now so we have commands to deal with it
+% \enabletrackers[math.alternates]
+% \setupbodyfont[lucidaot]
+%
+% \startTEXpage
+% \setupmathematics[stylealternative={reset}]$x+\mathcal A$\par
+% \setupmathematics[stylealternative={reset,calligraphic}]$x+\mathcal A$\par
+% \setupmathematics[stylealternative={reset,italic}]$x+\mathcal A$\par
+% \setupmathematics[stylealternative={reset,calligraphic,italic}]$x+\mathcal A$
+% \stopTEXpage
+
\unexpanded\def\mathaltcalligraphic{\math_set_font_alternate{calligraphic}\cal} % set via goody file
\unexpanded\def\mathaltitalic {\math_set_font_alternate{italic}} % set via goody file
\unexpanded\def\mathslashedzero {\begingroup\math_set_font_alternate{zero}∅\endgroup} % set via goody file or automatic