1
2
3
4
5
6
7
8
9
10
11
12
13
14\unprotect
15
16\startcontextdefinitioncode
17
18
19
20\definemixedcolumns
21 [\v!columns]
22
23 [\c!balance=\v!yes,
24 \c!blank={\v!line,\v!fixed}]
25
26\permanent\protected\def\setupcolumns
27 {\setupmixedcolumns[\v!columns]}
28
29
30
31\permanent\tolerant\protected\def\startsimplecolumns[#S#1]
32 {\bgroup
33 \setsimplecolumnshsize[#1]
34 \nopenalties
35 \enforced\permanent\protected\def\column{\vfill\break}
36 \setbox\scratchbox\vbox\bgroup
37 \forgetall}
38
39\permanent\protected\def\stopsimplecolumns
40 {\removebottomthings
41 \egroup
42 \rigidcolumnbalance\scratchbox
43 \egroup}
44
45\permanent\protected\def\setsimplecolumnshsize[#S#1]
46 {\getdummyparameters
47 [\c!width=\hsize,
48 \c!distance=1.5\bodyfontsize,
49 \c!n=2,
50 \c!lines=0,
51 #1]
52 \edef\rigidcolumnlines
53 {\directdummyparameter\c!lines}
54 \setrigidcolumnhsize
55 {\directdummyparameter\c!width}
56 {\directdummyparameter\c!distance}
57 {\directdummyparameter\c!n}}
58
59\stopcontextdefinitioncode
60
61\protect \endinput
62 |