Tags:
create new tag
view all tags

Question

I'm unable to get the ExplicitNumberingPlugin working correctly with the TOC variable. I've read the syntax rules for this, but I don't get the correct anchors being rendered in the TOC, for example, if my source code looks like this :

%TOC%

---+ Chapter ##0. Introduction
---+ Chapter ##. Part One
---+ Chapter ##. Part Two
---+ Chapter ##. Part Three

The page appears to render OK, but the anchors generated in the TOC don't correspond to the anchors generated for the headings. This means you can no longer navigate the page via the TOC. The heading anchors look correct, but the TOC anchors look wrong (to me). If I view the page source, the anchors look like this (topic name is Test) :

anchor in TOC anchor in heading
Test#Chapter_0_Introduction Chapter_1_Introduction
Test#Chapter_Part_One Chapter_2_Part_One
Test#Chapter_Part_Two Chapter_3_Part_Two
Test#Chapter_Part_Three Chapter_4_Part_Three

Sorry if I've misread something or made some other mistake, but any help on this would be appreciated.

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, EplicitNumberingPlugin, AutoLinkDDTSPlugin, ActionTrackerPlugin, TreePlugin, RenderListPlugin, GnuSkinPlugin, TreePlugin
Server OS: Solaris 5.8
Web server: Apache 1.3.9
Perl version: 5.8.0
Client OS: Apache 1.3.9
Web Browser: Netscape 7.0

-- SteveJonesST - 20 Jan 2004

Answer

I've tried this myself and it definitely does not work. One thing the docs indicate is that you need to make sure you label the numbering group with a name - yet the example does not show this. Your example above should read as follows:

%TOC%

---+ Chapter ##a#0. Introduction
---+ Chapter ##a#. Part One
---+ Chapter ##a#. Part Two
---+ Chapter ##a#. Part Three

Adding the named region adds a name to the internal reference tag and it does. What is missing is the generated numeration in the generated anchor.

I would go ahead and re-post this to the ExplicitNumberingPluginDev as a bug and see if it cannot be chased down.

-- SteveRJones - 21 Jan 2004

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-01-21 - SteveRJones
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.