[NEW] Improved printing of worksheets in HTML

18 views
Skip to first unread message

oscarlevin

unread,
Jul 10, 2025, 9:36:25 PMJul 10
to PreTeXt announcements
With the release of CLI v2.23.0, there is now improved support for printing worksheets directly from a web version of your project.  From a page containing the worksheet, you can click on the printer icon to the right of a title to get a Print Preview that clearly shows how pages will break (in a good way).  You can choose between A4 or Letter paper sizes, and if you like, highlight the workspace you authored to see how much extra space was added (or if workspace was shrunk) to fit on a page.  

Using a `<page>` element around exercises is now optional; the print preview will try to distribute extra whitespace to exercises that have workspace as evenly as possible (thanks to Alex Jordan for his help with this non-trivial algorithm).  Note that this might result in differences between PDF and HTML page breaks, but you can always use <page> elements or modify your workspace attributes for more control.

Documentation is coming soon, and I plan on adding the ability to set margins in the publication file, add custom headers for things like course names, and other requested features in the next couple of weeks.  So feel free to post on -support or -dev if you have ideas to improve these further.

Rob Beezer

unread,
Jul 11, 2025, 9:15:31 AMJul 11
to pretext-...@googlegroups.com
> there is now improved support for printing worksheets directly from a web
version of your project

And abusing my posting privileges, I want to add that Oscar has done a very nice
job with this. Have a look:

https://pretextbook.org/examples/sample-article/html/section-worksheets.html

Rob

Reply all
Reply to author
Forward
0 new messages