From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9572 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: [NTG-context] Fully object-oriented section Date: Fri, 18 Oct 2002 20:44:47 +0200 Sender: ntg-context-admin@ref.vet.uu.nl Message-ID: <20021018204447.A857@scaprea> References: <157877251.20021017222850@iol.it> <1494380849.20021017232714@iol.it> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035399880 4124 80.91.224.250 (23 Oct 2002 19:04:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:04:40 +0000 (UTC) Original-Received: from hermes.hrz.uni-giessen.de (hermes.hrz.uni-giessen.de [134.176.2.15]) by osiris.hrz.uni-giessen.de (8.11.6+Sun/8.11.6) with ESMTP id g9IIlde05696 for ; Fri, 18 Oct 2002 20:47:39 +0200 (MEST) Original-Received: from ref.vet.uu.nl by hermes.hrz.uni-giessen.de with ESMTP for Guenter.Partosch@hrz.uni-giessen.de; Fri, 18 Oct 2002 20:47:19 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6DBB310AE9; Fri, 18 Oct 2002 20:47:14 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 1E14D10AD9 for ; Fri, 18 Oct 2002 20:46:56 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.5/8.12.2) with ESMTP id g9IIktBZ021061 for ; Fri, 18 Oct 2002 20:46:55 +0200 (CEST) (envelope-from simon@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.5/8.12.2/Submit) with UUCP id g9IIksFB021060 for ntg-context@ntg.nl; Fri, 18 Oct 2002 20:46:54 +0200 (CEST) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.12 #1 (Debian)) id 182c75-0000H5-00; Fri, 18 Oct 2002 20:44:47 +0200 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl User-Agent: Mutt/1.0.1i In-Reply-To: <1494380849.20021017232714@iol.it>; from gip.bilotta@iol.it on Thu, Oct 17, 2002 at 11:27:14PM +0200 Errors-To: ntg-context-admin@ref.vet.uu.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9572 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9572 On Thu, Oct 17, 2002 at 11:27:14PM +0200, Giuseppe Bilotta wrote: > > Sorry for following up to myself. After a few tries, I discovered > that it's much better without the inner grouping: > > \newtoks\everybeforestartpart > \newtoks\everyafterstartpart > \newtoks\everystoppart > \def\startpart{\dosingleempty\dostartpart} > \def\dostartpart[#1]#2{% > \bgroup > \the\everybeforestartpart > \iffirstargument > \part[#1]{#2}% > \else > \part{#2}% > \fi > \egroup > \the\everyafterstartpart > } > \def\stoppart{\the\everystoppart} This is without the outer grouping. I think the outer grouping is necessary; when I use \start \stop commands I expect them to make a group. Could not you do without the if statement? \def\dostartpart[#1]#2{% \bgroup \the\everybeforestartpart \part[#1]{#2}% \the\everyafterstartpart } \def\stoppart{\the\everystoppart\egroup} -- Simon Pepping email: spepping@scaprea.hobby.nl _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context