diff options
Diffstat (limited to 'tex/context/base/mkiv/math-toy.mkxl')
-rw-r--r-- | tex/context/base/mkiv/math-toy.mkxl | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tex/context/base/mkiv/math-toy.mkxl b/tex/context/base/mkiv/math-toy.mkxl deleted file mode 100644 index 510872e3b..000000000 --- a/tex/context/base/mkiv/math-toy.mkxl +++ /dev/null @@ -1,54 +0,0 @@ -%D \module -%D [ file=math-toy, -%D version=2020.08.31, -%D title=\CONTEXT\ Math Macros, -%D subtitle=Toy math, -%D author=Hans Hagen, -%D date=\currentdate, -%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] -%C -%C This module is part of the \CONTEXT\ macro||package and is -%C therefore copyrighted by \PRAGMA. See mreadme.pdf for -%C details. - -\writestatus{loading}{ConTeXt Math Macros / Toy} - -\unprotect - -%D Just an example: -%D -%D \starttyping -%D \enabletrackers[math.toysymbol] -%D -%D \definemathtoysymbol[Plus] [bin][+] -%D \definemathtoysymbol[Minus][bin][-] -%D \definemathtoysymbol[Equal][rel][=] -%D -%D $\dorecurse{199}{x_{#1} \ifodd#1\relax\Plus\else\Minus\fi} x_{200} \Equal n$ \blank -%D \stoptyping - -\permanent\tolerant\protected\def\definemathtoysymbol[#1]#*[#2]#*[#3]% - {\ifarguments\or\or\or - \setuevalue{#1}{\math_toy_define_symbol_indeed{\mathcodechecked{#2}}{#3}}% - \fi} - -\protected\def\math_toy_define_symbol_traced#1#2% - {\normalexpanded{\discretionary class #1 % - {$\Ustyle\number\mathstyle \darkred #2$}% - {$\Ustyle\number\mathstyle \darkblue #2$}% - {$\Ustyle\number\mathstyle \darkgreen #2$}}} - -\protected\def\math_toy_define_symbol_normal#1#2% - {\normalexpanded{\discretionary class #1 % - {$\Ustyle\number\mathstyle #2$}% - {$\Ustyle\number\mathstyle #2$}% - {$\Ustyle\number\mathstyle #2$}}} - -\installtextracker - {math.toysymbol} - {\let\math_toy_define_symbol_indeed\math_toy_define_symbol_traced} - {\let\math_toy_define_symbol_indeed\math_toy_define_symbol_normal} - -\let\math_toy_define_symbol_indeed\math_toy_define_symbol_normal - -\protect |