07-06-2008, 02:04 PM | #1 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Table of Contents
Has anyone figured out how to auto create a TOC? I do know how to make one manually, but would much prefer to automate the process.
I'm trying to make omnibus collections of all the short stories I have by each author. Since I bought the ebooks from Fictionwise, I can extract high quality HTML files from MSReader LIT. I'd really appreciate some help. Thanks. |
07-06-2008, 05:10 PM | #2 |
Wizard
Posts: 2,366
Karma: 12000
Join Date: Jan 2008
Location: Texas, USA
Device: Kindle; Sony PRS 505; Blackberry 8700C
|
I took an HTML file from Project Gutenberg -- as is -- and imported it into MobiPocket Creator. This file had the normal HTML Header-1 {h1} tag used for each chapter title.
I clicked on the "Table of Contents" menu entry in MPC and then the "Add a Table of Contents" button. Entered "h1" into the first field in the wizard and clicked the "Update" button. It looked like this: And then I clicked the "Build" icon. This is what showed up in MobiPocket Reader: And the TOC entries all work. So, the secret is to use a specific HTML tag -- or tag attribute -- at each location in the book that you would like a TOC entry for. Last edited by Elsi; 07-06-2008 at 05:13 PM. |
Advert | |
|
07-06-2008, 05:32 PM | #3 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Thank you. Before I had been using the tag "title" (which is in the file header, not body). It was making the list, but not any links. Now I know why.
Thank you. |
07-06-2008, 11:13 PM | #4 |
Connoisseur
Posts: 63
Karma: 65091
Join Date: Jul 2008
Location: Sydney, Australia
Device: Kindle Paperwhite WiFi
|
I haven't tried this, but might Creator also take style info from a Word document with proper headings as well and build a TOC that way, in much the same fashion?
|
07-07-2008, 01:05 AM | #5 |
Wizard
Posts: 2,366
Karma: 12000
Join Date: Jan 2008
Location: Texas, USA
Device: Kindle; Sony PRS 505; Blackberry 8700C
|
|
Advert | |
|
07-10-2008, 05:55 AM | #6 | |
Opinionated [but right]
Posts: 276
Karma: 1412
Join Date: Apr 2008
Location: UK
Device: Cybook Gen3, PRS 505, Kindle International, HTC Desire
|
Quote:
I use Word to put a bit formatting into poorly formatted html public domain books - simple stuff like chapters beginning on a new page. So if your aim is the final mobi format book probably no need to worry too much about the finer points of the HTML file. And yes, styling a para as, say, Heading 1 in Word attaches a tag (in this case h1) so you should be able to generate a TOC. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make Table of Contents? | banjobama | Calibre | 18 | 06-25-2011 08:13 AM |
Table of Contents | peterinnes | Sigil | 1 | 09-29-2010 03:03 AM |
Help with my Table of Contents | Skylinefranc | Calibre | 0 | 03-19-2010 12:55 AM |
How to: table of contents | wizzofoz | Sigil | 1 | 10-08-2009 08:22 AM |
only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 12:45 PM |