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

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

Hi Dennis,

thanks for the hint!

>>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>

It works if I add the corresponding </hN> end tags after %body.

All the best,



Stephan Petersen                           sp@gtt.lth.rwth-aachen.de

 >-=-=-=- Visit GTT's Technical Thermochemistry Web Page at =-=-=-=-<
 >-=-=-=-      http://gttserv.lth.rwth-aachen.de/gtt/       =-=-=-=-<

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