I'm working on some improvements to worksheets and handouts (btw, now's a good time to send requests if you have them). One oft-requested feature is to let solutions replace the workspace that was present when the solutions are toggled off.
In the current web version of this, that already happens. Sort of. Here is the current state of things:
- If you use authored pages, then toggling any of the solution-like elements will reflow each page, distributing any remaining workspace as equitably as possible. So if exercise 1 had 4 inches of workspace and a exercise 2 had 1 inch of workspace, and both had a solution that took up 2 inches, there would still be 4 times as much space after the solution to exercise 1 as there is after the solution to exercise 2.
- If you don't use authored pages, then:
- The first thing the javascript does when you click the print preview is attempt to create pages that distribute extra workspace equitably.
- This is done using the actual heights of elements shown on the page: if "hide solutions" is unchecked, then the solutions are treated like text and the page-breaking algorithm tries to add the requested amount of workspace after them.
- Once pages are established, toggling the "hide solutions" will keep those pages as is, but increase/decrease vertical white space as needed.
So in case 2, if you are someone who wants to solutions to use up the workspace, you need to hide solutions, reload to get your desired page breaks, and then unhide solutions. If you have authored the worksheet with the intent of always showing solutions, then you probably want to reload the page after you have unhid the solutions.
The question is whether this is good enough. We could add a button to "reflow pages" (which really would just reload the page) to help users discover this "feature". We could also always hide solutions when computing page breaks (in case 2) and then show them again if the "hide solutions" box is unchecked. That is probably the most sensible option, but it does make it harder for an author to see why their long solutions are running off the end of the page. In fact, if there is a really long solution, there would be no way to break pages differently so it doesn't get cut off.
What say you all?