diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-04-16 09:53:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-04-16 09:53:19 +0200 |
commit | 32e6c720c4f84f112596c6b4a75193f99e9be158 (patch) | |
tree | 9a673cc26aa02f8a9e74d18fc821fb5f3cda5380 /tex/context/base/mkiv/math-ini.mkiv | |
parent | ba81502d685bdba367e2a8f0bdff0f8ecc0cf7f6 (diff) | |
download | context-32e6c720c4f84f112596c6b4a75193f99e9be158.tar.gz |
2019-04-16 09:02:00
Diffstat (limited to 'tex/context/base/mkiv/math-ini.mkiv')
-rw-r--r-- | tex/context/base/mkiv/math-ini.mkiv | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/math-ini.mkiv b/tex/context/base/mkiv/math-ini.mkiv index b6dcf9ba9..24da3441e 100644 --- a/tex/context/base/mkiv/math-ini.mkiv +++ b/tex/context/base/mkiv/math-ini.mkiv @@ -254,11 +254,25 @@ \def\math_m_yes_math[#1]#2% {#2} +% \def\math_m_yes_text[#1]% +% {\begingroup +% \doifassignmentelse{#1}% +% {\setupcurrentmathematics[#1]}% +% {\edef\currentmathematics{#1}}% check for valid +% \edef\p_openup{\mathematicsparameter\c!openup}% +% \ifx\p_openup\v!yes +% \expandafter\math_m_yes_text_openedup +% \else +% \expandafter\math_m_yes_text_normal +% \fi} + \def\math_m_yes_text[#1]% {\begingroup - \doifassignmentelse{#1}% - {\setupcurrentmathematics[#1]}% - {\edef\currentmathematics{#1}}% check for valid + \ifcondition\validassignment{#1}% + \setupcurrentmathematics[#1]% + \else + \edef\currentmathematics{#1}% check for valid + \fi \edef\p_openup{\mathematicsparameter\c!openup}% \ifx\p_openup\v!yes \expandafter\math_m_yes_text_openedup |