View Single Post
Old 07-28-2020, 09:55 AM   #1
Lafisrap
Junior Member
Lafisrap began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
How can I format the TOC in a PDF created by ebook-convert cli command?

I convert an md file to PDF using ebook-convert. At the end of the text a TOC is created from the <H1> and <H2> tags in the document. This is because I use

--level1--toc '//h:h1' and
--level2--toc '//h:h2'

command line options. How can I format the TOC using the css file I link in by

--extra-css <... css file>

?

How are the tag names of the table of content in the PDF?
Lafisrap is offline   Reply With Quote