|Setting up pages|
Features for formatting the content of running headers and footers
You can set up in the stylesheet p2-headersfooters.xsl whether text or graphics appears in headers or footers, and whether in the left, centre or right side of the headers and footers.
Styles for the text. The typeface, font size, weight, style, colour and alignment can be set separately for the book title, part title, chapter title, section title and page numbers.
There are further options in the stylesheet to additionally display the prefix and label number for part and chapter titles, and a prefix for page numbers.
For part titles, the options at stylesheet feature p2-35 are: main title (e.g. "Overall concepts of this topic"), prefix and label number with title (e.g. "Part 1 Overall concepts of this topic"), or an abbreviated title if you have <titleabbrev> in the XML markup (e.g. "Overall concepts").
For chapter titles, the options at stylesheet feature p2-70 are: main title (e.g. "Introduction to the book"), prefix and label number with title (e.g. "Chapter 1 Introduction to the book"), or an abbreviated title if you have <titleabbrev> in the XML markup (e.g. "Introduction").
For page numbers, you can type in the stylesheet at feature p2-135 any text to use as a prefix (e.g. "Page").
Proportional widths of cells. The space in running headers and footers is represented as an "invisible table" divided into a single row of three columns: left, centre and right. Specify the proportional widths of these three columns at stylesheet feature p2-310 (for headers) or p2-915 (for footers) using integer numbers separated by a single space. The following diagram demonstrates two layouts for content in running headers/footers using different proportional widths.
Separator rule lines. You can display separator rule lines below running headers or above running footers. There are options to selectively display rule lines for different book components (e.g. the first page of chapters, blank pages). You can also set the width, colour and pattern style of rule lines separately for running headers and footers.
Background colours. There are stylesheet features to optionally display solid background colours separately for all running headers (p2-225) and footers (p2-830). Also, you can set up border styles, margin and padding values for headers and footers.
Titles. The text contained within <title> elements is used in running headers and footers. You have the option to insert a shortened title by adding a <titleabbrev> element immediately after <title> elements for part and chapter titles.