You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding invisible data (metadata()) after setting page.paper inside content (sub-document) creates an empty page #4407
The first block creates one page with text and an empty page. The second doesn't add an unnecessary page at the end.
I am creating a bundle document that includes several other documents. This way I can have all reference links working and have an outline of all sub-document (with working links). But including a full document means including set/show rules, which creates a styled() content block/wrapper for each sub-document.
It would be normal in some cases if I replace seconds metadata() call with visible content (text). But still, maybe you want the text from outer (bundle document) be inserted into the same last sub-document's page (where there is still a lot of empty space) and not into a whole new page. This aspect can be potentially a new feature, but I don't know how exactly this can be controlled (maybe a new page.append-parbreak-if-inside-content).
I would like that at least an invisible data such as metadata() (or hide()?) won't create a new empty page as this is totally not a desirable behavior. But I have a feeling that this is impossible with the current (v0.11.0) design (maybe?). Or maybe a new check can be added that will "diff" the previous (bundle/global) set page() and the current (sub-document/nested) set page(). If they are identical then the last one will be removed and this way no new empty page at the end will appear. IMO, this is an easier route. But what if page.footer don't much?
To fix this, I can remove the sub-document's set page() by using a condition, but that condition would require a context so that I can query() the start/end sub-document labels/markers to see if the current document is inside a bundle document or not. At which point it will become #2326.
Similar but still different problem exists with set document (instead of set page) which is inside a context (to also check for is-sub-document()): #4065.
Activity
laurmaedje commentedon Jun 17, 2024
While it's a slightly different effect user-facing, this is internally the exact same problem as #2326, so I'll close as a duplicate.