Very good! You've hit an obscure situation that we are aware of, but really
cannot fix.
First - using ids that are numbers is a bad practice - let PreTeXt number for
you. And once you rearrange your work (it happens!) all those numbers will be
mixed up.
Second - you can use @label which will influence page names, and it does not
have to match your @xml:id, so you can keep them if you really insist.
Explanation - when you do not provide an identifier, we make one for you. We
use the most recent identifier you did provide and start using the location of
children at each level above. So your "ch-2-2" matched our automatic "ch-2"
plus a "-2". I think that is it (or similar). So your sequential/hierarchical
numbering is getting caught up with our attempts to bail you out.
Best practice: put a @label on each division and do not use numbers. That will
bail you out here.
Now, secondarily. A division #introduction now gets its own page in HTML
output, not semi-hidden on a "summary" page. This was announced on July 8 on
pretext-announce with a subject mentioning "division companions".
Rob
On 7/30/26 10:26, 'OHappyDay' via PreTeXt support wrote:
> Dear all,
>
> in a new book project I experienced a weird situation which I could not track
> down to the root immediately.
>
> Here is what I did:
>
> * Created 2 chapters with subchapters:
> o xml:id="ch-1"
> o xml:id="ch-2"
> o xml:id="ch-2-1"
> o xml:id="ch-2-2"
> * ch-2 also contained an introduction without an xml:id
> * After building to html the navigation behaved weird: deadlocked between
> ch-2-1 and ch-2-2
>
> After some thoughts I found the culprit: the introduction was placed in it's own
> page named ch-2-2.html. But chapter 2-2 was also named ch-2-2.html which
> explains the above behaviour.
>
> After applying an xml:id="ch-2-intro" to the introduction the deadlock was
> resolved because the introduction got now a new filename ch-2-intro.html.
>
> *Other question*: What can I do to have the introduction on the chapter page
> instead of having its own page? In an earlier project from some years ago this
> is what I achieved (but I don't know how). Or is this not possible anymore?
>
> Thanks
> Klaus
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
pretext-suppo...@googlegroups.com <mailto:
pretext-
>
support+u...@googlegroups.com>.
> To view this discussion visit
https://groups.google.com/d/msgid/pretext-
> support/2b5721ef-bfd7-4c45-93ec-af945934e99cn%
40googlegroups.com <https://
>
groups.google.com/d/msgid/pretext-support/2b5721ef-bfd7-4c45-93ec-
> af945934e99cn%
40googlegroups.com?utm_medium=email&utm_source=footer>.