From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9559 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: [NTG-context] Fully object-oriented section Date: Thu, 17 Oct 2002 22:28:50 +0200 Sender: ntg-context-admin@ref.vet.uu.nl Message-ID: <157877251.20021017222850@iol.it> Reply-To: Giuseppe Bilotta NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035399869 4025 80.91.224.250 (23 Oct 2002 19:04:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:04:29 +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 g9HL1Le14123 for ; Thu, 17 Oct 2002 23:01:21 +0200 (MEST) Original-Received: from ref.vet.uu.nl by hermes.hrz.uni-giessen.de with ESMTP for Guenter.Partosch@hrz.uni-giessen.de; Thu, 17 Oct 2002 23:01:15 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 717F210AE1; Thu, 17 Oct 2002 23:01:10 +0200 (MEST) Original-Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by ref.ntg.nl (Postfix) with ESMTP id 524DE10ADC for ; Thu, 17 Oct 2002 23:00:15 +0200 (MEST) Original-Received: from [151.29.129.68] (151.29.129.68) by smtp1.libero.it (6.5.028) id 3DA3107F00451F15 for ntg-context@ntg.nl; Thu, 17 Oct 2002 23:00:12 +0200 X-Mailer: The Bat! (v1.60q) Business X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl 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:9559 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9559 Hello, I'd like to restart the thread about "object-orienting" section commands. Availability of \startpart ... \stoppart, \startchapter ...\stopchapter (alongside the faster \part, \chapter ... alternatives) becomes more and more a need for me. Having the mechanism standardized in ConTeXt would be a great thing. This is the way I'm implementing it by hand: %D New structured sectioning \newtoks\everybeforestartpart \newtoks\everyafterstartpart \newtoks\everystoppart \def\startpart{\dosingleempty\dostartpart} \def\dostartpart[#1]#2{% \bgroup\bgroup \the\everybeforestartpart \iffirstargument \part[#1]{#2}% \else \part{#2}% \fi \egroup \the\everyafterstartpart } \def\stoppart{\the\everystoppart\egroup} Using this snippet as the kernel and simply changing "part" to whatever other sectioning level is needed is enough to allow full customization of the sectioning levels. Can this be put in ConTeXt? -- Giuseppe "Oblomov" Bilotta _______________________________________________ ntg-context mailing list ntg-context@ref.ntg.nl http://ref.ntg.nl/mailman/listinfo/ntg-context