From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4287 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Clean way of doing certain kind of outline? Date: Wed, 07 Mar 2001 09:10:21 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010307091021.0134b210@server-1> References: <20010306222412.6125.qmail@web10710.mail.yahoo.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394965 24433 80.91.224.250 (23 Oct 2002 17:42:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:42:45 +0000 (UTC) Cc: ConTeXT Mailing List Original-To: Berend de Boer In-Reply-To: <3AA5D0DB.3050601@pobox.com> Xref: main.gmane.org gmane.comp.tex.context:4287 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4287 At 07:10 AM 3/7/01 +0100, Berend de Boer wrote: >James Ramsey wrote: > > >> BTW, how do I define a macro with an *optional* >> argument in brackets (not just a mandatory argument in >> brackets--I know how to do that). > >\def\mymacro% > {\dosingleempty\domymacro} > >\def\domymacro[#1]% > {My optional #1 argument} there is also an associated test: \def\domymacro[#1]% {\iffirstargument No argument \else Berends optional #1 argument \fi} 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 -------------------------------------------------------------------------