ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Derek Schmidt" <derekschmidt@gmail.com>
Subject: Re: typesetting verse?
Date: Wed, 23 Aug 2006 10:12:48 -0400	[thread overview]
Message-ID: <221cc89e0608230712j2e1d5c12y433bb4886d71b2a6@mail.gmail.com> (raw)
In-Reply-To: <200608231002.38394.john@wexfordpress.com>

Ah, this has been very helpful indeed. Thanks all.

On 8/23/06, John R. Culleton <john@wexfordpress.com> wrote:
> On Tuesday 22 August 2006 23:39, Derek Schmidt wrote:
> > Hi,
> >
> > Another simple question--have at it!
> >
> > I'd like to typeset some poetry. It should be indented, obey lines,
> > and the lines should be close together, not like separate paragraphs.
> > So far I've got
> >
> > \definestartstop[verse][commands=\obeylines]
> >
> >
> > What next?
> >
> > All best,
> > Derek
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
>
> In a book being set in plain pdftex I used the following;
>
> \newcount\numberoflines
> \newcount\stanza
> \stanza=5
>
>
> \def\bpoem{%
> \\
> \begingroup
> \everypar={\kern .18\hsize\advance\numberoflines1
> \ifodd\numberoflines
>         \ifnum\numberoflines=\the\stanza
>                 \vskip-\baselineskip\medskip\numberoflines=0\relax\fi%
>         \else%
>         \quad\fi}%
> \obeylines}
>
> \def\epoem{\everypar={}\par\endgroup\bigskip}
> ----------------------------------------------------
> For each poem the quantity \stanza would be set first. Stanza is
> the number of lines in each stanza plus one. A four lines per
> stanza poem gets the value of 5.
>
> Then the poem would be enclosed in \bpoem \epoem statements.
>
> Most pdftex statements will execute in Context. But if not, then
> the above can be used as pseudocode to guide the process.
>
>
> The poems themselves would look like e.g:
>
> \bpoem
> `` The things of Christ the Spirit takes,
> And to our heart reveals,
> Our bodies He His temple makes,
> And our redemption seals.
>
> Almighty Spirit! Visit thus,
> Our hearts, and guide our ways,
> Pour down thy quickening grace on us,
> And tune our lips to praise.''
> \epoem
>
> Most pdftex statements will execute in Context. But if not, then
> the above can be used as pseudocode to guide the process.
>
>
>
> --
> John Culleton
> Able Indexing and Typesetting
> Precision typesetting (tm) at reasonable cost.
> Satisfaction guaranteed.
> http://wexfordpress.com
>
>
>
>

      reply	other threads:[~2006-08-23 14:12 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
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 [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=221cc89e0608230712j2e1d5c12y433bb4886d71b2a6@mail.gmail.com \
    --to=derekschmidt@gmail.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).