Named pages for Appendix and Glossary

MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

Named pages for Appendix and Glossary

Post by MyMoon » Tue Mar 19, 2019 12:22 pm

Hi!
Please let me know, is it possible to use named pages for Appendix and Glossary?
I’ve made the following sequence in my ditamap:
<appendices>
<appendix>
<topicref href="concept/c_nn_system_messages.dita"/>
</appendix>
</appendices>
<backmatter>
<booklists>
<glossarylist href="concept/g_nn_glossgroup.dita"/>
<indexlist/>
</booklists>
and I want all of them to start with odd page, have the blank page before (if previous has ended on odd), and have the empty header on first page.
I tried to use @page matter-page, but it affects Appendix only.
Index has its own named page, so I am able to clean header and start with odd page, but previous page (the last from Glossary) is odd now.
Thanks,
Dmitry

Dan
Posts: 416
Joined: Mon Feb 03, 2003 10:56 am

Re: Named pages for Appendix and Glossary

Post by Dan » Tue Mar 19, 2019 4:19 pm

Is it the PDF CSS based on HTML transformation?

Regards,
Dan

MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

Re: Named pages for Appendix and Glossary

Post by MyMoon » Tue Mar 19, 2019 5:12 pm

I use oXygen PDF Chemistry CSS processor.

But situation has changed.
I removed <appendices></appendices> around <appendix href="concept/c_nn_system_messages.dita"/> and Glossary behaves good now. But Appendix looks like just one more chapter - it got the number next to the previous one. For both title and TOC.

<chapter href="concept/c_nn_emergency.dita"/> (Chapter No.5)
<chapter href="concept/c_nn_learning_advice.dita"/> (Chapter No.6)
<appendix href="concept/c_nn_system_messages.dita"/> ( No.7)

Is it correct?
Sincerely,
Dmitry

Dan
Posts: 416
Joined: Mon Feb 03, 2003 10:56 am

Re: Named pages for Appendix and Glossary

Post by Dan » Wed Mar 20, 2019 4:22 pm

Make sure you set a navtitle on your appendix in the DITA map:

Code: Select all


	<appendix navtitle="The appendix title that shows in the TOC and content.">
<topicref href="first.dita"/>
<topicref href="second.dita"/>
<topicref href="third.dita"/>
</appendix>
Many regards,
Dan

MyMoon
Posts: 23
Joined: Thu Feb 28, 2019 2:19 pm

Re: Named pages for Appendix and Glossary

Post by MyMoon » Thu Mar 21, 2019 10:55 am

Done. This navtitle has a prefix, like a chapter (number 7).

Code: Select all

    <chapter href="concept/c_nn_emergency.dita"/>
<chapter href="concept/c_nn_learning_advice.dita"/>
<appendix navtitle="Appendix">
<topicref outputclass="no_page_break_before" href="concept/c_nn_system_messages.dita"/>
</appendix>
I tried to use code from ..\dita\css\print\p-numbering-shallow.css:

Code: Select all

*[class ~= "map/topicref"][is-part] ~ *[class ~= "map/topicref"]:not([is-part]) > *[class ~= "map/topicmeta"] > *[class ~= "topic/navtitle"]:before{
content: none !important;
counter-increment:none;
}
Doesn't help.

Regards,
Dmitry

Post Reply