ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question on headings and text around them
@ 2015-11-23 22:16 josephcanedo
  2015-11-24 12:52 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: josephcanedo @ 2015-11-23 22:16 UTC (permalink / raw)
  To: ntg-context


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-24 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-23 22:16 Question on headings and text around them josephcanedo
2015-11-24 12:52 ` Hans Hagen
2015-11-24 20:57   ` josephcanedo

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).