From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1123 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: formating paragraph question Date: Thu, 28 Oct 1999 15:13:48 +0000 (GMT) Sender: owner-ntg-context@let.uu.nl Message-ID: <14360.26668.525553.770682@PC709.wkap.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 1035391963 30097 80.91.224.250 (23 Oct 2002 16:52:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:52:43 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: grzegorz.sapijaszko@pl.abb.com Xref: main.gmane.org gmane.comp.tex.context:1123 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1123 >>>>> "grzegorz" == grzegorz sapijaszko writes: grzegorz> Hi, grzegorz> for formating a limerick I'm using the code: grzegorz> I was trying to define paragraph like: grzegorz> \defineparagraphs[limeryk] grzegorz> [n=1,before={\startnarrower\startlines},after={\stopnarrower\stoplines}] You need to reverse \stopnarrower and \stoplines \defineparagraphs[limeryk] [n=1,before={\startnarrower\startlines\mypars},after={\stoplines\stopnarrower}] \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: \startlimeryk The Swiss kicked him out on his ass. M. Papon will no longer pass For a free man. Long due, Will a sentence come through? We hope so. It should be a gas. David Franks \stoplimeryk (with or without the empty lines and indentation) Greetings, Taco -- Taco Hoekwater taco.hoekwater@wkap.nl Kluwer Academic Publishers -- Pre Press -- Achterom 119, 3311 KB Dordrecht, The Netherlands tel. 31-78-6392550 ---------------------------------------------------------------------