ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Keeping titles together with the following text when grid is on
@ 2013-12-02  7:16 "H. Özoguz"
  2013-12-02 20:02 ` Jan Tosovsky
       [not found] ` <007e01ceef99$71547c00$53fd7400$@tosovsky@email.cz>
  0 siblings, 2 replies; 9+ messages in thread
From: "H. Özoguz" @ 2013-12-02  7:16 UTC (permalink / raw)
  To: ntg-context

Hello,

this is not the same question as handling orphan and widows - because 
you surely do not want some titles with only 2-3 lines of body text 
after them.

I always use "\testpage[x]" to handle those issues, see your example 
with testpage:


\setuppapersize[B5]

\startsetups[grid][mypenalties]
     \setdefaultpenalties
     \setpenalties\widowpenalties{2}{10000}
     \setpenalties\clubpenalties {2}{10000}
\stopsetups

\setuphead[section]
     [before={\testpage[8]\blank}]

%comment the following line to see the difference
\setuplayout[grid=yes, setups=mypenalties]
\showgrid

\starttext
    \blank[force, 9.5cm]
    \input tufte
    \section{Tufte}
    \input tufte
\stoptext

Huseyin
___________________________________________________________________________________
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] 9+ messages in thread
* Keeping titles together with the following text when grid is on
@ 2013-11-30 15:22 Jan Tosovsky
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Tosovsky @ 2013-11-30 15:22 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Dear All,

when grid is on, orphan and widows have to be eliminated using additional
penalty settings. Whereas it works fine for body text, section titles are
still sometimes left at the bottom of the page.

It can be reproduced using this example:

\setuppapersize[B5]

\startsetups[grid][mypenalties]
    \setdefaultpenalties
    \setpenalties\widowpenalties{2}{10000}
    \setpenalties\clubpenalties {2}{10000}
\stopsetups

%comment the following line to see the difference
\setuplayout[grid=yes, setups=mypenalties] 
\showgrid 

\starttext
   \blank[force, 9.5cm]
   \input tufte
   \section{Tufte}
   \input tufte
\stoptext

Is there any extra option for handling this?

Thanks, Jan

___________________________________________________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2013-12-03 15:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-02  7:16 Keeping titles together with the following text when grid is on "H. Özoguz"
2013-12-02 20:02 ` Jan Tosovsky
     [not found] ` <007e01ceef99$71547c00$53fd7400$@tosovsky@email.cz>
2013-12-02 20:12   ` Thomas A. Schmitz
2013-12-02 20:40     ` Jan Tosovsky
     [not found]     ` <008201ceef9e$cc7c6a20$65753e60$@tosovsky@email.cz>
2013-12-02 22:00       ` Alan Braslau
2013-12-02 20:27   ` Aditya Mahajan
2013-12-03  8:52   ` Hans Hagen
2013-12-03 15:21     ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2013-11-30 15:22 Jan Tosovsky

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