Table of Contents by Title

Hello everyone!

For KDP, you have to include a table of contents directly after the title.
If I click “Create HTML Table of Contents” when converting the ebook, it is created somewhere, but not after the title.
How should I do this?
Best wishes from Germany!

Leon

Hi.
An easy way is to move it where you want it afterwards in Sigil. (Free app, simple to use.)

2 Likes

I’ll take a look.
It doesn’t look difficult for you.
Thank you so much for your efforts!!

1 Like

Very intuitive to use for basic operations.

You’ll have to also tweak the other toc, the one that shows in the ereader’s interface, as this second one refers to the xhtml one that you’ll move.
It’s been a while since last time I’ve done this, I am refreshing up. (…)

. . . . . .
After you’ll have moved your toc after your title page like I’ve shown in my screenshots (except that in my case I moved it all the way to the top, for no good reason),
tweak the other toc using this :


Select your xhtml toc in this second toc, and move it up to the same spot you just did, in this new panel using this time the arrows.
image

Don’t move it left or right, though. Only up or down.

If my memory serves, that should be it.

Save, quit Sigil, and then test your ebook in your ereader.
Or this Kindle ereader desktop emulator:

2 Likes

In Scrivener, put the <$toc> placeholder in an otherwise empty document, and put that document wherever you want in the draft.

See Section 22.3 in the manual for more information about ebook ToCs.

2 Likes

Wasn’t there a bug with that ?

I remember messing around like monkeys about 2 years ago (if not more) with some other user and we couldn’t get the thing going. Then Amber said there was a bug.
I think it was this function. But I’m not sure.
It kept messing up the toc’s title from the compile panel or something, and the toc would fail.
Something about matching the toc’s title to the binder host-document’s in which <$toc> was.
Despite our efforts, the title kept refusing to match/connect. (Windows version)
??

1 Like

Mac OS, or Windows? I’m not aware of a Mac OS bug matching that description.

1 Like

Windows.
But it was a long time ago. – It could be something else. But I clearly remember that the bug was with this:

I’ll test it for my personal satisfaction tomorrow.

. . . . . . . . .

1 Like

Anyways, @cvst1lleo :
Do as kewms instructed, since you are on Mac.
It is a much simpler solution.

And thank you, Kewms, I had completely forgotten about it.
(I’ll report bug/no bug tomorrow.)

. . . . . . . . . . . . . . . . . . . . . . . .

[EDIT] I think I remember what the bug was.
It kept double titling the toc, and the title was stuck on “Contents”
So even if we titled the toc “Whatever” in the compile panel, it came out as

And the bug was with what I circled in my previous screenshot.

1 Like

@kewms → [LH5052]
. . . . . . . . . . . .

1 Like