Want chapter numbering to continue through bibliolist and glossary

toolie
Posts: 5
Joined: Thu Jan 29, 2015 2:40 am

Want chapter numbering to continue through bibliolist and glossary

Post by toolie » Tue Jul 07, 2020 2:22 am

I was trying to get page numbering to continue from chapters into the backmatter, and cannot figure out how to do that. I'm using the HTML/CSS/PDF transformation, and it's just simpler to have continuous numbering in this 32-page PDF.

This was my attempt, but clearly it's not working.

Code: Select all

@page bilio-page {
    @bottom-center {
        content: counter(page, decimal)
    }
}
*[class ~= "map/topicref"][topicrefclass ~= "bookmap/bibliolist"] {
	page: bilio-page;
}

@page glossary-page {
    @bottom-center {
        content: counter(page, decimal)
    }
}
*[class ~= "map/topicref"][topicrefclass ~= "bookmap/glossarylist"] {
	page: glossary-page;
}
Can you correct this so the page numbering for Chapters continues through the Backmatter?

Thanks!
Toolie Garner

julien_lacour
Posts: 99
Joined: Wed Oct 16, 2019 3:47 pm

Re: Want chapter numbering to continue through bibliolist and glossary

Post by julien_lacour » Tue Jul 07, 2020 1:13 pm

Hello,

Indeed there is a reset on the page counter at the beginning of the backmatter.
You can change this behavior by following this How To.

Regards,
Julien

toolie
Posts: 5
Joined: Thu Jan 29, 2015 2:40 am

Re: Want chapter numbering to continue through bibliolist and glossary

Post by toolie » Thu Jul 16, 2020 2:34 am

Thank you Julien for your prompt response. I am using a Bookmap rather than a DITAMap. I don't actually have an index; as you can see I start with a Bibliolist and then have a Glossary in my backmatter.

I checked the merged HTML and I don't have the tag index/groups at all. Here's what the first lines look like:

Code: Select all

<div class="- map/topicref bookmap/backmatter topicref backmatter">
                  <div class="- map/topicref bookmap/booklists topicref booklists">
                        <div href="#unique_8" type="topic" class="- map/topicref bookmap/bibliolist topicref bibliolist">
Can you advise how to get continuous numbering through those last to sections (bibliography and glossary)?

Thanks!
Toolie Garner

julien_lacour
Posts: 99
Joined: Wed Oct 16, 2019 3:47 pm

Re: Want chapter numbering to continue through bibliolist and glossary

Post by julien_lacour » Thu Jul 16, 2020 11:49 am

Hello,

I tried on my side with Oxygen Editor 22.1 and I did not reproduce the problem, the default transformation does not reset the page counter inside my PDF.
Please check inside your CSS customization there is no additional "counter-reset: page" on another element which also matches the bibliolist.

Regards,
Julien

toolie
Posts: 5
Joined: Thu Jan 29, 2015 2:40 am

Re: Want chapter numbering to continue through bibliolist and glossary

Post by toolie » Sun Jul 19, 2020 1:55 am

This piece of code is in my CSS file. I had found it elsewhere on the Internet, and that did force the numbering from the start of the PDF. But the number stops at the backmatter.

Code: Select all

/* Continuous numbering */
*[class ~= "map/map"] > *[class ~= "toc/toc"] + *[class ~= "topic/topic"],
*[class ~= "index/groups"] {
    counter-reset: none;
}
Remember, I'm using a bookmap. Again, I don't have any tags in my HTML output that correspond to "index/groups". Also, that code doesn't help the numbering continue into my backmatter. I can send you the entire CSS file for your inspection if you like.
Toolie Garner

julien_lacour
Posts: 99
Joined: Wed Oct 16, 2019 3:47 pm

Re: Want chapter numbering to continue through bibliolist and glossary

Post by julien_lacour » Mon Jul 20, 2020 4:02 pm

Hello,

Could you please send us the CSS customization and the bookmap (at least the ditamap file with the bibliolist and the glossarylist) at support@oxygenxml.com
Could you also indicate which version of Oxygen you are currently using?

Regards,
Julien

Post Reply