diff options
Diffstat (limited to 'tex/context/base/supp-mat.tex')
-rw-r--r-- | tex/context/base/supp-mat.tex | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tex/context/base/supp-mat.tex b/tex/context/base/supp-mat.tex index 54ff34f01..d35dc52d3 100644 --- a/tex/context/base/supp-mat.tex +++ b/tex/context/base/supp-mat.tex @@ -45,9 +45,9 @@ %D %D Which is implemented as: -\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi} % lookahead bug reported by brooks -\def\displaymath#1{\relax\ifmmode#1\else$$#1$$\fi} -\def\inlinemath #1{\relax\ifmmode#1\else$#1$\fi} +\long\def\mathematics#1{\relax\ifmmode#1\else $#1$\fi} % lookahead bug reported by brooks +\long\def\displaymath#1{\relax\ifmmode#1\else$$#1$$\fi} +\long\def\inlinemath #1{\relax\ifmmode#1\else $#1$\fi} \def\startmathmode {\ifmmode @@ -62,6 +62,15 @@ \let\math\mathematics %D \macros +%D {displaymathematics,inlinemathematics,automathematics} +%D +%D An example of usage of the following can be found in the MathML module: + +\long\def\displaymathematics#1{\relax\ifmmode#1\else\dostartformula{}#1\dostopformula\fi} + \let\inlinemathematics \mathematics + \def\automathematics {\relax\ifhmode\@EA\inlinemathematics\else\@EA\displaymathematics\fi} + +%D \macros %D {dimension, nodimension} %D %D The next few macros are used for typesetting dimensions in |