From: <josephcanedo@gmail.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Question on headings and text around them
Date: Mon, 23 Nov 2015 22:16:29 +0000 [thread overview]
Message-ID: <a8711c113b2f4937960521e7369bd62c@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1090 bytes --]
Dear all,
In some text I am typesetting I noticed that the text following a section was always starting on same page (which is all fine), but in some cases the text preceding the section heading was also finishing on same page, ie the last paragraph before the section heading was broken in previous page, say N lines on previous page and 2 in the page in which the section starts (I have \widowpenalty10000 that’s probably why there are 2 lines in new page), even if there is space in the previous page for the 2 lines (there are even 3 blank lines at the end of the page).
Apparently I could solve this “problem”, adding some 0 penalty:
\definevspacing[BeforeHeading][penalty:0]
\def\BeforeBook{\blank[BeforeHeading, line]} % was \def\BeforeBook{\blank[line]} which seems to avoid breaking page between text before heading and heading itself
\setuphead[section][before=\BeforeBook]
My question is simply, is that a correct way to fix the problem, or is that just “luck” this fixes the issue ?
Thanks a lot,
Best regards
Joseph Canedo
[-- Attachment #1.2: Type: text/html, Size: 2327 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2015-11-23 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 22:16 josephcanedo [this message]
2015-11-24 12:52 ` Hans Hagen
2015-11-24 20:57 ` josephcanedo
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=a8711c113b2f4937960521e7369bd62c@gmail.com \
--to=josephcanedo@gmail.com \
--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).