From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1120 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:02:53 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3818578D.E50D4A18@wxs.nl> References: <41256818.004B197F.00@smtp02.seinf.abb.se> 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 1035391960 30048 80.91.224.250 (23 Oct 2002 16:52:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:52:40 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: grzegorz.sapijaszko@pl.abb.com Xref: main.gmane.org gmane.comp.tex.context:1120 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1120 grzegorz.sapijaszko@pl.abb.com wrote: > \defineparagraphs[limeryk] > [n=1,before={\startnarrower\startlines},after={\stopnarrower\stoplines}] a matter of nesting and symmetry: \stoplines\stopnarrower > 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 There is odd/even indentation support, but this limerick would go beyond logic -) \def\StartLimeric% {\startpacked \newcounter\LimericLine \def\\% {\increment\LimericLine\relax \ifcase\LimericLine\relax \or \endgraf \or \endgraf \hskip.3em \or \endgraf \hskip.3em \or \endgraf \or \endgraf \vskip.5ex \else \endgraf \fi} \def\StopLimeric% {\stoppacked} \StartLimeric line 1 \\ line 2 \\ line 3 \\ line 4 \\ line 5 \\ line 6 \\ \StopLimeric Untested, but that's the way. We could collect such macros in a poetry module. 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 -----------------------------------------------------------------