From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43211 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: stay on grid in double column Date: Thu, 14 Aug 2008 22:30:18 +0200 Message-ID: <48A495DA.3020200@wxs.nl> References: <48A3014D.9050508@jhnet.nl> <48A41115.7040709@jhnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218747613 7034 80.91.229.12 (14 Aug 2008 21:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 21:00:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 14 23:01:05 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KTjwF-0008BM-DJ for gctc-ntg-context-518@m.gmane.org; Thu, 14 Aug 2008 23:00:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E5D3D1FE0B; Thu, 14 Aug 2008 22:59:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19236-02-3; Thu, 14 Aug 2008 22:58:57 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 849D01FEC1; Thu, 14 Aug 2008 22:31:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A7FB61FEAD for ; Thu, 14 Aug 2008 22:31:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16793-01-11 for ; Thu, 14 Aug 2008 22:30:19 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id F06991FEB6 for ; Thu, 14 Aug 2008 22:30:18 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 12206-1840426 for ; Thu, 14 Aug 2008 22:30:18 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <48A41115.7040709@jhnet.nl> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:43211 Archived-At: Jelle Huisman wrote: > Jelle Huisman wrote: >> Hi, >> >> I have text with a small intro section in a double column environment. >> The main text is set on a grid and the intro text is slightly off-grid >> with a \vskip -2pt before and a \vskip 2pt after the intro. As this >> sample shows this works fine, until the intro text is broken over two >> columns. In that case the last part of the intro starts on grid (in the >> second column) and the main text is moved off-grid and does not longer >> register with the main text in the first column :( [see example code]. >> Is there is way to detect and prevent this (automatically)? Can ConTeXt >> remember that it is setting some text \vskip-ped, while it is breaking >> the current paragraph over columns? (Basically I want to keep all the >> B's on the grid and all the A's \vskipped.) > > Should I conclude that this is not possible? ok, you suffered enough ... so, this is for your eyes only because otherwise i get complaints about a non documented feature: \synchronizegrid (we needed it once in a project; it worked ok there but was never tested being that which is why it's still on cont-new) \definecolumnset[doublecolumn][n=2] \setupcolumnset[doublecolumn][2][distance=5mm] \setupbodyfont[12pt] \setupinterlinespace[line=11pt] \setuplayout[grid=yes] \showgrid \starttext \startcolumnset[doublecolumn] \ss \subject{Header} \dorecurse {2} { \vskip -2pt This text is vskipped. A \dorecurse{40}{ aa aa} \vskip 2pt % intro text \synchronizegrid This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main text should stay on grid \stopcolumnset \stoptext the thing with grids is that one can make things work for most cases but normally doc are always more tricky in mkiv i will add some more advanced grid support (i did some experiments last year .. no time now to finish that) ----------------------------------------------------------------- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________