From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22661 Path: news.gmane.org!not-for-mail From: David Munger Newsgroups: gmane.comp.tex.context Subject: Re: t-rsteps and starttyping Date: Thu, 22 Sep 2005 11:24:28 -0400 Message-ID: <1127402668.59949.89.camel@tempete> References: <1119909965.13762.21.camel@localhost.localdomain> <1126562259.1418.41.camel@tempete> <43315428.90603@creutzig.de> <1127311214.59949.48.camel@tempete> <43316A9E.90905@elvenkind.com> <1127340987.59949.61.camel@tempete> <43325591.5000108@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1127402916 30547 80.91.229.2 (22 Sep 2005 15:28:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2005 15:28:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 22 17:28:27 2005 Return-path: 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 1EISwC-00040F-Rm for gctc-ntg-context-518@m.gmane.org; Thu, 22 Sep 2005 17:24:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 13E46127F2; Thu, 22 Sep 2005 17:24:40 +0200 (CEST) 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 30432-04-4; Thu, 22 Sep 2005 17:24:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F4E8127E0; Thu, 22 Sep 2005 17:24:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 104AE127E0 for ; Thu, 22 Sep 2005 17:24:33 +0200 (CEST) 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 30432-04-3 for ; Thu, 22 Sep 2005 17:24:32 +0200 (CEST) Original-Received: from tomts16-srv.bellnexxia.net (tomts16-srv.bellnexxia.net [209.226.175.4]) by ronja.ntg.nl (Postfix) with ESMTP id 98793127B0 for ; Thu, 22 Sep 2005 17:24:32 +0200 (CEST) Original-Received: from HSE-Toronto-ppp185522.sympatico.ca ([64.229.110.253]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050922152431.ZGOA21026.tomts16-srv.bellnexxia.net@HSE-Toronto-ppp185522.sympatico.ca> for ; Thu, 22 Sep 2005 11:24:31 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <43325591.5000108@creutzig.de> X-Mailer: Evolution 2.4.0 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22661 Archived-At: Hi Christopher, This was the right way. Thanks a lot! Still, I don't understand how the \starttyping macro gets to work if ^^M is redefined as ^^J. I will tell Patrick to update the module on the garden. Meanwhile, you can get the updated version on my site: http://cfd.homelinux.org/tex/ David Le Jeudi 22 septembre 2005 =C3=A0 08:56 +0200, Christopher Creutzig a =C3= =A9crit : > David Munger wrote: >=20 > > Unfortunately, the \StartLong macro is not meant only for producing > > line-wise content. In the general case, it contains something else th= an > > just \starttyping block. >=20 > Please try this: >=20 > \bgroup >=20 > \catcode`\^^M=3D\active >=20 > \gdef\StartLong{\begingroup\obeylines\let^^M^^J\doStartLong} >=20 > \egroup >=20 > \def\doStartLong#1\StopLong{% > \setbuffer[x]#1\endbuffer > \endgroup > \getbuffer[x] > } >=20 >=20 > \starttext > \StartLong > \starttyping > abcde > \stoptyping >=20 > and now > for something > completely different >=20 > \StopLong > \stoptext >=20 >=20 > Christopher > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context