Re: [NTG-context] [beta] grid head

2011-07-14 Thread Philipp Gesang
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):

·

\setuppapersize[A5][A5]
\setuplayout[grid=verystrict]

\setupheadertexts[{Blindtext}][{\tfb\bf \pagenumber}]

\setuphead[chapter][
  style=\WORD,
  grid=yes,
]
\starttext

\chapter
 {This is supposed to mimick a rather long chapter title as is
  common in German language environments; shorter titles might not
  look as natural as longer ones}

\dorecurse{5}{\input dawkins\par}

\stoptext \endinput

·

Gridless it works ok. I’d just like to know whether this is to be
taken as a bug or as a feature. Thanks a lot,

Philipp





On 2011-07-13 22:50:42, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta:
 
 - Project structure related files are now dealt with in lua: it's
 mostly compatible but somewhat more strict (proper push and pop). In
 the log file the used structure is summarized.
 
 - All writing from lua to tex is now under control of the cld
 infrastructure. This means that logging is more complete. The speed
 penalty is neglectable and in some places faster.
 
 - There are a couple of fixes related to marks.
 
 - There are a couple of fixes (thanks to Wolfgang, who checks all
 commands as part of the user interface (setups) documentation).
 
 - In \asciimode, %% now can be used as traditional tex comment
 starter. Also, modules and environments are loaded under the normal
 catcode regime.
 
 - Typing gets frontstripped with the number of spaces in front of
 \stoptyping so that one can have nicely formatted input like:
 
 \startitemize
   \startitem test
 
   \starttyping
   test
   \stoptyping
 
   \stopitem
 \stopitemize
 
 - Entities in xml mode have a slightly different roundtrip treatment
 now and hopefully Thomas S as well as Hans vd M files still work ok.
 
 - Unicode math variants (supported by xits) are supported:
 
 \mathematics {
   \utfchar{2229} =
   \utfchar{2229}\utfchar{FE00} =
   \vsone{\utfchar{2229}}
 }
 
 - Defining commands at the lua end now also handles arg only cases
 and has better tracing.
 
 - Some other other things, like \startlayout[page] ... \stoplayout
 and whatever I forgot.
 
 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
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp2r74FN1BGv.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] [beta] grid head

2011-07-14 Thread Hans Hagen

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
___


Re: [NTG-context] [beta] grid head

2011-07-14 Thread Christian
 \definegridsnapping[MyOne]  [global,strut] \definegridsnapping[MyTwo]
 [local,strut] \definegridsnapping[MyThree][global,strut,top:3]
 \definegridsnapping[MyThree][local,strut,top:3]

Should'nt the last one be MyFour?

___
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
___


Re: [NTG-context] [beta] grid head

2011-07-14 Thread Philipp Gesang
On 2011-07-14 11:29:29, Hans Hagen wrote:
 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

Ok, thanks for the info. I’ll update my layouts then. (Btw is
this new functionality described in „Layouts in Context“? I
didn’t yet receive my copy and when it arrives, unfortunately, I
won’t be able to look into it for another month :(. Just want to
know whether I’ll miss something that important during my time
away.)

Best regards, Philipp



 
 \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
 ___


pgpGHdPUMbJET.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] [beta] grid head

2011-07-14 Thread Hans Hagen

On 14-7-2011 4:26, Philipp Gesang wrote:

On 2011-07-1411:29:29, Hans Hagen wrote:

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


Ok, thanks for the info. I’ll update my layouts then. (Btw is
this new functionality described in „Layouts in Context“? I
didn’t yet receive my copy and when it arrives, unfortunately, I
won’t be able to look into it for another month :(. Just want to
know whether I’ll miss something that important during my time
away.)


yes (and for sure there will me more as the mechanism evolves)

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
___


Re: [NTG-context] [beta] grid head

2011-07-14 Thread Philipp Gesang
On 2011-07-14 16:37:55, Hans Hagen wrote:
 On 14-7-2011 4:26, Philipp Gesang wrote:
 On 2011-07-1411:29:29, Hans Hagen wrote:
 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
 
 Ok, thanks for the info. I’ll update my layouts then. (Btw is
 this new functionality described in „Layouts in Context“? I
 didn’t yet receive my copy and when it arrives, unfortunately, I
 won’t be able to look into it for another month :(. Just want to
 know whether I’ll miss something that important during my time
 away.)
 
 yes (and for sure there will me more as the mechanism evolves)

Hurray; now I’m already eager to get back before I leave …

Philipp


 
 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
 ___


pgp5gLxaloUIK.pgp
Description: PGP signature
___
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
___