On Thu, 24 Apr 2025, 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. > > For plain TeX, I have been using a macro I wrote called \need, so that > a usage like > \need 2cm > would end the current page before omitting any more material, if there is > less than 2cm left on the current page. I then used this in chapter and > section macros (and anywhere else I felt like). > > I have played around a little bit with converting that macro for ConTeXt, > but I'm not as confident that it Does The Right Thing in ConTeXt as for > plain TeX. > > 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[n] will check if there is space for at least n "lines"; if not it will issue a pagebreak. So, you can use it as \testpage[4] to test for 4 lines, etc. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________