Page 1 of 1

Appendix

Posted: Fri Oct 21, 2022 7:10 pm
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

Re: Appendix

Posted: Sun Oct 23, 2022 1:26 pm
by chrispitude
Hi Léontine,

What transformation type are you using?

Re: Appendix

Posted: Mon Oct 24, 2022 3:54 pm
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

Re: Appendix

Posted: Mon Oct 24, 2022 4:16 pm
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

Re: Appendix

Posted: Thu Nov 03, 2022 5:16 pm
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

Re: Appendix

Posted: Fri Nov 04, 2022 11:23 am
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