From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61708 Path: news.gmane.org!not-for-mail From: John Haltiwanger Newsgroups: gmane.comp.tex.context Subject: Re: HOWTO: Typesetting Poetry in ConTeXt Date: Wed, 15 Sep 2010 22:57:43 +0000 Message-ID: References: <775114DB-28DF-4A65-BBDD-722BA80CC5D7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2027496170==" X-Trace: dough.gmane.org 1284591477 4647 80.91.229.12 (15 Sep 2010 22:57:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 22:57:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 16 00:57:56 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ow0vJ-0008MO-Rf for gctc-ntg-context-518@m.gmane.org; Thu, 16 Sep 2010 00:57:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7872ACA6CF; Thu, 16 Sep 2010 00:57:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h7aWOwrMMEXU; Thu, 16 Sep 2010 00:57:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3628ECA691; Thu, 16 Sep 2010 00:57:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 273D2CA691 for ; Thu, 16 Sep 2010 00:57:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y3LUDDNTc+TV for ; Thu, 16 Sep 2010 00:57:45 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id D2BC6CA66F for ; Thu, 16 Sep 2010 00:57:45 +0200 (CEST) Original-Received: from mail-vw0-f41.google.com (mail-vw0-f41.google.com [209.85.212.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8FMviGR001792 for ; Thu, 16 Sep 2010 00:57:45 +0200 Original-Received: by vws16 with SMTP id 16so621650vws.14 for ; Wed, 15 Sep 2010 15:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=8kUq9P83i2w0gHloy7R89c0wPwU6F94p2cS0WclIMHY=; b=HXYJOKg9A4CEFCDgoiaj183FWMQ8bIEpj6A/LDNaO4zrJbzwU8GZZ5/L6MAQfk3spv cJAkgclOVzM/eOjt5qbeO7n71+ivt5LTEd2ziI/PyxZHjSnfAswbQA56AuqKMYU0FE2V AdAV3mPXy67oU75MNwWqd9VkqVh42Aqu15+0A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Z7iiBbWF+QYQqfbQxb3BcT9KhxHD9gr9EjdkTtt5WQjps4bIuc0eybulQmUp12+ZO4 u4oeb3rt8gXtu9RG/gH6Fj3SFiUgvGhMmr5b8TMGtC7QaQwM4p1NN7VGaqufK/WT4aq1 ewzlmeKgrGRaoWcHzo+wiPBuZq33Hum58TgAc= Original-Received: by 10.220.157.139 with SMTP id b11mr1255282vcx.180.1284591463895; Wed, 15 Sep 2010 15:57:43 -0700 (PDT) Original-Received: by 10.220.49.222 with HTTP; Wed, 15 Sep 2010 15:57:43 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rD7aVIgD - f4cc6c256f85 - 20100916 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:61708 Archived-At: --===============2027496170== Content-Type: multipart/alternative; boundary=e0cb4e6ff629e3254f04905441d7 --e0cb4e6ff629e3254f04905441d7 Content-Type: text/plain; charset=ISO-8859-1 Yeah, that seems like a good way to go. Now I finally understand what Wolfgang was saying last night :) Since whitespace wasn't important to this particular poem, it did not matter (using \par worked fine). But I will update my blog with this for sure, as in the case of whitespace-sensitive poetry its a much better solution. In general though, it is completely unnecessary, as poetry generally has no need to be defined in macros. But it's the edge cases, where I live :) On Wed, Sep 15, 2010 at 10:47 PM, Aditya Mahajan wrote: > On Thu, 16 Sep 2010, Wolfgang Schuster wrote: > > >> Am 16.09.2010 um 00:38 schrieb Aditya Mahajan: >> >> However, \startlines..\stoplines is not available when defining a macro. >>>>> >>>> >>> What do you mean by that these macros are not available? >>> >>> Doesn't the following work? (untested, but I will be really surprised if >>> it doesn't work) >>> >>> \def\startpoety >>> {\startlines >>> % All the remaining setup >>> } >>> >>> \def\stoppoety >>> {%whatever setup you want >>> \stoplines} >>> >> >> He use >> >> \def\poetry >> {\startlines >> line 1 >> line 2 >> ... >> \stoplines} >> >> and this doesn't work. >> > > Oh. In that case, I will do > > \startbuffer[poerty] > line 1 > line > \stopbuffer > > \def\poetry > {\startlines > \getbuffer[poetry] > \stoplines} > > or even > > \def\getpoerty#1[#2]% > {\startlines > \getbuffer[#2] > \stoplines} > > That should work (again untested). > > > Aditya > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --e0cb4e6ff629e3254f04905441d7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yeah, that seems like a good way to go. Now I finally understand what Wolfg= ang was saying last night :)

Since whitespace wasn't important t= o this particular poem, it did not matter (using \par worked fine). But I w= ill update my blog with this for sure, as in the case of whitespace-sensiti= ve poetry its a much better solution.

In general though, it is completely unnecessary, as poetry generally ha= s no need to be defined in macros. But it's the edge cases, where I liv= e :)

On Wed, Sep 15, 2010 at 10:47 PM, Ad= itya Mahajan <adi= tyam@umich.edu> wrote:
On Thu, 16 Sep 2010, Wolfgang Schuster wrote:


Am 16.09.2010 um 00:38 schrieb Aditya Mahajan:

However, \startlines..\stoplines is not available when defining a macro.

What do you mean by that these macros are not available?

Doesn't the following work? (untested, but I will be really surprised i= f it doesn't work)

\def\startpoety
=A0{\startlines
=A0% All the remaining setup
=A0}

\def\stoppoety
{%whatever setup you want
=A0\stoplines}

He use

\def\poetry
=A0{\startlines
=A0line 1
=A0line 2
=A0...
=A0\stoplines}

and this doesn't work.

Oh. In that case, I will do

\startbuffer[poerty]
line 1
line
\stopbuffer

\def\poetry
=A0{\startlines
=A0 \getbuffer[poetry]
=A0 \stoplines}

or even

\def\getpoerty#1[#2]%
=A0{\startlines
=A0 \getbuffer[#2]
=A0 \stoplines}

That should work (again untested).


Aditya

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--e0cb4e6ff629e3254f04905441d7-- --===============2027496170== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2027496170==--