Hi Radu and thank you for your quick response.
Although not recommended I have been editing the Chemistry css-files directly. In p-page-titles-and-numbers.css I removed the text "Chapter" and some of the headers or footers to make room for new ones. However, the section you offered is there intact but still only the top level is numbered, not the topics. Is the topic title considered a 'part' here or is topic title somehow undefined?
Thanks,
Timo
The p-page-titles-and-numbers.css looks like this:
/*
* ================================================
*
* Page numbers and titles.
*
* ================================================
*/
@media print {
/* Reset the counters */
*[class ~= "map/map"] {
counter-reset: page 1 part 0 figcount 0 tablecount 0;
}
/*
Reset the page counter on the first topic that follows the TOC placeholder:
<ot-placeholder:toc xmlns:ot-placeholder="
http://suite-sol.com/namespaces/ot-placeholder" />
The page counter was used in the p-toc generating numbers for the TOC pages.
*/
*[class ~= "map/map"] > toc + *[class ~= "topic/topic"]{
counter-reset: page 1;
}
/* Titles */
/* Collect the title of the map. */
*[class ~= "map/map"][title] {
string-set: maptitle attr(title);
}
/* The bookmap title may migrate in the opentopic:map element*/
map > *[class ~= "topic/title"] {
string-set: maptitle content();
}
/* Collect the chapter titles. */
*[class ~= "topic/topic"][is-chapter]:not([is-part]) > *[class ~= "topic/title"] {white-space:pre;
string-set: chaptertitle " " counter(chapter) " - " content();
}
/* Collect the part titles. */
*[class ~= "topic/topic"][is-part] > *[class ~= "topic/title"] {
string-set: parttitle counter(part, upper-roman) " - " content(), chaptertitle ""; /* Avoid propagating a past chapter title on a new part */
}
/*
The counters are used in the static parts of the page, and before the title.
*/
*[class ~= "topic/topic"][is-chapter]{
counter-increment:chapter;
}
*[class ~= "topic/topic"][is-chapter] > *[class ~= "topic/title"]:before {
content: counter(chapter) ". ";
}
*[class ~= "topic/topic"][is-part]{
counter-increment:part;
counter-reset:chapter;
}
*[class ~= "topic/topic"][is-part] > *[class ~= "topic/title"]:before {
content: counter(part, upper-roman) ". ";
}
*[class ~= "map/map"] > front-matter,
*[class ~= "map/map"] > back-matter{
counter-increment:none;
counter-reset: chapter part ;
}
@page :left {
@top-left {
/**/}
@bottom-left {
/**/
}
@bottom-right {
/**/
}
}
@page :right{
@top-right {
/**/
}
@bottom-right {
/**/
}
@bottom-left {
/**/
}
}
}