ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: grzegorz.sapijaszko@pl.abb.com
Subject: formating paragraph question
Date: Thu, 28 Oct 1999 14:37:32 +0100	[thread overview]
Message-ID: <41256818.004B197F.00@smtp02.seinf.abb.se> (raw)

Hi,

for formating a limerick I'm using the code:

\startnarrower
\startlines
\switchtobodyfont[ant,9pt]
The Swiss kicked him out on his ass.
M. Papon will no longer pass
\hskip1.3em For a free man. Long due,
\hskip1.3em Will a sentence come through?
We hope so. It should be a gas.
\vskip1.5ex
\hskip2em David Franks
\stoplines
\stopnarrower

I was trying to define paragraph like:

\defineparagraphs[limeryk]
   [n=1,before={\startnarrower\startlines},after={\stopnarrower\stoplines}]

\setupparagraphs[limeryk]
   [style={\switchtobodyfont[ant,9pt]}]

but when compile, become a warning (error?):

! Extra }, or forgotten \endgroup.
\stopsmaller ->\par \egroup

\@@allimerykna ->\stopnarrower
                               \stoplines
\stoplimeryk ->\getvalue {limeryk}
                                  \egroup
l.69 \stoplimeryk

Through, the resulting pdf looks good.

And the second question:

is there a way to format automatically these 5 (optionally, with author name, 6)
 limerick lines, that is add (in macro) \hskip for 3-th and 4th line?

1  The Swiss kicked him out on his ass.
2  M. Papon will no longer pass
3  \hskip1.3em For a free man. Long due,
4  \hskip1.3em Will a sentence come through?
5  We hope so. It should be a gas.
\vskip1.5ex
6 \hskip2em David Franks

Greetings,
Grzesiek


             reply	other threads:[~1999-10-28 13:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-28 13:37 grzegorz.sapijaszko [this message]
1999-10-28 14:02 ` Hans Hagen
1999-10-28 15:13 ` Taco Hoekwater
1999-10-28 14:39   ` Hans Hagen
1999-10-28 21:03 Grzegorz Sapijaszko

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=41256818.004B197F.00@smtp02.seinf.abb.se \
    --to=grzegorz.sapijaszko@pl.abb.com \
    /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).