diff options
Diffstat (limited to 'tex/context/base/x-asciimath.mkiv')
-rw-r--r-- | tex/context/base/x-asciimath.mkiv | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tex/context/base/x-asciimath.mkiv b/tex/context/base/x-asciimath.mkiv index 0e1230bb0..a1254a445 100644 --- a/tex/context/base/x-asciimath.mkiv +++ b/tex/context/base/x-asciimath.mkiv @@ -163,14 +163,23 @@ % \ignorediscretionaries % \to \everyasciimath +\appendtoks + \enableautofences +\to \everyasciimath + \unexpanded\def\asciimath {\doifnextoptionalelse\asciimath_yes\asciimath_nop} \def\asciimath_yes[#1]#2% - {\mathematics[#1]{\clf_justasciimath{\detokenize\expandafter{\normalexpanded{#2}}}}} + {\mathematics + [#1]% + {\the\everyasciimath% + \clf_justasciimath{\detokenize\expandafter{\normalexpanded{#2}}}}} \def\asciimath_nop#1% - {\mathematics{\clf_justasciimath{\detokenize\expandafter{\normalexpanded{#1}}}}} + {\mathematics + {\the\everyasciimath + \clf_justasciimath{\detokenize\expandafter{\normalexpanded{#1}}}}} \unexpanded\def\ctxmoduleasciimath#1% {\ctxlua{moduledata.asciimath.#1}} |