From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Philipp Gesang <gesang@stud.uni-heidelberg.de>
Subject: Re: [beta] grid & head
Date: Thu, 14 Jul 2011 11:29:29 +0200 [thread overview]
Message-ID: <4E1EB6F9.3050706@wxs.nl> (raw)
In-Reply-To: <20110714084903.GA17559@aides>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-07-14 9:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 20:50 beta Hans Hagen
2011-07-14 7:19 ` beta Hans van der Meer
2011-07-14 8:13 ` beta Hans Hagen
2011-07-14 8:49 ` [beta] grid & head Philipp Gesang
2011-07-14 9:29 ` Hans Hagen [this message]
2011-07-14 12:18 ` Christian
2011-07-14 14:26 ` Philipp Gesang
2011-07-14 14:37 ` Hans Hagen
2011-07-14 14:42 ` Philipp Gesang
2011-07-14 14:47 ` beta Thomas A. Schmitz
2011-07-14 15:24 ` beta Hans Hagen
2011-07-14 16:07 ` beta Andreas Harder
2011-07-15 9:55 ` beta Hans Hagen
[not found] ` <4902C69F-949F-490B-95A4-07FBBF5F91D0@uni-koblenz.de>
[not found] ` <4E2025A4.7020006@wxs.nl>
2011-07-15 11:43 ` beta Andreas Harder
2011-07-15 12:28 ` beta Wolfgang Schuster
2011-07-15 12:44 ` beta Andreas Harder
2011-07-14 15:28 ` beta Aditya Mahajan
2011-07-18 20:31 ` beta Aditya Mahajan
2011-07-19 8:56 ` beta Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E1EB6F9.3050706@wxs.nl \
--to=pragma@wxs.nl \
--cc=gesang@stud.uni-heidelberg.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).