ma-cb-en-alignments.tex /size: 1662 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-alignments
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Alignment]
8
9\index{alignment}
10
11\Command{\tex{setupalign}}
12\Command{\tex{setup tolerance}}
13\Command{\tex{rightaligned}}
14\Command{\tex{leftlines}}
15\Command{\tex{midaligned}}
16
17Horizontal and vertical alignment can be set up with:
18
19\shortsetup{setupalign}
20
21Single lines can be aligned with:
22
23\starttyping
24\rightaligned{}
25\leftaligned{}
26\midaligned{}
27\stoptyping
28
29An example can illustrate the alignment behavior:
30
31\startbuffer
32\leftaligned  {Hasselt was built on a sandhill.}
33\midaligned   {Hasselt was built on the crossing of two rivers.}
34\rightaligned {Hasselt's name stems from hazelwood.}
35\stopbuffer
36
37\typebuffer
38
39After processing this would look like:
40
41\getbuffer
42
43Alignment of a paragraph is done with:
44
45\shortsetup{startalignment}
46
47\startbuffer
48\startalignment[flushright,nothyphenated]
49  For Hasselt the 15th and 16th century were relatively unstable times.
50  There were uprises and disputes with neighbouring cities. To be
51  able to defend themselves the city council ordered a number of
52  arquebuses (very primitive firearms). Fourteen of these have survived
53  and now form one of the greatest arquebus collections in Europe.
54\stopalignment
55\stopbuffer
56
57\typebuffer
58
59This will become a rightaligned paragraph without hyphenations:
60
61\getbuffer
62
63In case of alignment you can specify a tolerance and the direction (vertical or
64horizontal). Normally the tolerance is \type{verystrict}. In colums you could
65specify \type{verytolerant}. The tolerance in this manual is:
66
67\starttyping
68\setuptolerance[horizontal,verystrict]
69\stoptyping
70
71\stopchapter
72
73\stopcomponent
74