ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: multi-column spread control (was Re: beginner's questions)
Date: Mon, 13 Nov 2000 18:17:23 +0100	[thread overview]
Message-ID: <3.0.6.32.20001113181723.015ed100@pop.wxs.nl> (raw)
In-Reply-To: <m3pujz7qxp.fsf@coe.uga.edu>

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
-------------------------------------------------------------------------


  reply	other threads:[~2000-11-13 17:17 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-09 16:51 beginner's questions Wouter Verheijen
2000-11-09 17:20 ` Frans Goddijn
2000-11-09 17:54   ` Hans Hagen
2000-11-09 17:40 ` Hans Hagen
2000-11-09 19:25   ` Ed L Cashin
2000-11-11 17:34     ` siepo
2000-11-11 17:56       ` Frans Goddijn
2000-11-24 12:51         ` Christopher Tipper
2000-11-11 19:41       ` Berend de Boer
2000-11-12 11:34         ` siepo
2000-11-12 18:56           ` Denis B. Roegel
2000-11-13  9:37             ` Hans Hagen
2000-11-13 16:54               ` multi-column spread control (was Re: beginner's questions) Ed L Cashin
2000-11-13 17:17                 ` Hans Hagen [this message]
2000-11-13 18:43                   ` Ed L Cashin
2000-11-13 18:44                   ` Ed L Cashin
2000-11-14  7:49                     ` Hans Hagen
2000-11-14 13:27                       ` Ed L Cashin
2000-11-14 14:13                         ` Hans Hagen
2000-11-14 14:49                           ` Ed L Cashin
2000-11-14 15:49                             ` Hans Hagen
2000-11-14 16:45                               ` Ed L Cashin
2000-11-14 17:12                                 ` Hans Hagen
2000-11-14 18:25                                   ` Ed L Cashin
2000-11-15  0:23                                     ` Hans Hagen
2000-11-15  1:15                                       ` Ed L Cashin
2000-11-15 17:20                                         ` voting & form design (was: multi-column spread control) Hraban
2000-11-14 21:51                                   ` multi-column spread control (was Re: beginner's questions) Denis B. Roegel
2000-11-15  0:20                                     ` Hans Hagen
2000-11-15 23:28                                       ` Denis B. Roegel
2000-11-19 19:31                                         ` Hans Hagen
2000-11-12 14:04         ` Documentation Tasks (was: " Hraban
2000-11-13  7:38       ` beginner's questions Hans Hagen
2000-11-13 21:26         ` siepo
2000-11-09 19:19 ` Berend de Boer
     [not found] <Hans Hagen's message of "Tue, 14 Nov 2000 18:12:11 +0100">
     [not found] ` <Hans Hagen's message of "Tue, 14 Nov 2000 16:49:12 +0100">
     [not found]   ` <Hans Hagen's message of "Tue, 14 Nov 2000 15:13:29 +0100">
     [not found]     ` <Hans Hagen's message of "Tue, 14 Nov 2000 08:49:03 +0100">

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=3.0.6.32.20001113181723.015ed100@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --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).