View Single Post
Old 06-06-2019, 09:32 AM   #14
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Quote:
Originally Posted by davidfor View Post
@VirgoGirl: Do the missing headings have the same title as other headings? Somewhere along the way the two generate from headings options was changed to only create one entry for identical headings at the same level and nested under the same parent.

So, if the headings looked like:

Code:
<h1>Chapter 1</h1>
     <h2>Sub Chapter a</h2>
          <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
          <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
          <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
     <h2>Sub Chapter b</h2>
           <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
          <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
          <h3>Bert's POV</h3>
          <h3>Ernies's POV</h3>
     <h2>Sub Chapter c</h2>
     <h2>Sub Chapter d</h2>
Using either of the Generate ToC from headings options will produce:
Code:
Chapter 1
     Sub Chapter a
          Bert's POV
          Ernies's POV
     Sub Chapter b
          Bert's POV
          Ernies's POV
     Sub Chapter c
     Sub Chapter d
There has been some discussion on this. The change was made for a reason, but I don't remember no why. The change seemed to break the ToC in a few books I have, but when I checked them, the nesting was usually wrong. I think the only ones left were something like the above where I wasn't sure that the lowest level should appear in the ToC. For these, I used generate from xpath option. This doesn't eliminate duplicate titles.
YES! That's EXACTLY what happened, although it was much more severe - if the anthology had headings with the same titles they didn't show up at all!

I don't understand the reason to remove the feature - it worked fine, I didn't have an issue with duplicate headings that I didn't want.
VirgoGirl is offline   Reply With Quote