Handouts do not reset environment counters in web

13 views
Skip to first unread message

Federico Galetto

unread,
Jul 17, 2026, 1:32:55 PM (12 days ago) Jul 17
to PreTeXt support
Hello!

I noticed the following behavior. Say I have a chapter with two handouts, each containing say 10 numbered environments (definition, theorem, example, note, etc.). In print, the environments are numbered 1.1.1 to 1.1.10 for the first handout and 1.2.1 to 1.2.10 for the second handout. In web, the environments are numbered 1.1.1 to 1.1.10 for the first handout and 1.2.11 to 1.2.20 for the second handout. In other words, the handout tag does not reset the third component of the numbering.

If I use sections instead of handouts, then the third component is automatically reset with each new section, which is what I expect. However, I cannot use sections and I have to use handouts because I need to include blank space with workspace in my printouts.

Thanks

Rob Beezer

unread,
Jul 17, 2026, 2:02:08 PM (12 days ago) Jul 17
to pretext...@googlegroups.com
Dear Frederico,

Thanks for the report. Before I dive in, I'd like to confirm one thing.
Numbering behavior is influenced by publisher files. Are you using different
publisher files and if so, are they specifying numbering in the same way?

Sounds like maybe your symptoms are more severe, but need to check that part of
your setup first.

Rob
> --
> 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/50f9c147-c15c-46e9-9ed2-eff86fc79913n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/50f9c147-c15c-46e9-9ed2-
> eff86fc79913n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Federico Galetto

unread,
Jul 17, 2026, 3:27:15 PM (12 days ago) Jul 17
to PreTeXt support
Dear Rob,

Thank you for the quick response!

I started with the standard publisher file of a new pretext project and modified the following:
- tableofcontents level="2" in the <common> tag
- visibility of exercise components in the <common> tag
- page geometry in the <latex> tag
- which elements are knowled in the <html> tag
With the exception of the first item, nothing strikes me as being related to the numbering. If the first item is related to this issue in some way, then the print build with latex is still handling the numbering correctly.

I have a separate publication file that handles a different print version where several solutions/proofs are replaced by blank space. The numbering appears correctly in this one too.

I have made no changes within the <numbering> tag in either publication file.

I'm happy to provide more details as needed.

Rob Beezer

unread,
Jul 17, 2026, 10:19:40 PM (12 days ago) Jul 17
to pretext...@googlegroups.com
Thanks again, Federico! That was a good catch and a careful report. It was due
to a small, but consequential omission.

I think that is the first real bug to pop up from the work of my new assistant
(Claude Code). But it also diagnosed it quite quickly with the detailed report.

Fix will roll out in the usual ways.

For full details, see: https://github.com/PreTeXtBook/pretext/pull/3050

Rob

Rob Beezer

unread,
Jul 17, 2026, 10:19:56 PM (12 days ago) Jul 17
to pretext...@googlegroups.com
Thanks, Federico. I'll have a look. Small chance it will be a few days before
I can report back. -Rob
> <https://groups.google.com/d/msgid/pretext->
> > support/50f9c147-c15c-46e9-9ed2-eff86fc79913n%40googlegroups.com
> <http://40googlegroups.com> <https://
> > groups.google.com/d/msgid/pretext-support/50f9c147-c15c-46e9-9ed2-
> <http://groups.google.com/d/msgid/pretext-support/50f9c147-c15c-46e9-9ed2->
> > eff86fc79913n%40googlegroups.com?utm_medium=email&utm_source=footer
> <http://40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> 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/628afbb6-19de-4976-9bec-5c18cf345137n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-
> support/628afbb6-19de-4976-9bec-5c18cf345137n%40googlegroups.com?
> utm_medium=email&utm_source=footer>.

Federico Galetto

unread,
Jul 18, 2026, 2:30:18 PM (11 days ago) Jul 18
to PreTeXt support
No worries! Thank you, Rob, for the quick response!
Reply all
Reply to author
Forward
0 new messages