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