Page 1 of 1

Formatting a glossary like an index...?

Posted: Wed Dec 13, 2023 6:05 pm
by davdup
Another question relative to the glossary publication both in PDF and WebHelp:
Is there an "easy" (or any kind of un-easy) way to get the same formatting as for the automatic index, for a glossary? Using the top alphabetic bar, and alphabetic sub-sections...?

David

Re: Formatting a glossary like an index...?

Posted: Thu Dec 14, 2023 12:10 pm
by julien_lacour
Hi David,

By default glossentries are displayed following the ditamap apparition order.
You can group them in a <glossgroup> element (as a separate file), this element can contains multiple <glossentry>, this could be easier to sort.
If you are using a bookmap, you can also wrap them in a <glossarylist> element.

For the DITA Map PDF - based on HTML5 & CSS scenario, you can then use the sort.and.group.glossentries parameter to obtain what you desire.
Unfortunately there's no "easy way" to do something similar in the DITA Map WebHelp Responsive scenario.

Regards,
Julien