Quote:
Originally Posted by Skydog
Unfortunately, it did not work. The result was one entry in the TOC, (Untitled).
|
It's because the content of all your breaking paragraphs is always "*".
You need to create some numeration with a search using a regex-function, put it in an hidden text, as this, for exemple:
<p class="PAGE-BREAK">*<span style="display:none"> Chapter 2</span></p>
[...]
<p class="CN" id="toc_2">*<span style="display:none"> Cn 6</span></p>
or better, put your "display:none" in a class in the CSS and
<p class="PAGE-BREAK">*<span class="toc_text"> Chapter 2</span></p>
[...]
<p class="CN" id="toc_2">*<span class="toc_text"> Cn 6</span></p>
The regex-function can use the parameter "number" to numerate your entries
__________
Edit: oops, I haven't seen Theducks' answer...