From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3281 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: multi-column spread control (was Re: beginner's questions) Date: Mon, 13 Nov 2000 18:17:23 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001113181723.015ed100@pop.wxs.nl> References: <20001112113730.1EF2A2317E@client44-3.kabela.oprit.rug.nl> <3.0.6.32.20001113103749.01cafc00@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394023 15689 80.91.224.250 (23 Oct 2002 17:27:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:27:03 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Ed L Cashin In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:3281 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3281 At 11:54 AM 11/13/00 -0500, Ed L Cashin wrote: >By multi-column spread control do you mean the ability to have >balanced columns? No, a spread is something that crosses a page, so a figure or title that spans a left and right page. I'll send you a sample. >In order for the columns to balance (i.e. have the baselines of their >bottom lines line up perfectly) the glue between the vboxes has to be >balanced in a sophisticated way. That's called snapping. \starttext \setuplayout[grid=yes] \showgrid \setupbodyfont[9pt] \def\myText {\strut Maggie comes fleet foot face full of black soot talkin' that the heat put plants in the bed but the phone's tapped anyway Maggie says that many say they must bust in early May --- orders from the D. A.\strut} \startcolumns[n=2] \dorecurse{7}{\snaptogrid\vbox{\myText}\blank} \stopcolumns \blank[2*big] \startcolumns[n=3] \dorecurse{7}{\snaptogrid\vbox{\myText}\blank} \stopcolumns \stoptext >I know that this is a hard problem, and so I'm just wondering if >that's what you meant by spread control. Actually it's not that hard, but since context tries hard to snap, it is hard to convince it to do otherwise. What i'm currently doing is isolating the otr code into modules. There will be a series of basic otr's like: single column, mixed single multi, and multi, plus a mechanism to implement your own as well as communicate with the otr. The new multi routine will give quite some control over float placement and other trickery. It is a combination of all kind of code snippets and ideas I collected over the past years, so i can finally clean up my machine -) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------