From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15880 Path: main.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: Collecting command arguments in a startstop environment Date: 2 Aug 2004 10:37:08 +0200 Organization: chaos Sender: ntg-context-bounces@ntg.nl Message-ID: References: <4.3.1.2.20040801223158.00b48988@cits1.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091435842 22446 80.91.224.253 (2 Aug 2004 08:37:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2004 08:37:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 02 10:37:15 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BrYJn-0003vp-00 for ; Mon, 02 Aug 2004 10:37:15 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B0B112795; Mon, 2 Aug 2004 10:37:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17065-02-3; Mon, 2 Aug 2004 10:37:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8331C1278E; Mon, 2 Aug 2004 10:37:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 10D281278E for ; Mon, 2 Aug 2004 10:37:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17065-02-2 for ; Mon, 2 Aug 2004 10:37:13 +0200 (CEST) Original-Received: from lilly.ping.de (unknown [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id 62B0D1276D for ; Mon, 2 Aug 2004 10:37:13 +0200 (CEST) Original-Received: (qmail 13762 invoked from network); 2 Aug 2004 08:37:12 -0000 Original-Received: (ofmipd 83.97.40.234); 2 Aug 2004 08:36:50 -0000 Original-Received: from schnee.local. (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id i728bDZ5026721 for ; Mon, 2 Aug 2004 10:37:14 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local. (8.12.9/8.12.2/Submit) id i728bBkq026720; Mon, 2 Aug 2004 10:37:11 +0200 (CEST) Original-To: ntg-context@ntg.nl X-Authentication-Warning: schnee.local.: pg set sender to patrick@gundla.ch using -f X-Lieblings-Musik: the_capricorns In-Reply-To: <4.3.1.2.20040801223158.00b48988@cits1.stanford.edu> (Brooks Moses's message of "Sun, 01 Aug 2004 22:39:22 -0700") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15880 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15880 [...] > Anyhow, I'm finding myself wanting to do this in ConTeXt, with of > course replacing \newenvironment with \definestartstop. I didn't want to fiddle with \definestartstop, but here is a quick hack: -------------------------------------------------- \long\def\foo#1{ Hello #1!} \long\def\startfoo #1 \stopfoo{\unskip \foo{#1}} \starttext \startfoo World \stopfoo \startfoo Brooks \stopfoo \startfoo some lines \stopfoo \stoptext -------------------------------------------------- Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net