From: Hans Hagen <pragma@wxs.nl>
Cc: grzegorz.sapijaszko@pl.abb.com, ntg-context@ntg.nl
Subject: Re: formating paragraph question
Date: Thu, 28 Oct 1999 15:39:24 +0100 [thread overview]
Message-ID: <3818601C.6523FECD@wxs.nl> (raw)
In-Reply-To: <14360.26668.525553.770682@PC709.wkap.nl>
Taco Hoekwater wrote:
> \newcount\mylines
> \def\mypars
> {\mylines=0
> \def\obeyedline{%
> \par
> \ifcase\mylines \parindent 0em %1
> \or %2
> \or \parindent 1.5em %3
> \or %4
> \or \parindent 0em %5
> \or \vskip 1.5ex\parindent 2em %6
> \else % >6
> \fi
> \advance\mylines1 }}%
>
> grzegorz> \setupparagraphs[limeryk]
> grzegorz> [style={\switchtobodyfont[ant,9pt]}]
>
> grzegorz> is there a way to format automatically these 5
> grzegorz> (optionally, with author name, 6) limerick lines, that
> grzegorz> is add (in macro) \hskip for 3-th and 4th line?
>
> This is what \mypars does. Input becomes:
Ha, we have synchonized thoughts, but slightly different solutions. I'll
keep my mouth shut for a while!
Btw, there is a real dirty trick (for taco only), which could work too:
\defineconversion[limeric][\fakelinenumber]
where \fakelinenumber is an \ifcase. Actually, one can also use
\EveryPar, and use the linenumber as trigger. Maybe we should write an
article on this: 50 ways to typeset limerics or so. Is there, --frans
will probably know-- a standard on typesetting poetry?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~1999-10-28 14:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-28 13:37 grzegorz.sapijaszko
1999-10-28 14:02 ` Hans Hagen
1999-10-28 15:13 ` Taco Hoekwater
1999-10-28 14:39 ` Hans Hagen [this message]
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=3818601C.6523FECD@wxs.nl \
--to=pragma@wxs.nl \
--cc=grzegorz.sapijaszko@pl.abb.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).