blob: d51403d5dbad8bf8692cbc47979d7cd5aa8c0a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
\startcomponent ma-cb-en-headers
\enablemode[**en-us]
\project ma-cb
\startchapter[title=Page headers and footers]
\index{page header}
\index{page footer}
\Command{\tex{setupfootertexts}}
\Command{\tex{setupheadertexts}}
\Command{\tex{setupheader}}
\Command{\tex{setupfooter}}
\Command{\tex{noheaderandfooterlines}}
In some cases you want to give your document a page header and footer. The
commands to do this are:
\shortsetup{setupfootertexts}
\shortsetup{setupheadertexts}
The first bracket pair is used for the location of the footer or header
(\type{text}, \type{edge} etc). Footer and header are placed within the second
and third bracket pairs. In a double sided document a fourth and fifth bracket
pair is used for footer and header on the left-hand side page and the right-hand
side page. In most cases you can omit these last two bracket pairs.
\startbuffer
\setupfootertexts[Manual][section]
\stopbuffer
\typebuffer
In this case the text {\em Manual} will appear in the left-hand side corner and
the title of the actual section on the right-hand side of the page. This footer
will change with the beginning of a new section.
You can set up the layout of the header and footer with:
\shortsetup{setupheader}
\shortsetup{setupfooter}
If you want to leave out the page header and footer you can type:
\starttyping
\noheaderandfooterlines
\stoptyping
\stopchapter
\stopcomponent
|