Show chapters in TOC in epub3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Show chapters in TOC in epub3

thjanssen
Hi,

the TOC in epub3 only shows the section titles. Is there a way to show the section and chapter titles?

Thanks,
Thorben
Reply | Threaded
Open this post in threaded view
|

Re: Show chapters in TOC in epub3

mojavelinux
Administrator
Thorben,

Yes, I believe that we can add this behavior. The best thing to do is honor the toclevels (i.e., toc depth) attribute. I just need to see how Kindle deals with the extra levels (since it has a unique way of displaying the TOC).

Before we continue, I want to correct the terminology being used here. The entries currently shown in the TOC are the chapter titles. Each chapter is packaged as a separate HTML file in the archive. The TOC is essentially giving a list of these chapter files. What you're asking to be added to the TOC are the section titles (or headings).

We'll call what is shown right now as toclevels=1. If you want the top-level sections in a chapter to show, you'll set toclevels=2, and so forth.


Cheers,

-Dan

On Mon, Mar 20, 2017 at 10:57 PM, thjanssen [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

the TOC in epub3 only shows the section titles. Is there a way to show the section and chapter titles?

Thanks,
Thorben


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Show-chapters-in-TOC-in-epub3-tp5398.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux