1 \startcomponent ma-cb-vi-headers
4 \environment ma-cb-env-vi
6 %\chapter{Page headers and footers}
7 \chapter{Phần đầu và phần chân trang
}
11 \index{phần đầu trang
}
12 \index{phần chân trang
}
14 \Command{\tex{setupfootertexts
}}
15 \Command{\tex{setupheadertexts
}}
16 \Command{\tex{setupheader
}}
17 \Command{\tex{setupfooter
}}
18 \Command{\tex{noheaderandfooterlines
}}
20 %In some cases you want to give your document a page header
21 %and footer. The commands to do this are:
22 Trong một vài trường hợp, bạn muốn đặt vào tài liệu của bạn một phần chân
23 trang và phần đầu trang. Các lệnh sau làm việc này:
25 \shortsetup{setupfootertexts
}
26 \shortsetup{setupheadertexts
}
28 %The first bracket pair is used for the location of the
29 %footer or header (\type{text}, \type{edge} etc). Footer and
30 %header are placed within the second and third bracket pairs.
31 %In a double sided document a fourth and fifth bracket
32 %pair is used for footer and header on the left-hand side
33 %page and the right-hand side page. In most cases you can omit
34 %these last two bracket pairs.
35 Cặp ngoặc vuông đầu tiên được dùng để định vị trí của phần đầu và phần chân
36 (
\type{text
},
\type{edge
} ...). Phần chân và phần đầu được đặt trong cặp ngoặc
37 vuông thứ hai và thứ ba. Trong tài liệu hai mặt, cặp ngoặc vuông thứ hai và
38 thứ ba được dùng cho phần chân và phần đầu trên trang mặt trái và mặt phải.
39 Trong hầu hết trường hợp, bạn có thể bỏ qua hai cặp ngoặc vuông cuối này.
42 %\setupfootertexts[Manual][section]
45 \setupfootertexts[Sổ tay
][section
]
50 %In this case the text {\em Manual} will appear in the
51 %left-hand side corner and the title of the actual section on
52 %the right-hand side of the page. This footer will change with
53 %the beginning of a new section.
54 Trong trường hợp này, chữ
{\em Sổ tay
} sẽ xuất hiện ở góc mặt trái và tiêu đề
55 của tiết đoạn nằm ở mặt phải của trang. Phần chân này sẽ thay đổi khi bắt đầu
58 %You can set up the head- and footline with:
59 Bạn có thể thiết lập phần đầu và phần chân với các lệnh:
61 \shortsetup{setupheader
}
62 \shortsetup{setupfooter
}
64 %If you want to leave out the page header and footer you can
66 Nếu bạn muốn bỏ đi phần chân và phần đầu, bạn có thể dùng lệnh:
69 \noheaderandfooterlines