
On Thu, Apr 24, 2025 at 18:26 (+0200), Wolfgang Schuster wrote:
Am 24.04.2025 um 18:04 schrieb Jim:
Aditya,
thanks for the fast reply.
On Thu, Apr 24, 2025 at 17:08 (+0200), Hans Hagen wrote:
On 4/24/2025 5:00 PM, Jim wrote:
This could be a bug report, but it is mostly a request for assistance.
In https://www.pragma-ade.com/general/manuals/mathincontext-screen.pdf I see "2.11 Big operators" is at the very bottom of a page (no "content" of section 2.11 is on that page). This is an example of what I don't want, and anyone who feels the same way would consider this a (very minor) bug report for the (otherwise most excellent) math manual.
<snip>
Q: is there a ConTeXt macro which does a \page if there is less space on the current page than specified by the argument to the macro?
\testpage[3] % lines or some dimension
It's typically something you only do when the document is final.
Hans,
thanks for the almost-as-fast-as-Aditya reply.
I am a bit puzzled by your "It's typically..." comment, for two reasons. (1) When the document is (almost) final, I could just get out the "\page" sledgehammer and whack away with that. (2) The "bad" page break for Section 2.11 only occurs (at present) in the "screen" version, but not in the "paper" version. To fix the screen version, on could (I suppose) do \ifthisisthescreenversion \page \fi ... command to start Section 2.11 ... but just putting \testpage[5] % or whatever number one likes ... command to start Section 2.11 ... takes care of both formats.
1. You can add \testpage to the argument of the before key.
2. You can use modes for settings which apply for screen (or print) only.
\startmode[screen] \setuphead[section][before={\testpage[4]\blank[...]}] \stopmode
Wolfgang, thanks very much for that information... I need to make more use of before (and after) in various places. Jim