View Single Post
Old 07-27-2009, 02:42 PM   #11
Kostas
Still wondering why
Kostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-booksKostas has learned how to read e-books
 
Kostas's Avatar
 
Posts: 253
Karma: 800
Join Date: Jun 2009
Location: Athens, Greece
Device: PRS 505, (BlackBerry Bold ?)
Well, I use a method for dummies like me. I'm sure that people with basic html knowledge can provide better solutions...

Anyway, I give you my experience with MS word, though I think that with openoffice things should be pretty much the same.

1) The easiest way to build a TOC in word is to use predefined heading styles for your chapter titles, namely "heading1", "heading2".
If you don't like the way these styles look, you can always modify them.

Having, done so, word can automatically generate a TOC in the place you want. Go:
Insert > Reference > Index and Tables > 2nd Tab (Table of Contents)
There you have to untick the "Show page numbers" box and have "Use hyperlinks..." ticked.
Click OK!
Done!

If you're using other styles for your headings click the options button to indicate on which styles should the TOC be built upon.

2) 2nd dummy method (manual).
For each entry you want in your TOC, select the heading text you want to appear in your TOC (chapter title) and click: insert > Bookmark (giving names to your bookmarks , i.e. b1, b2, ...).
Go where you want your TOC to appear:
Insert > Hyperlink > Place in this document
and select your bookmarks.

When you have finished, my personal advice is to save your file with the "save as html, filtered" option. It produces simpler html code. Otherwise, Word adds strange MS proprietary code to the html source that calibre doesn't seem to like.
Kostas is offline   Reply With Quote