View Single Post
Old 03-30-2017, 02:29 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by GrannyGrump View Post
Is there any way to force the Sigil TOC auto-generation to use *all* the existing ID tags?
It might be possible to write a Python script for that, however, IIRC, you're using an older Sigil version.

AFAIK, the only way to outsmart Sigil is to insert a dummy h1 heading with a sigil_not_in_toc class after the body tag. I.e., you'd have to do the following:

1. Replace all <body> tags with <body><h1 id="dummy" class="sigil_not_in_toc">dummy</h1>.

2. Generate the TOC.

3. Delete all <h1 id="dummy" class="sigil_not_in_toc">dummy</h1> headings.

Last edited by Doitsu; 03-30-2017 at 02:49 AM.
Doitsu is offline   Reply With Quote