math-for.mkiv /size: 1524 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=strc-mat,
3%D        version=2008.10.20,
4%D          title=\CONTEXT\ Structure Macros,
5%D       subtitle=Math Numbering,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\writestatus{loading}{ConTeXt Structure Macros / Math Formulas}
15
16%D This module only provides the code for defining formulas and
17%D fetching parameters. The action takes place later.
18
19\unprotect
20
21%D \macros
22%D   {setupformulas,setupsubformulas,setupformulaframed}
23
24\installcorenamespace{formula}
25\installcorenamespace{subformula}
26\installcorenamespace{formulaframed}
27\installcorenamespace{formulaoption}
28
29\installcommandhandler       \??formula       {formula}       \??formula
30\installcommandhandler       \??subformula    {subformula}    \??subformula % maybe just setuphandler (no childs used yet)
31\installframedcommandhandler \??formulaframed {formulaframed} \??formulaframed
32
33\let\setupformulas   \setupformula
34\let\setupsubformulas\setupsubformula
35
36\appendtoks
37    \normalexpanded{\defineformulaframed[\currentformula][\currentformulaparent]}%
38\to \everydefineformula
39
40\def\strc_formulas_option#1%
41  {\ifcsname\??formulaoption#1\endcsname
42     \lastnamedcs
43   \else
44     \font_basics_switchtobodyfont{#1}% for old time sake, might go away, only pt so maybe dimension and small test
45   \fi}
46
47\protect \endinput
48