I'm using kaobook to produce a book that I'm publishing on LeanPub. LeanPub provides the option to upload an HTML-formatted table of contents.
Is there any way I can output just the table of contents in HTML format from my .tex
files?
I know that with some effort, I can output the entire document to HTML, then extract just the index, but I would like to make this an automated process, for easy reproducibility.
Is this even theoretically possible, considering that the ToC is built from metadata for the entire document?
sed
or even Notepad++