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