1
2
3\setuplayout[topspace=5mm,bottomspace=5mm,height=middle,header=1cm,footer=0cm]
4
5\starttext
6
7\startbuffer[sample]
8 \enabletrackers[formulas.framed] \showboxes
9 \startformula
10 e = mc2
11 \stopformula
12 \par
13 \startformula
14 e = mc2
15 \stopformula
16 \startformula
17 e = mc2
18 \stopformula
19 \startformula
20 e \dorecurse{12} { = mc2 }
21 \stopformula
22 \startplaceformula
23 \startformula
24 e = mc2
25 \stopformula
26 \stopplaceformula
27 \startplaceformula
28 \startformula
29 e \dorecurse{12} { = mc2 }
30 \stopformula
31 \stopplaceformula
32\stopbuffer
33
34\startbuffer[setupb]
35\setupformula
36 [option=frame]
37\stopbuffer
38
39\startbuffer[setupd]
40\setupformulaframed
41 [frame=on,
42
43
44 foregroundcolor=white,
45 background=color,
46 backgroundcolor=gray]
47\stopbuffer
48
49\startbuffer[setupc]
50\setupformula
51 [frame=number]
52\stopbuffer
53
54\startbuffer[all]
55\start
56 \typebuffer[setupa]
57 \getbuffer[setupa]
58 \getbuffer[sample]
59 \typebuffer[setupb]
60 \typebuffer[setupd]
61 \getbuffer[setupb]
62 \getbuffer[setupd]
63 \getbuffer[sample]
64 \typebuffer[setupc]
65 \getbuffer[setupc]
66 \getbuffer[sample]
67 \page
68\stop
69\stopbuffer
70
71\startbuffer
72 \startbuffer[setupa]
73 \setupformula
74 [align=flushleft]
75 \stopbuffer
76 \getbuffer[all]
77 \startbuffer[setupa]
78 \setupformula
79 [align=flushleft,location=left]
80 \stopbuffer
81 \getbuffer[all]
82
83 \startbuffer[setupa]
84 \setupformula
85 [align=middle]
86 \stopbuffer
87 \getbuffer[all]
88 \startbuffer[setupa]
89 \setupformula
90 [align=middle,location=left]
91 \stopbuffer
92 \getbuffer[all]
93
94 \startbuffer[setupa]
95 \setupformula
96 [align=flushright]
97 \stopbuffer
98 \getbuffer[all]
99 \startbuffer[setupa]
100 \setupformula
101 [align=flushright,location=left]
102 \stopbuffer
103 \getbuffer[all]
104\stopbuffer
105
106\getbuffer
107
108\startbuffer[setupb]
109\setupformula
110 [option={tight,frame}]
111\stopbuffer
112
113\getbuffer
114
115\stoptext
116 |