From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: How to force section title to be on same page as some of the content?
Date: Sat, 2 Nov 2024 23:58:42 +0100 [thread overview]
Message-ID: <a2911f40-2720-4582-8d39-56685cedb7be@fiee.net> (raw)
In-Reply-To: <571061543.5120902.1730578264690@mail.yahoo.com>
Am 02.11.24 um 21:11 schrieb Joel via ntg-context:
> How can I be so precise making sure the page break doesn't seperate the
> title from the start of the area where students write their answers?
To force keep something together, you can use a \framed or a \vbox.
With a bit less force, use \testpage[<number of lines>], as in
\setuphead[…][after={\testpage[5]}] to insert a page break if there are
less than ~4 lines left on the page (you always need a bigger number
than you think).
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-11-02 23:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <571061543.5120902.1730578264690.ref@mail.yahoo.com>
2024-11-02 20:11 ` [NTG-context] " Joel via ntg-context
2024-11-02 22:58 ` Henning Hraban Ramm [this message]
2024-11-03 6:53 ` [NTG-context] " Denis Maier via ntg-context
2024-11-03 9:02 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2911f40-2720-4582-8d39-56685cedb7be@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).