1
2
3\environment mathlayout
4
5\startcomponent mathcombining
6
7\startchapter[title=Combining formulas]
8
9Multiple formulas can be combined by wrapping them:
10
11\startbuffer
12
13\fakewords{20}{30}
14
15\startformula
16 a b = c
17\stopformula
18
19\fakewords{20}{30}
20
21\startformulas
22 \startformula
23 a b = c
24 \stopformula
25 \startformula
26 d e = f
27 \stopformula
28\stopformulas
29
30\fakewords{20}{30}
31
32\startformulas
33 \startformula
34 \frac{\frac{x}{y}}{b} = c
35 \stopformula
36 \startformula
37 d e = f
38 \stopformula
39\stopformulas
40
41\fakewords{20}{30}
42\stopbuffer
43
44\typebuffer
45
46When we bump the space around formulas to \type {big} we get this:
47
48\start
49 \setupformulas[spacebefore=big,spaceafter=big]
50 \appendtoks\showmakeup[reset]\to\everymath
51 \showboxes
52 \getbuffer
53\stop
54
55The formulas get aligned on the baselline which in turn relates to the
56math axis of the formula.
57
58\stopchapter
59
60\stopcomponent
61 |