ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Erik Hetzner <egh@OCF.Berkeley.EDU>
Cc: John Culleton <john@wexfordpress.com>
Subject: Re: Centering lines of poetry.
Date: Tue, 21 Oct 2003 10:35:35 -0700	[thread overview]
Message-ID: <87ptgqqys8.wl@ocf.berkeley.edu> (raw)
In-Reply-To: <200310211253.31394.john@wexfordpress.com>

At Tue, 21 Oct 2003 12:53:31 -0400,
John Culleton wrote:
> 
> Here is a deceptively simple requirement:
> An author writes poetry where lines are ended by a carriage retrun
> and stanzas are ended by a blank line. 
> 
> Problem: How to enclose those lines somehow so that all lines are 
> centered yet font changes are allowed. 
> 
> Of course \centerline{} works but this requires tagging each line.
> 
> Any thoughts, anyone?  

This worked for me:
\startalignment[middle]
\setuplines[indenting=no]
\startlines
{\it Out of his mouth a red, red rose!
Out of his heart a white!
For who can say by what strange way
Christ brings his will to light,
Since the barren staff the pilgrim bore
Bloomed in the great Pope's sight.}
\stoplines
\stopalignment

Regards,
Erik Hetzner

      parent reply	other threads:[~2003-10-21 17:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 16:53 John Culleton
2003-10-21 17:29 ` Erik Hetzner
2003-10-21 17:35 ` Erik Hetzner [this message]

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=87ptgqqys8.wl@ocf.berkeley.edu \
    --to=egh@ocf.berkeley.edu \
    --cc=john@wexfordpress.com \
    --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).