ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steve Lumos <slumos@nevada.edu>
Subject: Horizontal centering \startlines...\stoplines
Date: Wed, 21 Feb 2001 23:24:37 -0800	[thread overview]
Message-ID: <008034529071621HAMS4@lvcablemodem.com> (raw)

Hi.

I've just recently started using ConTeXt for the purpose of
typesetting a poetry chapbook (small, usually self published,
typically saddle stitch bound).  I can't begin to tell you how much I
love how easy the layout becomes with ConTeXt.

What I'm wondering is whether there is an automatic way in ConTeXt to
horizontally center a poem (or any fairly long block of short-line,
ragged-right text) on the page.  For example I would like to do
something like:

\definehead[Poem][subject]
\setuphead[Poem][alternative=middle,textcommand=\ss]

\setupindenting[big]
\setuplines[indenting=even]

\starttext

\Poem{deMorgan}
\startlines
Great fleas have little fleas
    upon their backs to bite 'em
And little fleas have lesser fleas,
    and so ad infinitum,

And the great fleas themselves,
    in turn, have greater fleas to go on,
While these again have greater still,
    and greater still, and so on.
\stoplines

\stoptext

except wrapping the \startlines...\stoplines in some magic so that the
poem is beneath the title and without having a human to measure with
width of the widest line.  This is especially important for setting
poems in two columns because in that case the title looks strange no
matter where you put it.

With LaTeX in the past, I have either lived with everything on the
left which makes the title look funny, or resorted to putting each
poem in a minipage of a width found by trial and error.

Steve


             reply	other threads:[~2001-02-22  7:24 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-22  7:24 Steve Lumos [this message]
2001-02-22  8:47 ` Horizontal centering \startlines...\stoplines / poems Hans Hagen
2001-03-03  9:22   ` Steve Lumos
2001-03-04 21:09     ` Hans Hagen
2001-03-07  4:08       ` Steve Lumos
2001-03-07  8:14         ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2002-05-25 18:14 Broken catcodes Giuseppe Bilotta
2002-05-25 20:17 ` Hans Hagen
2002-05-25 21:46   ` Re[2]: " Giuseppe Bilotta
2002-05-26 17:39     ` Hans Hagen
     [not found]       ` <pragma@wxs.nl>
2001-03-12 16:50         ` fonts fonts and fonts Hans Hagen
2001-03-12 17:07           ` Frans Goddijn
2001-03-12 23:11           ` Christoph Dreyer
2001-03-13  9:33             ` S2P development
2001-03-13 10:12               ` Han The Thanh
2001-03-13 10:35               ` Hans Hagen
2001-03-14 21:32               ` H. Ramm
2001-03-13  7:12           ` Steve Lumos
2001-03-13  9:13             ` Hans Hagen
2001-03-14  0:29             ` Uwe Koloska
2001-03-13 14:35           ` Ed L Cashin
2001-03-14  0:18           ` Uwe Koloska
2001-03-15 21:55           ` H. Ramm
2002-05-27 15:27         ` Re[2]: Broken catcodes Daniel Flipo
2002-05-27 15:32           ` Hans Hagen
2002-05-26 20:38       ` Re[3]: " Giuseppe Bilotta
2001-05-30 11:40 Environments, Projects, Products, Components Giuseppe Bilotta
2001-05-30 15:14 ` Taco Hoekwater
2001-05-30 18:01   ` Re[2]: " Giuseppe Bilotta
2001-05-31  7:51     ` Taco Hoekwater
2001-05-31  9:34       ` Hans Hagen
2001-08-30 17:54         ` Steve Lumos
2001-08-31  7:19           ` Hans Hagen
2001-05-31  8:11     ` Re[2]: " Hans Hagen
2000-08-19 12:21 Setting up footnotes Joop Susan
2000-08-21 11:00 ` Hans Hagen
2000-08-21 18:19   ` Joop Susan
2000-08-22  6:59     ` Hans Hagen

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=008034529071621HAMS4@lvcablemodem.com \
    --to=slumos@nevada.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).