Explicit pagebreaks in printed worksheets

8 views
Skip to first unread message

Spencer Bagley

unread,
Oct 30, 2025, 5:02:04 PM (2 days ago) Oct 30
to PreTeXt development
Per this issue on AC, I am here to talk about this worksheet which behaves particuarly poorly in the auto-generated print version.
Mitch mentioned in that issue that Alex is working on this kind of thing. 
I wonder if there's any support philosophically for, like, a <pagebreak /> elt that only gets processed by worksheets.

Further philosophical musings: I think there are some more idiomatically-PreTeXt ways that this exercise *could* be structured -- in particular, as like 8 tasks with sidebyside original functions and blank axes. 
At some point, though, are we dictating format to the author, rather than requiring the author to be agnostic about format? In particular I would be resistant to setting this activity up with sidebyside bc I want people to make the vertical connection between the x-values on the two graphs.

Thanks all!
Spencer


Oscar Levin

unread,
Oct 30, 2025, 5:41:58 PM (2 days ago) Oct 30
to PreTeXt development
This was discussed at length over the summer (see https://groups.google.com/g/pretext-dev/c/9pkow7Tzcvw/m/BsC6FNoeAwAJ, but also searching -dev for "pagebreaks" highlights other related discussions).  TL;DR: there was strong opposition to an empty <page-break/> element.  Se settled on keeping <page> divisions for printout-like divisions (handouts and worksheets) but making them optional and trying to adjust workspace to distribute extra whitespace equitably to multiple pages (which allows exercises/projects to be broken between tasks).  

But the issue you highlight is on the other side: what to do when there is too much content for a page?  I don't think there is a great answer here.  In fact, I spent a lot of time trying to resize the images in that worksheet and removing the instructions, so that the images would fit onto two pages.  Output: https://math.oscarlevin.com/math130-fall25/activity-01-graphing-derivatives.html (the source has two <page> with two images each).  

Perhaps we should turn off the "do not break inside" css for project-like and let the browser handle the pages when none are specified.  But in this case, you would get three pages.  
Reply all
Reply to author
Forward
0 new messages