ma-cb-en-margintexts.tex /size: 2734 b    last modification: 2020-07-01 14:35
1\startcomponent ma-cb-en-margintexts
2
3\enablemode[**en-us]
4
5\project ma-cb
6
7\startchapter[title=Margin texts]
8
9\index{margin text}
10
11\Command{\tex{margintext}}
12\Command{\tex{inmargin}}
13\Command{\tex{inleft}}
14\Command{\tex{inright}}
15\Command{\tex{margintitle}}
16
17It is very easy to put text in the margin. You just use \type{\inmargin}.
18
19\shortsetup{inmargin}
20
21You may remember one of the earlier examples:
22
23\startbuffer[marginpicture]
24\inmargin
25  {\externalfigure
26     [ma-cb-23]
27     [width=.6\marginwidth]}
28\stopbuffer
29
30\typebuffer[marginpicture]
31
32This would result in a figure in the \pagereference [marginpicture]
33margin. You can imagine that it looks quite nice in some
34documents. But be careful. The margin is rather small so the figure could become
35very marginal.
36
37A few other examples are shown in the text below.\getbuffer
38[marginpicture]
39
40\startbuffer
41The Ridderstraat (Street of knights) \inmargin{Street of\\Knights}
42is an obvious name. In the 14th and 15th centuries, nobility and
43prominent citizens lived in this street. Some of their big houses
44were later turned into poorhouses \inright{poorhouse}and old
45peoples homes.
46
47Up until \inleft[low]{\tfc 1940}1940 there was a synagog in the
48Ridderstraat. Some 40 Jews gathered there to celebrate their
49sabbath. During the war all Jews were deported to Westerbork and
50then to the extermination camps in Germany and Poland. None of
51the Jewish families returned. The synagog was knocked down in
521958.
53\stopbuffer
54
55\typebuffer
56
57The commands \type{\inmargin}, \type{\inleft} and \type{\inright} all have the
58same function. In a two sided document \type{\inmargin} puts the margin text in
59the correct margin. The \type{\\} is used for line breaking. The example above
60would look like this:
61
62\getbuffer
63
64You can set up the margin text with:
65
66\shortsetup{setupinmargin}
67
68Other commands that you can use for forcing text into the margin
69are listed in \in{table}[tab:margincommands].
70
71\placetable
72  [here]
73  [tab:margincommands]
74  {Overview of margin commands.}
75  {\starttable[|l|l|]
76  \HL
77  \NC \bf Command           \NC \bf Meaning \NC\SR
78  \HL
79  \NC \type{\ininner}       \NC text in inner margin \NC\FR
80  \NC \type{\inouter}       \NC text in outer margin \NC\MR
81  \NC \type{\inright}       \NC text in right margin \NC\MR
82  \NC \type{\inleft}        \NC text in left margin \NC\MR
83  \NC \type{\inmargin}      \NC text in the margin \NC\MR
84  \NC \type{\inothermargin} \NC text in other margin \NC\MR
85  \NC \type{\margintext}    \NC text in the margin \NC\LR
86  \HL
87  \stoptable}
88
89If you want to place more extensive text blocks in the margin there is the
90command:
91
92\shortsetup{marginblock}
93
94and the accompanying command:
95
96\shortsetup{setupmarginblocks}
97
98\stopchapter
99
100\stopcomponent
101