[LH5052] Auto-generated table of contents has duplicate title

Oops! Thanks for pointing that out. Well it should help the OP out if they still need it—though I do remain curious how the auto-ToC generator is inserting a plain-text “part” like that.

As for this problem, it does appear to be a bug to me. If the compile Format is not set up for ebooks, like Default, then it will lack a style definition for headings, as we discussed earlier in the HTML Elements pane. If that is left without a setting, then for some odd reason we get this plain paragraph inserted into the output. I can think of no reason for why it would do that.

So to fix it, you’d either want to set up a heading style, or start from the built-in Ebook compile format, which is generally going to be the best option anyway. To fix it:

  1. Double-click the format you are using to edit it, and confirm duplication if necessary.
  2. Go into the Styles pane, and click the + button in the top right area. Add anything here, probably just a “Heading 1”.
  3. In the HTML Elements pane, set the Page title style to this new style.

And now it should work.