Running Content Category Keys
The header, footer, and running-content category keys control the arrangement and style of running header and footer content.
header
The header category key accepts the keys listed in the following table.
If you don’t specify a height for the header, it effectively disables the header.
|
| Key | Value Type | Example |
|---|---|---|
Color |
|
|
background-image |
image macro | path |
|
border-color |
Color |
|
border-style |
Border style |
|
border-width |
Measurement | Measurement[] |
|
column-rule-color |
Color |
|
column-rule-spacing |
Measurement |
|
column-rule-style |
|
|
column-rule-width |
Measurement |
|
Column specs triple |
|
|
content-margin |
Measurement | Measurement[top,right,bottom,left] |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Number |
|
font-style |
Font style |
|
Measurement |
|
|
image-vertical-align |
|
|
line-height |
Number |
|
margin |
Measurement | Measurement[top,right,bottom(n/a),left] |
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Integer |
|
|
text-transform |
Text transform |
|
title-style |
|
|
vertical-align |
|
|
Column specs triple |
|
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Measurement | Measurement[top,right,bottom(n/a),left] |
|
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Quoted string |
|
footer
The footer category key accepts the keys listed in the following table.
If you don’t specify a height for the footer, it effectively disables the footer.
|
| Key | Value Type | Example |
|---|---|---|
Color |
|
|
background-image |
image macro | path |
|
border-color |
Color |
|
border-style |
Border style |
|
border-width |
Measurement | Measurement[] |
|
column-rule-color |
Color |
|
column-rule-spacing |
Measurement |
|
column-rule-style |
|
|
column-rule-width |
Measurement |
|
Column specs triple |
|
|
content-margin |
Measurement | Measurement[top,right,bottom,left] |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Number |
|
font-style |
Font style |
|
Measurement |
|
|
image-vertical-align |
|
|
line-height |
Number |
|
margin |
Measurement | Measurement[top(n/a),right,bottom,left] |
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Integer |
|
|
text-transform |
Text transform |
|
title-style |
|
|
vertical-align |
|
|
Column specs triple |
|
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Measurement | Measurement[top (n/a),right,bottom,left] |
|
|
Measurement | Measurement[top,right,bottom,left] |
|
|
Quoted string |
|
background-color
To make the background color and border span the width of the page, set the margin to 0 and adjust the content-margin accordingly.
columns
The columns key can also be defined one level up (on header or footer), in which case the setting will be inherited.
Where the page sides fall in relation to the physical or printed page number is controlled using the pdf-folio-placement attribute (except when media=prepress, which implies physical).
The column rules between columns are only added if the columns key is specified.
padding
Do not use negative margins.
Instead, adjust the values of the margin and content-margin keys.
sectlevels
The maximum section level considered when assigning the implicit section-title attribute (and related) available to the running content.
<side>
The <side> in the <side>-columns, <side>-margin, <side>-content-margin, <side>-padding, and <side>-<position>-content keys is specified as recto (right-hand, odd-numbered pages) or verso (left-hand, even-numbered pages).
<position>
The <position> in the <side>-<position>-content key is specified as left, center or right.
Although not listed in the tables above, you can control the font settings (font-family, font-size, font-color, font-style, text-transform) for each column position per page side (e.g., header-<side>-<position>-font-color).
For example, you can set the font color used for the right-hand column on recto pages as follows:
header:
recto:
right:
font-color: #6CC644
content: content with font color
running-content
The key in the running-content category controls on what page the running content starts.
| Key | Value Type | Example |
|---|---|---|
start-at |
Start page | Integer |
|
See Start page for more information about the start-at key, its values, and their requirements.