Formatting a glossary like an index...?

Post here questions and problems related to editing and publishing DITA content.
davdup
Posts: 22
Joined: Wed May 29, 2019 5:43 pm

Formatting a glossary like an index...?

Post 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
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

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

Post 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
Post Reply