ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: columnsetspan - alternative needed
Date: Mon, 24 Jan 2005 19:36:33 +0100	[thread overview]
Message-ID: <41F54031.1040707@wxs.nl> (raw)
In-Reply-To: <a06002004be1aa1cb374b@[62.134.76.66]>

Steffen Wolfrum wrote:
> Thanks for the quick answer - but obviously my example was bad: columnsetareas don't do what I need.
> 
> Maybe this is a better explanation:
> 
> Given you have two articles in a book set in two columns.
> The second article doesn't start on a new page - it just begins where the first one ends.
> 
> But the first article (aaa...) ends with two balanced columns,
> then comes the heading (bbb) for the second article,
> and then comes begins the second article (ccc...).
> 
> 
> That's what I mean by
> 
> aaa  aaa
> aaa  aaa
> 
> bbbb
> 
> ccc  ccc
> ccc  ccc
> 
> Do you have a trick how to do a page like this with columnsets?

well, it involves some manual tweaking (numbers and such) and is not yet 100% ok

the next code shows a  bit of balancing and columnstart/height manipulations


\starttext

\showgrid

\definecolumnset [two]   [n=2,balance=top]
\definecolumnset [three] [n=3,balance=top]

\setupcolumnsetlines[two][1][1][15]
\setupcolumnsetlines[two][1][2][15]

\setupcolumnsetstart[three][1][1][15]
\setupcolumnsetstart[three][1][2][18]
\setupcolumnsetstart[three][1][3][20]

\setupcolumnsetlines[three][1][1][40]
\setupcolumnsetlines[three][1][2][40]
\setupcolumnsetlines[three][1][3][40]

\definecolumnsetspan[two]

% \starttext
%   \startcolumnset [two]   \dorecurse {1}{\input tufte \par} \stopcolumnset
%   \startcolumnset [three] \dorecurse {2}{\input tufte \par} \stopcolumnset
% \stoptext

\starttext
   \startcolumnset [two]   \startcolumnsetspan[two] \input ward 
\stopcolumnsetspan \dorecurse {1}{\input tufte \par} \stopcolumnset
   \startcolumnset [three] \startcolumnsetspan[two] \input ward 
\stopcolumnsetspan \dorecurse {2}{\input tufte \par} \stopcolumnset
\stoptext


\stoptext

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

       reply	other threads:[~2005-01-24 18:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a06002004be1aa1cb374b@[62.134.76.66]>
2005-01-24 18:36 ` Hans Hagen [this message]
2005-01-24 19:24   ` ruby in TeX ? luigi scarso
2005-01-25  7:40     ` Taco Hoekwater
2005-01-25  7:49       ` ruby in TeX ? Ok luigi scarso
2005-01-21 22:34 columnsetspan - alternative needed Steffen Wolfrum

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=41F54031.1040707@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).