On 14-7-2011 10:49, Philipp Gesang wrote:
Hi Hans,

the new beta appears to modify the behaviour of long headings on
the grid. In the following example the chapter head moves up into
the page header which it did not prior to the update (cf. mkii’s
behaviour):

forget about mkii, we have a new and different mechanism

\setuplayout[grid=yes] \showgrid % tolerant] \showgrid

\setuppapersize[S6][S6]

\starttext

\setuphead[chapter][after=]

\definegridsnapping[MyOne]  [global,strut]
\definegridsnapping[MyTwo]  [local,strut]
\definegridsnapping[MyThree][global,strut,top:3]
\definegridsnapping[MyThree][local,strut,top:3]

\setuphead[chapter][grid=MyOne] \startchapter[title={Global, Strut}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyTwo] \startchapter[title={Local, Strut}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyThree] \startchapter[title={Global, Strut, 3 Top Lines}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyFour] \startchapter[title={Local, Strut, 3 Top Lines}] test \par test \par test \stopchapter

\setuphead[chapter][grid=MyOne] \startchapter[title={Global,\\Strut}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyTwo] \startchapter[title={Local,\\Strut}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyThree] \startchapter[title={Global, Strut,\\3 Top Lines}] test \par test \par test \stopchapter \setuphead[chapter][grid=MyFour] \startchapter[title={Local, Strut,\\3 Top Lines}] test \par test \par test \stopchapter

\stoptext

the question is, what are reasonable defaults (many more structural elements will have a grid key)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to