Re: Chapter numbering issue when using <topicgroup>

Chris Brand
 

Hi Mica

 

<topicset> behaves same as <topicgroup> in PDF generation when it comes to wrong chapter numbers.

 

Greez,

Chris.

 

Von: main@dita-users.groups.io <main@dita-users.groups.io> Im Auftrag von Mica Semrick
Gesendet: Freitag, 19. Juni 2020 20:28
An: main@dita-users.groups.io; Chris Brand via groups.io <chrizzbee74@...>
Betreff: Re: [dita-users] Chapter numbering issue when using <topicgroup>

 

Hi,

You can try <topicset> instead.

-m

On June 19, 2020 8:12:48 AM PDT, "Chris Brand via groups.io" <chrizzbee74@...> wrote:

Hi
In my map structure, I started to use <topicgroup> with profiling. My chapters are all numbered based on a template derived from the DITA Generator code. This worked nice so far. I understood that <topicgroup> elements do not affect the map structure. In the PDF output this is indeed true, the <topicgroup> element doesn't show up and is not included in the TOC. But all children of the <topicgroup> are counted up one level, thus creating a false numbering.

Example:

1 Chapter
<topicgroup>
   1.1.1 Chapter
   1.1.2 Chapter
</topicgroup>
1.2 Chapter

I expect that the output is like this:

1 Chapter
<topicgroup>
   1.1 Chapter
   1.2 Chapter
</topicgroup>
1.3 Chapter

So the children of the <topicgroup> get the wrong chapter depth assigned.

Anyone knows a fix?

Thanks,
Chris.

Join main@dita-users.groups.io to automatically receive all group messages.