diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkxl/math-for.mkxl')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkxl/math-for.mkxl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkxl/math-for.mkxl b/Master/texmf-dist/tex/context/base/mkxl/math-for.mkxl new file mode 100644 index 00000000000..e6ea402de99 --- /dev/null +++ b/Master/texmf-dist/tex/context/base/mkxl/math-for.mkxl @@ -0,0 +1,47 @@ +%D \module +%D [ file=strc-mat, +%D version=2008.10.20, +%D title=\CONTEXT\ Structure Macros, +%D subtitle=Math Numbering, +%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 Structure Macros / Math Formulas} + +%D This module only provides the code for defining formulas and +%D fetching parameters. The action takes place later. + +\unprotect + +%D \macros +%D {setupformulas,setupsubformulas,setupformulaframed} + +\installcorenamespace{formula} +\installcorenamespace{subformula} +\installcorenamespace{formulaframed} +\installcorenamespace{formulaoption} + +\installcommandhandler \??formula {formula} \??formula +\installcommandhandler \??subformula {subformula} \??subformula % maybe just setuphandler (no childs used yet) +\installframedcommandhandler \??formulaframed {formulaframed} \??formulaframed + +\aliased\let\setupformulas \setupformula +\aliased\let\setupsubformulas\setupsubformula + +\appendtoks + \normalexpanded{\defineformulaframed[\currentformula][\currentformulaparent]}% +\to \everydefineformula + +\def\strc_formulas_option#1% + {\ifcsname\??formulaoption#1\endcsname + \lastnamedcs + \else + \font_basics_switchtobodyfont{#1}% for old time sake, might go away, only pt so maybe dimension and small test + \fi} + +\protect \endinput |