diff options
Diffstat (limited to 'tex/context/base/x-asciimath.mkiv')
-rw-r--r-- | tex/context/base/x-asciimath.mkiv | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/tex/context/base/x-asciimath.mkiv b/tex/context/base/x-asciimath.mkiv index c24377275..27d19693f 100644 --- a/tex/context/base/x-asciimath.mkiv +++ b/tex/context/base/x-asciimath.mkiv @@ -129,6 +129,8 @@ \usemodule[mathml-basics] +\startmodule[asciimath] + \unprotect \writestatus{asciimath}{beware, this is an experimental (m4all only) module} @@ -143,6 +145,16 @@ %D The core commands: +% if we need to set + +\installsetuponlycommandhandler {asciimath} {asciimath} + +\appendtoks + \ctxlua{moduledata.asciimath.setup { + separator = "\asciimathparameter\c!separator", + }}% +\to \everysetupasciimath + \unexpanded\def\asciimath#1% {\ctxcommand{asciimath(\!!bs\detokenize\expandafter{\normalexpanded{#1}}\!!es)}} @@ -258,10 +270,14 @@ \stopsetups +\stopmodule + \continueifinputfile{x-asciimath.mkiv} %D This will become an extra. +\showframe + \setups[asciimath:layout] % \enabletrackers[modules.asciimath.mapping] @@ -273,10 +289,10 @@ % % \ShowAsciiMathSave[e:/temporary/asciimath/asciimath.lua] % \stoptext -% \starttext -% \unexpanded\def\MyAsciiMath#1{\startformula\asciimath{#1}\stopformula} -% \startlines -% \MyAsciiMath{x^2 / 10 // z_12^34 / 20} +\starttext +\unexpanded\def\MyAsciiMath#1{\startformula\asciimath{#1}\stopformula} +\startlines +\MyAsciiMath{x^2 / 10 // z_12^34 / 20} % \MyAsciiMath{{:{:x^2:} / 10:} // {:{:z_12^34 :} / 20:}} % \MyAsciiMath{x^2+y_1+z_12^34} % \MyAsciiMath{sin^-1(x)} @@ -360,5 +376,5 @@ % \MyAsciiMath{x^ (-1 1/2) =1/x^ (1 1/2)=1/ (x^1*x^ (1/2)) =1/ (xsqrt(x))} % \MyAsciiMath{x^2(10 -x)>2 x^2} % \MyAsciiMath{x^4>x} -% \stoplines -% \stoptext +\stoplines +\stoptext |