Quote:
Originally Posted by wellesradio
I’d like to break up the chapters into their own separate HTML files using the TOC as a guide. I’d like to be able to do it automatically rather than manually.
|
In Sigil, select
Tools > Table of Contents > Generate Table of Contents or simply press
CTRL+T.
If you see all chapter titles, you can simply insert a Sigil split marker tag before each chapter heading tag. For example, if all chapter headings are
<h1> tags, you'd use:
Find:<h1
Replace:<hr class="sigil_split_marker" /><h1
and then select
Edit > Split at markers followed by
Tools > Table of Contents > Generate Table of Contents.
If the TOC is empty when you select
Tools > Table of Contents > Generate Table of Contents, you can use KevinH's
TOCSaver plugin to change paragraph tags to heading tags or insert hidden heading tags.