View Single Post
Old 02-02-2023, 12:46 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,363
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
Just use a heading tag for your subchapter header and add in an ID so you can link to it from the ToC.

As Jon mentioned, the heading tags are there to denote to what "level" a section of text belongs. You can use CSS to style the headers however you wish. You can either change the tags manually or, as Diap mentioned, use the editor to change them. As long as you have the heading tag, and any IDs, set properly then Sigil will put all the proper links in your ToC for you...

Also, if you want a subsection to begin on it's own page, then just put it in it's own html sheet. You won't need an ID to reference that; you just put the sheet name in any link. (eg <a href="Chapter34.html">) If you want the subsection to follow on the same page, then add the ID. (eg <h4 id="mylink"> <a href="Chapter34.html#mylink">)

Here is an example of using the heading tags to indicate different levels:


Code:
<h1>Cover page </h1>
  <h2> Front matter </h2>
  <h2> Title page </h2>
    <h3> Prologue </h3>
    <h3> Chapter 1 </h3>
      <h4> Sub-Chapter 1-1 </h4>
      <h4> Sub-Chapter 1-2 </h4>
    <h3> Chapter 2 </h3>
      <h4> Sub-Chapter 2-1 </h4>
      <h4> Sub-Chapter 2-2 </h4>
    <h3> Chapter 3 </h3>
      <h4> Sub-Chapter 3-1 </h4>
      <h4> Sub-Chapter 3-2 </h4>
    <h3> Epilogue </h3>
  <h2> About the Author </h2>
  <h2> Also By the Author </h2>
  <h2> Copyright </h2>
<h1> Back cover (if used) </h1>

Last edited by Turtle91; 02-02-2023 at 12:49 PM.
Turtle91 is offline   Reply With Quote