Hi,

There have been some requeste / demands / cries for more control over penalties lately. Since i needed something myself, i've implemented a mechanism for controling this. For the moment only at the outer level, but i'll add more hooks later.

I have uploaded a beta that implements setups (well, this was already there, occasionallly even broken, but let's consider it public now).

% output=pdftex interface=en

\startsetups [something]

  \widowpenalty \maxdimen
  \clubpenalty  \maxdimen
  \brokenpenalty\maxdimen
  \parfillskip  \rapfillskip

\stopsetups

\startsetups [something]

\setups[reset]

   \setpenalties\widowpenalties2\maxdimen
   \setpenalties\clubpenalties 2\maxdimen
                \brokenpenalty  \maxdimen

\stopsetups

\starttext

\setuplayout[lines=7,grid=yes,setups=something] \showgrid

\nohyphens \dorecurse{2}{\input ward \endgraf} \page

\stoptext

The source-lovers may taker a look in cors-spa.tex and search for \startsetups; there they will see the two defaults, as well as that they may notice that the setups may depend on the grid being active. I'm not yet sure if i keep it that way.

Now, the next thing is to decide how to deal with all those penalties; i can imagine that we collect interesting collections of penalties and so.

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to