ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: typesetting verse?
Date: Wed, 23 Aug 2006 00:24:07 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0608230015160.404@nqvgln> (raw)
In-Reply-To: <221cc89e0608222039p4132b4f0jb81c3713be4a59f0@mail.gmail.com>

On Tue, 22 Aug 2006, Derek Schmidt wrote:

> Hi,
>
> Another simple question--have at it!
>
> I'd like to typeset some poetry. It should be

> indented,

\startnarrower .... \stopnarrower

> obey lines,

\startlines ... \stoplines (it is more customizable than \obeylines)

You can actually say

\setupindenting[medium] \startlines[indenting=yes] (other options are 
no, yes, odd, even) and see which one you like.

> and the lines should be close together, not like separate paragraphs.

\setupinterlinespace[line=2em] .... \endgraf (default is 2.4 em)

> So far I've got
>
> \definestartstop[verse][commands=\obeylines]

So you can try

\def\startverse%
   {\bgroup
    \setupinterlinespace[line=2em]
    \startlines[indenting=yes]}

\def\stopverse%
    {\stoplines
     \endgraf\egroup}


You could have also done the equivalent

\definestartstop[verse][before={\setupinterlinespace[line=2em]\startlines},
                         after={\stoplines\endgraf}]

Aditya

  reply	other threads:[~2006-08-23  4:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-23  3:39 Derek Schmidt
2006-08-23  4:24 ` Aditya Mahajan [this message]
2006-08-23 22:35   ` Derek Schmidt
2006-08-23 22:38     ` Aditya Mahajan
2006-08-24  0:22       ` Derek Schmidt
2006-08-23  8:09 ` Hans Hagen
2006-08-23 14:44   ` Aditya Mahajan
2006-08-23 22:17     ` Hans Hagen
2006-08-23 14:02 ` John R. Culleton
2006-08-23 14:12   ` Derek Schmidt

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=Pine.WNT.4.63.0608230015160.404@nqvgln \
    --to=adityam@umich.edu \
    --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).