From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/43154 Path: news.gmane.org!not-for-mail From: Jelle Huisman Newsgroups: gmane.comp.tex.context Subject: stay on grid in double column Date: Wed, 13 Aug 2008 16:44:13 +0100 Message-ID: <48A3014D.9050508@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 1218642422 31777 80.91.229.12 (13 Aug 2008 15:47:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 15:47:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 13 17:47:53 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 1KTIZP-0002Lm-GF for gctc-ntg-context-518@m.gmane.org; Wed, 13 Aug 2008 17:47:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4374E1FE8A; Wed, 13 Aug 2008 17:46:33 +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 18496-02-4; Wed, 13 Aug 2008 17:45:50 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E6D31FE9B; Wed, 13 Aug 2008 17:45:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B90151FE9B for ; Wed, 13 Aug 2008 17:45:38 +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 17314-03-5 for ; Wed, 13 Aug 2008 17:45:00 +0200 (CEST) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id 1F32E1FEAE for ; Wed, 13 Aug 2008 17:44:18 +0200 (CEST) Original-Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id m7DFiHrs023329 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 13 Aug 2008 11:44:18 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.78 (ClamAV engine v0.93.3) X-ExternalMail: External Original-Received: from [172.17.1.85] (account jelle_huisman@sil.org HELO jelle-mbp.local) by mail.link77.net (CommuniGate Pro SMTP 5.2.5) with ESMTPSA id 190208731 for ntg-context@ntg.nl; Wed, 13 Aug 2008 11:44:16 -0400 User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 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:43154 Archived-At: 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.) Thanks, Jelle % sample code \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 This text should stay on the grid. B \dorecurse{270}{ bb bb}} % main text should stay on grid \stopcolumnset \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________