Appendix

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Leontine
Posts: 2
Joined: Fri Oct 21, 2022 7:03 pm

Appendix

Post by Leontine »

In my manual I want the Appendices not as a chapter but as an appendix without chapter number and paragraph numbers. How can I create that? Can I do that in the current bookmap ?

Kind regards, Léontine
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: Appendix

Post by chrispitude »

Hi Léontine,

What transformation type are you using?
Leontine
Posts: 2
Joined: Fri Oct 21, 2022 7:03 pm

Re: Appendix

Post by Leontine »

Thank you for responding!
I am working with Oxygen XNL Author 24.0, build 2022012607.
I have in the DITA Maps manager opened a project with
Variables
Organisation variabels
Disclaimer
Preface
Chapters
Backmatter
Between Chapters and backmatter I want to add the Appendices without the Chapter layout. Buut I don't know how I can do that.
Kind regards, Léontine
Last edited by Leontine on Tue Oct 25, 2022 11:51 am, edited 1 time in total.
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Appendix

Post by julien_lacour »

Hello Léontine,

If you are using the following structure:

Code: Select all

<bookmap>
    ...
    <chapter href="topic.dita"/>
    <appendix href="first-appendix.dita"/>
    <appendix href="second-appendix.dita"/>
    ...
</bookmap>
The following rules will remove the content displayed before the appendices, just create a custom CSS file and copy the rules inside it:

Code: Select all

*[class ~= "bookmap/appendix"][is-chapter]:not([is-part]) > *[class ~= "map/topicmeta"] > *[class ~= "topic/navtitle"]:before {
  content: none !important;
}
*[class ~= "topic/topic"][is-chapter][topicrefclass ~= "bookmap/appendix"]:not([is-part]) > *[class ~= "topic/title"]:before {
  content: none !important;
}
Then refer the CSS as args.css parameter or within a publishing template.

Regards,
Julien
leontine06
Posts: 1
Joined: Fri Oct 21, 2022 7:07 pm

Re: Appendix

Post by leontine06 »

Hi Julien,
Can you help me bit more?
I have now in the ditamap:

Code: Select all

<appendix href="Topics/DTI/Appendices.dita">
    <topicref href="Topics/DTI/Quick_guide_Equipment_Safety.dita"/>
</appendix>
In the stylesheet variables for the Appendix:

Code: Select all

    <!-- The string used to label an appendix within the table of contents. -->
    <variable id="Table of Contents Appendix">Appendix&#xA0;<param ref-name="number"/>:&#xA0;</variable>
    <!-- Text to use for appendix titles.-->
    <variable id="Appendix with number">Appendix</variable>
I still get the chapter number before. Isn't there a way to not have that?
8 Appendix....................................................................................................45
8.1 Quick guide equipment and preparations............................................................................ 46
8.2 Checklist default software preparation settings....................................................................47

Kind regard Leontine
julien_lacour
Posts: 496
Joined: Wed Oct 16, 2019 3:47 pm

Re: Appendix

Post by julien_lacour »

Hi Léontine,

Could you indicate which transformation scenario you are using?
Depending on if you are using DITA Map PDF - based on HTML5 & CSS or DITA Map PDF - based on XSL-FO, the solution will be different.

Regards,
Julien
Post Reply