From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26285 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: \defineparagraphs, \setupparagraphs newbie question Date: Thu, 09 Mar 2006 14:02:30 +0100 Message-ID: <44102766.5010108@elvenkind.com> References: <20060309004437.GB20177@obiit.org> <440FEB64.4040508@elvenkind.com> <20060309101819.GC20177@obiit.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141909365 11580 80.91.229.2 (9 Mar 2006 13:02:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 13:02:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 09 14:02:38 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHKms-0005zp-66 for gctc-ntg-context-518@m.gmane.org; Thu, 09 Mar 2006 14:02:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA53612793; Thu, 9 Mar 2006 14:02:37 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13247-04-4; Thu, 9 Mar 2006 14:02:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CDF212778; Thu, 9 Mar 2006 14:02:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90EF112778 for ; Thu, 9 Mar 2006 14:02:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13247-04-3 for ; Thu, 9 Mar 2006 14:02:31 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id AD55B12772 for ; Thu, 9 Mar 2006 14:02:31 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 550B31B44F for ; Thu, 9 Mar 2006 14:02:31 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03475-06 for ; Thu, 9 Mar 2006 14:02:31 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 077A918236 for ; Thu, 9 Mar 2006 14:02:31 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20060309101819.GC20177@obiit.org> X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26285 Archived-At: frantisek holop wrote: > > as the style is always the same and i am lazy, i want to save myself > the typing of \startlines and \stoplines for the second column :) Understandable ;-) Some extra magic is needed (newlines are rather special). The following bit of code seems to work on a simple case, but i give no guarantees: % \defineparagraphs [Poem][n=2] \setupparagraphs [Poem][1][width=.4\textwidth] \def\startpoem#1\poem {\def\poemtitle{#1}\begingroup\obeylines\domypoem} \def\domypoem#1\stoppoem {\endgroup\startPoem\poemtitle\Poem\startlines #1\stoplines\stopPoem} \starttext \startpoem poemtitle \poem ... ... \stoppoem \stoptext % EOF Cheers, Taco