Open jjrsylvestre opened 6 years ago
Thanks, Jeremy. I'll have a look shortly. There's some interaction with the default chunk level that was built before "worksheet" was a thing. And the schema should reflect the possibility that a division (including an "article") is all worksheets.
Thanks, Jeremy. That's a good catch. We need to find a better way to deal with a collection of worksheets like this.
This is actually intended behavior. A division is not considered a candidate for splitting into chunks unless it contains a part, chapter, section, subsection, or subsubsection. So no matter what the requested chunk level is here, the article
is not "chunkable" until you structure it with a `section'.
If I add worksheet
to the list of "chunkable indicators" then in some other cases there is material that will get dropped. So the fix is not that simple. And this has exposed a need to think a little more carefully about allowed structures in divisions, which is already necessary due to some numbering bugs.
In the meantime, you could put a section
at the very end, after all the worksheets. It will chunk as you wish, start with Worksheet 1 (not 2, as I would guess is the case now), and maybe not be so noticeable down at the bottom. Sorry I don't have a better answer right now.
Rob
Running an article that contains only a collection of \<worksheet>s through mathbook-html.xsl outputs a single html file, even if param chunk.level is explicitly set to 2.
Changing the first \<worksheet> in the collection to a \<section> (and leaving all others as \<worksheet>) reverts back to expected behaviour: all worksheets (and that initial section) get chunked into individual html files.