From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5293 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Topic{} in s-pre-14 module Date: Mon, 20 Aug 2001 11:56:36 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010820114201.032b2bf0@server-1> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035395891 400 80.91.224.250 (23 Oct 2002 17:58:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:58:11 +0000 (UTC) Cc: conTeXt list Original-To: Allin Cottrell In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:5293 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5293 At 11:23 AM 8/10/2001 -0400, Allin Cottrell wrote: >\Topic{David Ricardo (1772--1823) There are a couple of ways [beware of spacing screw up] \setuphead[Topic][incrementnumber=no] \Topic{David Ricardo (1772--1823)} \writetolist[Topic]{}{Whow} so, now the Topic command will not write to the list but you can. You can package this as: \def\MyTopic#1#2% {\Topic{#2}\writetolist[Topic]{}{#1}} \MyTopic{David}{David Ricardo (1772--1823)} A prelude to a more general mechanism is the following [i seem to have lost some code] \let\Them\secondoftwoarguments \setuplist[Topic][textcommand=\let\Them\firstoftwoarguments] \starttext \Topic{\Them{Ricardo}{David Ricardo (1772--1823)}} \stoptext which is a space safe operation. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------