ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ed L Cashin <ecashin@coe.uga.edu>
Subject: columns and vglue
Date: 17 May 2000 13:44:16 -0400	[thread overview]
Message-ID: <m3itwdjclr.fsf@coe.uga.edu> (raw)

I would like to use columns in a document.  To help the columns line
up, I would like to use vglue between the things in the columns.

I like the method of stretching and shrinking glue because it will
stretch or shrink to the exact distance necessary to achieve the most
appealing layout.  I know there are grid features in context, but I
would like to know whether I can use simple boxes and glue rather than
using the grid.  

In the code below the columns are balancing nicely, but, changing the
null definition of \thingskip to "\vskip\thingskipamt" (and thereby
adding vertical glue between the things in the columns) makes the
columns turn out unbalanced.  Why?  Wouldn't it be easier (or at least
just as easy) for tex to balance the columns when there's glue giving
some breathing room?  

Here's the code:

\def\lyrics{``Rock over London!  Rock on Chicago!  Budweiser -- it's
	the king of beers.''}   % (Wesley Willis)

\newskip\thingskipamt \thingskipamt=1ex plus 2ex minus .5ex
% \def\thingskip{\vskip\thingskipamt}
\def\thingskip{}
\def\mything{\framed{\vbox{foo\par bar\par baz\par\lyrics}}\thingskip}

\starttext
\mything
\startcolumns[n=2]
\mything
\mything
\mything
\mything
\stopcolumns

\blank[2*big]

\startcolumns[n=3]
\mything
\mything
\mything
\mything
\mything
\mything
\stopcolumns

\stoptext

-- 
--Ed Cashin                     PGP public key:
  ecashin@coe.uga.edu           http://www.coe.uga.edu/~ecashin/pgp/


             reply	other threads:[~2000-05-17 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-17 17:44 Ed L Cashin [this message]
2000-05-17 22:01 ` Hans Hagen
2000-05-18 13:07   ` Ed L Cashin

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=m3itwdjclr.fsf@coe.uga.edu \
    --to=ecashin@coe.uga.edu \
    /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).