From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4305 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: Thu, 08 Mar 2001 18:01:44 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010308180144.00b358a0@server-1> References: <3.0.6.32.20010308085809.00984180@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 1035394982 24579 80.91.224.250 (23 Oct 2002 17:43:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:43:02 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: James Ramsey In-Reply-To: <20010308162308.66798.qmail@web10702.mail.yahoo.com> Xref: main.gmane.org gmane.comp.tex.context:4305 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4305 At 08:23 AM 3/8/01 -0800, you wrote: > >--- Hans Hagen wrote: >> At 10:37 AM 3/7/01 -0800, James Ramsey wrote: >> >> >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). >> >> Is this an automatically generated list (toc) or a >> manually composed one >> (in which case enumerations can handle it) ? > >It's manual. How would enumerations be able to handle >it? They can do the numbering, I know (at least four >levels deep) but what about the indenting? \defineenumeration[LikeThis][location=left,before=,after=,text=] \setupenumerations[LikeThis] [width=2em] \setupenumerations[subLikeThis] [width=3em,margin=2em] \setupenumerations[subsubLikeThis][width=4em,margin=5em] \startbuffer \startLikeThis some text \stopLikeThis \startsubLikeThis some more text \stopsubLikeThis \startsubLikeThis some more text \stopsubLikeThis \startsubLikeThis some more text \stopsubLikeThis \startsubsubLikeThis some more text \stopsubLikeThis \startsubsubLikeThis some more text \stopsubLikeThis \startsubsubLikeThis some more text \stopsubLikeThis \startsubLikeThis some more text \stopsubLikeThis \startsubLikeThis some more text \stopsubLikeThis \startsubLikeThis some more text \stopsubLikeThis \stopbuffer \dorecurse{3}{\getbuffer} 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 -------------------------------------------------------------------------