Page 1 of 1

Named pages for Appendix and Glossary

Posted: Tue Mar 19, 2019 12:22 pm
by MyMoon
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

Re: Named pages for Appendix and Glossary

Posted: Tue Mar 19, 2019 4:19 pm
by Dan
Is it the PDF CSS based on HTML transformation?

Regards,
Dan

Re: Named pages for Appendix and Glossary

Posted: Tue Mar 19, 2019 5:12 pm
by MyMoon
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

Re: Named pages for Appendix and Glossary

Posted: Wed Mar 20, 2019 4:22 pm
by Dan
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

Re: Named pages for Appendix and Glossary

Posted: Thu Mar 21, 2019 10:55 am
by MyMoon
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