[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Telling <toc> to ignore <Hn> entries?

On Fri, Mar 22, 2002 at 04:26:23PM +0100, Stephan Petersen wrote:
> Hi there,
> I would like to use <toc>, but only by specifically adding <toc_Hn>
> entries to the table. Is there a way to tell <toc> to ignore regular 
> <Hn> entries? That would be a useful option for <toc>.
> I had a look at toc.wml, but I have no idea how to modify that code :-)

The simplest solution is to redefine <hN>:
  #use wml::std::toc
  <define-tag h1 endtag=required><h1* %attributes>%body</define-tag>
  <define-tag h2 endtag=required><h2* %attributes>%body</define-tag>

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com