book-title<\/code><\/li>\n \tbook-subtitle<\/code><\/li>\n \tbook-author<\/code><\/li>\n \tbook-publisher<\/code><\/li>\n \tbook-publisher-city<\/code><\/li>\n \tpart-number<\/code><\/li>\n \tpart-title<\/code><\/li>\n \tchapter-number<\/code><\/li>\n \tsection-title<\/code> (note this is: frontmatter\/chapter\/backmatter title OR short-chapter-title if such a thing exists)<\/li>\n \tchapter-author<\/code><\/li>\n \tchapter-subtitle<\/code><\/li>\n<\/ul>\nYou can add arbitrary strings using the string-set<\/a> CSS function. But, if you use the above strings with Pressbooks, everything should be OK.\n\nYou might want to edit how numbers appear as well. To do this you should use:\ncounter(page)<\/code>\n\nThe CSS where they define running heads & feet should look something like this:\n@page chapter:left {\n @top {\n content: string(book-title);<\/strong>\n counter-increment: part;\n text-align: center;\n font-weight:normal;\n font-style: normal;\n font-size: 0.8em;\n }\n @bottom {\n content: counter(page);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n }\n}\n\n@page chapter:right {\n @top {\n content: string(section-title);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n font-size: 0.8em;\n }\n @bottom {\n content: counter(page);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n }\n}<\/code><\/pre>\nNote that different kinds of pages can be styled differently, so you might have:\n@page frontmatter:right {\n @top {\n content: \"\";\n }\n @bottom {\n content: counter(page, lower-roman);<\/strong>\n text-align: center;\n font-weight: normal;\n font-style: italic;\n font-size: 0.7em;\n }\n}<\/code><\/pre>\n... which will style front-matter differently than chapters.\n\nThe areas on a page that can be styled in this way are:\nHeaders<\/h3>\n@top-left-corner\n@top-left\n@top or @top-center\n@top-right\n@top-right-corner\nFooters<\/h3>\n@bottom-left-corner\n@bottom-left\n@bottom or @bottom-center\n@bottom-right\n@bottom-right-corner\n\nFor more info, visit the PrinceXML User Guide: Page Headers and Footers.<\/a>\nNOTE: We have recently introduced a new method for setting headers and footers in select themes. For more, see our guide chapter<\/a> on the changes.<\/div>","rendered":"Running heads in the PDF are set using the content: string(); function in CSS. The available content strings are:<\/p>\n
\nbook-title<\/code><\/li>\nbook-subtitle<\/code><\/li>\nbook-author<\/code><\/li>\nbook-publisher<\/code><\/li>\nbook-publisher-city<\/code><\/li>\npart-number<\/code><\/li>\npart-title<\/code><\/li>\nchapter-number<\/code><\/li>\nsection-title<\/code> (note this is: frontmatter\/chapter\/backmatter title OR short-chapter-title if such a thing exists)<\/li>\nchapter-author<\/code><\/li>\nchapter-subtitle<\/code><\/li>\n<\/ul>\nYou can add arbitrary strings using the string-set<\/a> CSS function. But, if you use the above strings with Pressbooks, everything should be OK.<\/p>\nYou might want to edit how numbers appear as well. To do this you should use:
\ncounter(page)<\/code><\/p>\nThe CSS where they define running heads & feet should look something like this:<\/p>\n
@page chapter:left {\n @top {\n content: string(book-title);<\/strong>\n counter-increment: part;\n text-align: center;\n font-weight:normal;\n font-style: normal;\n font-size: 0.8em;\n }\n @bottom {\n content: counter(page);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n }\n}\n\n@page chapter:right {\n @top {\n content: string(section-title);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n font-size: 0.8em;\n }\n @bottom {\n content: counter(page);<\/strong>\n text-align: center;\n font-weight:normal;\n font-style: normal;\n }\n}<\/code><\/pre>\nNote that different kinds of pages can be styled differently, so you might have:<\/p>\n
@page frontmatter:right {\n @top {\n content: \"\";\n }\n @bottom {\n content: counter(page, lower-roman);<\/strong>\n text-align: center;\n font-weight: normal;\n font-style: italic;\n font-size: 0.7em;\n }\n}<\/code><\/pre>\n… which will style front-matter differently than chapters.<\/p>\n
The areas on a page that can be styled in this way are:<\/p>\n
Headers<\/h3>\n
@top-left-corner
\n@top-left
\n@top or @top-center
\n@top-right
\n@top-right-corner<\/p>\n
Footers<\/h3>\n
@bottom-left-corner
\n@bottom-left
\n@bottom or @bottom-center
\n@bottom-right
\n@bottom-right-corner<\/p>\n
For more info, visit the PrinceXML User Guide: Page Headers and Footers.<\/a><\/p>\n