Should lack of authored id on sections be a soft/hard error in Runestone build?

9 views
Skip to first unread message

Andrew Scholer

unread,
Oct 5, 2026, 9:10:03 PM (4 days ago) Oct 5
to prete...@googlegroups.com
Currently if an author does not include a label or xml:id on a chapter or section, the runestone manifest gets rendered with a constructed id for that division. 

Those constructed ids are of course brittle. Changing other divisions in the book could change them, which would then orphan questions, break reading assignments, etc...

It seems like failing to provide a stable authored id for these divisions should be a hard error. 

However, I'm pretty sure there are books out in the wild that don't have authored ids. So maybe a strongly worded warning/deprecation during manifest generation that spits out the currently used id and instructs the author to make it explicit?
 
The past of least damage for an author would seem to be taking the current constructed ids and explicitly applying them to the chapters/sections. mybook-1, mybook-2, are not ideal as ids, but if those are the current values being used, switching to my-book-intro, mybook-variables, ... would be much worse outside the context of making a new edition.

Andrew

Rob Beezer

unread,
Oct 6, 2026, 11:16:44 AM (4 days ago) Oct 6
to prete...@googlegroups.com
Authors have always been encourged to use meaningful @xml:id/@label on their
divisions. That is the first place they should go.

And, yes, we can warn about this, just like we do for various Runestone exercises.

Howver, no one has ever told me that #chapter and #section identifiers went into
the database. Is that so? I know we report the structure of the chapters and
sections ("subchapter") in the manifest, but I do not know where it goes.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CACm44N_e4aAbmHMKYd9-8_2ecoeG-W8xELPmQhYHgw4c%2BEv8rA%40mail.gmail.com <https://
> groups.google.com/d/msgid/pretext-dev/CACm44N_e4aAbmHMKYd9-8_2ecoeG-
> W8xELPmQhYHgw4c%2BEv8rA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Oct 8, 2026, 11:46:33 AM (2 days ago) Oct 8
to prete...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages