From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1122 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: formating paragraph question Date: Thu, 28 Oct 1999 15:39:24 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3818601C.6523FECD@wxs.nl> References: <41256818.004B197F.00@smtp02.seinf.abb.se> <14360.26668.525553.770682@PC709.wkap.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391962 30082 80.91.224.250 (23 Oct 2002 16:52:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:52:42 +0000 (UTC) Cc: grzegorz.sapijaszko@pl.abb.com, ntg-context@ntg.nl Original-To: Taco Hoekwater Xref: main.gmane.org gmane.comp.tex.context:1122 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1122 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 -----------------------------------------------------------------