From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4297 Path: main.gmane.org!not-for-mail From: James Ramsey Newsgroups: gmane.comp.tex.context Subject: Re: Clean way of doing certain kind of outline? Date: Wed, 7 Mar 2001 10:37:51 -0800 (PST) Sender: owner-ntg-context@let.uu.nl Message-ID: <20010307183751.53460.qmail@web10704.mail.yahoo.com> References: <3.0.6.32.20010307091021.0134b210@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035394974 24505 80.91.224.250 (23 Oct 2002 17:42:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:42:54 +0000 (UTC) Original-To: ntg-context@ntg.nl In-Reply-To: <3.0.6.32.20010307091021.0134b210@server-1> Xref: main.gmane.org gmane.comp.tex.context:4297 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4297 --- Hans Hagen wrote: > 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} Thanks. BTW, do you know if ConTeXt has either a built-in way or at least a not too klunky way of doing an outline like: 1.0 Foo 1.1 Foobar 1.2 Foobaz 2.0 Misc 2.1 Miscellaneous 2.2 Miscreant 2.2.1 Fancy term for criminal 2.2.2 Sounds funny So far, the only way I can think of to do it is to define an elaborate macro to put in the argument to startitemize/stopitemize's "\sym" (which is why I asked how to do an optional argument). ===== ----I am a fool for Christ. Mostly I am a fool.---- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/