ma-cb-en-columns.tex /size: 4909 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-columns
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Columns]
8
9\index{columns}
10
11\Command{\tex{startcolums}}
12\Command{\tex{setupcolumns}}
13\Command{\tex{column}}
14
15Simple sections of text can be typeset in columns. If you preceed a text fragment
16by \type{\startcolumns} and close the text fragment by \type{\stopcolumns}
17everything in between will be set in columns.
18
19\shortsetup{startcolumns}
20
21Let's give an example:
22
23\startbuffer
24\startcolumns[n=3,tolerance=verytolerant]
25  Hasselt is an old Hanseatic City, situated 12~km north of Zwolle
26  at the river Zwartewater.
27
28  ...
29
30  Furthermore some events of special interest should be
31  mentioned. Every year at the end of August Hasselt celebrates
32  the \quote{Eui Festival} (hay festival).
33\stopcolumns
34\stopbuffer
35
36\typebuffer
37
38\startbuffer
39\hyphenation{Ste-pha-nus}
40\startcolumns[n=3,tolerance=verytolerant]
41Hasselt is an old Hanseatic City, situated 12~km north of Zwolle at
42the river Zwartewater.
43
44The city has a long history since obtaining the city charter around
451252. Part and parcel of this history can be traced back to a large
46number of monuments to be admired in the city center.
47
48There you will find the St. Stephanus church, a late gothic church
49dating back to 1479 with a magnificent organ. The former Municipal
50Building is situated on The Market Place. Constituted between 1500
51and 1550 it houses a large collection of weapons, amongst which one
52of the largest collection of black powder guns (haakhussen) in the
53whole world should be mentioned.
54
55Furthermore there is a corn windmill \quote{The Swallow}, dating back to
561748 as well as the \quote{Stenendijk}, a unique embankment and the last
57shell limekiln in Europe still in full operation.
58
59The city center with the townmoat adorned by lime-trees, the Van
60Stolkspark and the hustle and bustle at the docks are ideally suited
61for a stroll.
62
63The area around Hasselt is also worth mentioning. In wintertime
64polder Mastenbroek harbours large numbers of geese. In summertime the
65hamlets Gen\-ne, Streukel and Celle\-mui\-den form, together with the very
66rare lapwing flowers (Lat. Fritillaria meleagris) found on the banks
67of the river Zwatewater, the ideal surroundings for walking or
68cycling trips.
69
70Hasselt also is a very important center for watersports. The lakes of
71northwest Overijssel, the river IJssel, the Overijsselse Vecht and
72the Randmeren are within easy reach from the yacht harbour `De
73Molenwaard'. Sailing, fishing, swimming and ca\-noe\-ing can be fully
74enjoyed in Hasselt.
75
76Furthermore some events of special interest should be
77mentioned. Every year at the end of August Hasselt celebrates the
78\quote{Eui Festival} (hay festival).
79\stopcolumns
80\stopbuffer
81
82The result will be a three column text.
83
84\start
85\switchtobodyfont[9pt]
86\getbuffer
87\stop
88
89If possible a new column can be enforced with \type{\column}. You can set up
90columns with:
91
92\shortsetup{setupcolumns}
93
94In most cases you will obtain a better result by type setting the text on
95\quote{grid}. This is done by typing \type{grid=yes} in the command \type
96{\setuplayout}.
97
98If you want to use columns within a framed text \type{\start ... \stopframedtext}
99there is the simple column mechanism.
100
101\startbuffer
102\startframedtext[background=color,backgroundcolor=gray]
103\startsimplecolumns
104  In Hasselt's local newspaper there was a column on the
105  local customs during New Years Eve.
106  ...
107  \midaligned{\inlinechemical{CaC_2,+,2H_2O,GIVES,C_2H_2(g),+,Ca(OH)_2}}
108  ...
109  Nowadays the heavy metal lid of the milk can is replaced by
110  a football. This does not reduce the sound but it is much
111  saver.
112\stopsimplecolumns
113\stopbuffer
114
115\typebuffer
116
117\startbuffer
118\startframedtext[background=color,backgroundcolor=gray,width=\textwidth]
119\startsimplecolumns
120  In Hasselt's local newspaper there was a column on the
121  local customs during new years Eve. Next to the more
122  general custom of eating Dutch doughnuts (oliebollen)
123  and lighting fireworks there is the carbide shooting.
124  What you need is an oldfashioned metal milk can, carbide,
125  a little water and a lighter.
126
127  The carbide and water is mixed in the closed milk can and
128  will produce \inlinechemical{C_2H_2} gas (acetylene), via:
129
130  \midaligned{\inlinechemical{CaC_2,+,2H_2O,GIVES,C_2H_2 (g),+,Ca(OH)_2}}
131
132  The volatile acetylene gas in the milk can is ignited via a small
133  opening in the can. The result is a very loud detonation and the lid
134  flies off.
135
136  It will not surprise you that Hasselts youth has a designated
137  shooting ground for carbide shooting. Nowadays the heavy
138  metal lid of the milk can is replaced by a football. This
139  does not reduce the sound but it is much saver!
140\stopsimplecolumns
141\stopframedtext
142\stopbuffer
143
144This will result in:
145
146\getbuffer
147
148There is an advanced column mechanism available that is described in the
149\goto {\em Columns} [ url (manual:columns)
150] manual.
151
152\stopchapter
153
154\stopcomponent
155