From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54559 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: grid snapping (mkiv) Date: Thu, 19 Nov 2009 23:29:41 +0100 Message-ID: <4B05C6D5.3000709@wxs.nl> References: <4B054A16.2030304@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258669808 20759 80.91.229.12 (19 Nov 2009 22:30:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 22:30:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 19 23:30:01 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBFVo-0004N3-7P for gctc-ntg-context-518@m.gmane.org; Thu, 19 Nov 2009 23:30:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75EC6C9B10; Thu, 19 Nov 2009 23:27:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id v-z2+AvpB84H; Thu, 19 Nov 2009 23:27:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96357C9A8A; Thu, 19 Nov 2009 23:27:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C08AC9A8A for ; Thu, 19 Nov 2009 23:27:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nBXyImkw2qAE for ; Thu, 19 Nov 2009 23:27:18 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id CDEC7C9A70 for ; Thu, 19 Nov 2009 23:27:17 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 5309-1713362 for ; Thu, 19 Nov 2009 23:29:00 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <4B054A16.2030304@gmx.net> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54559 Archived-At: Peter Rolf wrote: > Hi, > > is the 'grid={line,??pt}' functionality already implemented in mkiv? I > use it in a multicolumn environment and all I get is snapping to the > 'full' baseline. > > \setuphead[section] > [%style={\SectionHeaderFont}, > style={\switchtobodyfont[12.3pt]\ss\bf\setupinterlinespace}, > % grid={high}, % ok > grid={line,3pt}, % snaps to 'second' baseline > after=, > ] grid support is partially reimplemented and will differ in some aspects from mkii i have no time now to discuss it in detail (will probably explain a few things in a chapter of hybrid.pdf or the style manual) we have now grid definitions, with predefined: \definegridsnapping[normal] [maxheight,maxdepth,strut] \definegridsnapping[standard] [maxheight,maxdepth,strut] \definegridsnapping[yes] [maxheight,maxdepth,strut] \definegridsnapping[strict] [maxdepth:0.8,maxheight:0.8,strut] \definegridsnapping[tolerant] [maxdepth:1.2,maxheight:1.2,strut] \definegridsnapping[top] [minheight,maxdepth,strut] \definegridsnapping[bottom] [maxheight,mindepth,strut] \definegridsnapping[both] [minheight,mindepth,strut] \definegridsnapping[broad] [maxheight,maxdepth,strut,0.8] \definegridsnapping[fit] [maxheight,maxdepth,strut,1.2] \definegridsnapping[first] [first] \definegridsnapping[last] [last] \definegridsnapping[high] [minheight,maxdepth,none] \definegridsnapping[low] [maxheight,mindepth,none] \definegridsnapping[line] [line] \definegridsnapping[strut] [strut] \definegridsnapping[max] [maxdepth,maxheight,strut] \definegridsnapping[min] [mindepth,minheight,strut] so we have height/depth snapping, tolerance factors, strut or line based distribution, and some more; also there will be more strategies, like \setuplayout[grid=tolerant] \showgrid most structural elements will have a grid key (if it makes sense) \setuphead[chapter][grid=strut] \startchapter[title={Test: strut}] test \par test \par test \stopchapter \setuphead[chapter][grid={local,strut}] \startchapter[title={Test: local,strut}] test \par test \par test \stopchapter \setuphead[chapter][grid={strut,top:3}] \startchapter[title={Test: strut,top:3}] test \par test \par test \stopchapter multi columns are not touched yet (i will do that as soon as we've opened up a it more of tex in luatex) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ___________________________________________________________________________________