One source of too-deep headings (headings whose proper depths should
be 7 or greater) is a "solutions" like the one here:
Solutions 4.2.7: Solutions for This Subsection
https://pretextbook.org/examples/sample-article/html/interesting-corollary.html#solutions-subsection
As a "solutions" within a subsection, the "solutions" itself is
already at depth 4.
Within that "solutions", you have the marker for each subsection (like
for 4.2.3) at depth 5. Then the solution to checkpoint 4.10 at depth
6. And then tasks at depth 7, and subtasks at depth 8.
I have been looking at this and looking at the heading tree that the
headingsMap Firefox add-on reveals. I have two separate proposals:
1. The marker for divisions within the "solutions" could be cosmetic
and omitted from the heading tree (meaning, replace its hN with a
span). Mainly, it's confusing to be navigating the heading tree and
reach this item that says "4.2.3 Advice" but it's not really
subsection "4.2.3 Advice". It's just the solutions to things that were
in that subsection. It seems like if all heading children of the
"solutions" were the actual things with solutions (the exerciss, the
projects, etc), that would be a good use of headings. And a nice side
effect would be cutting down depth from the heading tree.
2. Only print terminal tasks within the "solutions". So in that
solution to checkpoint 4.10, instead of showing task (c), subtasks (i)
and (ii), and task (d); only have items (c.i), (c.ii), and (d), all
at the same heading tree depth. This would flatten all tasks and
subtasks down to just one level of depth below the depth of the
containing exercise.
These are independent proposals, and implementing them may be tricky.
Putting implementation aside, how do we feel about each one?