Repeating chapter titles at the top of each page
Posted: Thu Feb 08, 2024 12:48 pm
Please have a look at the following (simplified) extract from my DITA bookmap:
(The keyrefs point to key definitions with filepaths, in a separate DITA map.)
Output is for PDF, with customisation via CSS.
I want the chapter titled "Using the product" to be split into 2 pages - topic1 on one page, with topic2 and topic3 on the next page.
But I would also like the title from the chapter (i.e. "Using the product") to appear at the top of the page that contains topic2 and topic3. Right now, it only appears at the top of the page containing topic1. (So I need it to be be sort of like having the header of the table repeated when the table entries extend into the following page.)
I would like this to be done as part of the main body text, instead of altering the header of the page which is already formatted to what I need.
Is there a way to achieve what I have in mind? I've done quite a lot of searching but can't find a suitable solution.
Thanks in advance for any advice.
Code: Select all
<chapter keyref="using_the_product">
<topicref keyref="topic1" outputclass="page-break-after"/>
<topicref keyref="topic2"/>
<topicref keyref="topic3"/>
</chapter>
Output is for PDF, with customisation via CSS.
I want the chapter titled "Using the product" to be split into 2 pages - topic1 on one page, with topic2 and topic3 on the next page.
But I would also like the title from the chapter (i.e. "Using the product") to appear at the top of the page that contains topic2 and topic3. Right now, it only appears at the top of the page containing topic1. (So I need it to be be sort of like having the header of the table repeated when the table entries extend into the following page.)
I would like this to be done as part of the main body text, instead of altering the header of the page which is already formatted to what I need.
Is there a way to achieve what I have in mind? I've done quite a lot of searching but can't find a suitable solution.
Thanks in advance for any advice.