View Single Post
Old 07-25-2023, 06:00 PM   #18
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,716
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BeckyEbook View Post
@DiapDealer.

Surely this is the situation:

Code:
  <h1>Chapter 1</h1>
  <p>Blah, blah, blah</p>
  <h2>Subchapter A</h2>
  <p>Blah, blah, blah</p>
  <h2>Subchapter B</h2>
  <p>Blah, blah, blah</p>
  <h2>Subchapter C</h2>
  <p>Blah, blah, blah</p>
After creating TOC/NCX:

Code:
  <h1>Chapter 1</h1>
  <p>Blah, blah, blah</p>
  <h2 id="sigil_toc_id_1">Subchapter A</h2>
  <p>Blah, blah, blah</p>
  <h2 id="sigil_toc_id_2">Subchapter B</h2>
  <p>Blah, blah, blah</p>
  <h2 id="sigil_toc_id_3">Subchapter C</h2>
  <p>Blah, blah, blah</p>
Identifiers are added only to those headers that are in the same file. And that's a very good thing.
Yes. That makes sense. I read his post wrong, I guess. If there's only one header, there's no need for an id. The toc goes to the top of the file in that case.
DiapDealer is offline   Reply With Quote