View Single Post
Old 02-22-2011, 04:13 PM   #3
Dillinquent
eBook pro
Dillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toys
 
Dillinquent's Avatar
 
Posts: 71
Karma: 5634
Join Date: Jan 2011
Location: Hertford, UK
Device: PC, iPad, Kindle, Kindle Fire, Galaxy Ace
1. Use the heading (<h1>, <h2>,...etc.) tags for your chapter headings. In Sigil you just highlight the text you want as your chapter heading and select the required heading from the dropdown box.
2. Go to Tools/TOC editor and you will see your headings as TOC entries. Deselect any entries you don't want showing in the TOC.

* The TOC compiler is hierarchical, so an <h2> won't show if there's not an <h1> before it, for example.
The TOC listing can be different to the heading if you use a title attribute in the <h> tag.
Quote from Sigil FAQ:-
Quote:
You can put anything between the heading tags to make Sigil link to it in the NCX (the epub file responsible for the TOC), and set the "title" attribute on the <h#> element to get the text.

So it would look like this:

<h1 title="CHAPTER 1"><img ... ></h1>

The TOC would link to that heading element (and by extension, the images inside it) and the TOC entry would say "CHAPTER 1".
Dillinquent is offline   Reply With Quote