05-03-2009, 06:29 AM | #1 |
Wizard
Posts: 3,490
Karma: 5239563
Join Date: Jan 2008
Location: Denmark
Device: Kindle 3|iPad air|iPhone 4S
|
Using Mobipocket Creator; link to table of contents
Is it possible to add a link at, say, the end of a chapter, that links back to table of contents? I'm creating the book using one html file per chapter, and would like to add a link back to the table of contents at the end of each chapter. I've been messing around with 'guides' but I'm not really sure what it is I'm doing.
Is this something that Mobipocket Creator can handle automatically or should I add some markup to the files? |
05-03-2009, 08:30 AM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I don't think I have ever seen explicit links at the end of chapters back to the TOC in a MOBI ebook. The reason for this is that MobiPocket Reader has a way to bring up the TOC at any point in the ebook. In the Windows version, select Contents -> Table of Contents. So the important step is to make sure your TOC is included in the guide items. In your case the TOC is presumably a separate HTML file. The current favorite approach seems to be to not include the TOC in the body of the reading flow at all (i.e. you must use the MOBI Reader to get to the TOC), or you can just link to the TOC at the start of the ebook (see the attached screenshot), or you can include the entire TOC near the start of the ebook (as well as in the guide). Badly formatted MOBIs either have no TOC, or only an in-line TOC (no guide item).
If you want to link back to the TOC, just include an explicit link in the HTML. Last edited by wallcraft; 05-03-2009 at 08:32 AM. |
Advert | |
|
05-03-2009, 09:51 AM | #3 |
Wizard
Posts: 3,490
Karma: 5239563
Join Date: Jan 2008
Location: Denmark
Device: Kindle 3|iPad air|iPhone 4S
|
Thank you I'll try to add an explicit link.
|
05-16-2011, 10:59 AM | #4 |
Member
Posts: 12
Karma: 10
Join Date: May 2011
Device: Kindle
|
Re: "If you want to link back to the TOC, just include an explicit link in the HTML. "
I'm trying to do the same thing. Could you provide the code that would be used for the link? I tried using "TOC" as the target in the tag, but that didn't work. I.e., <center><a href="#toc">Table of Contents</a><center> Thanks, Bill |
05-16-2011, 12:29 PM | #5 |
Wizard
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
I think that should be "<a name="toc">Table of Contents</a>, then elsewhere in the file, "<a href="#toc">Jump to TOC</a> should take you there.
|
Advert | |
|
05-16-2011, 01:29 PM | #6 |
Member
Posts: 12
Karma: 10
Join Date: May 2011
Device: Kindle
|
"I think that should be "<a name="toc">Table of Contents</a>, then elsewhere in the file, "<a href="#toc">Jump to TOC</a> should take you there."
Yes, I agree that under normal conditions, that's the way to do it. The problem for me is that Mobipocket Creator (MPC) creates the table of contents, rather than it being manually created in the html file. MPC does a great job of creating the TOC, so I'd rather not take over that job. So, my question is this: Is there a notation other than "toc" that can be used to point the link to? Or is that process not possible within the structure of MPC? The notation "toc" in <a href="#toc">Jump to TOC</a> doesn't work. (By the way, whether to have the label read "Jump to TOC" or just "Table of Contents" is a matter of preference; however, I like your notation better than mine because it's more explicit.) So, to conclude, does anyone know what language should be used instead of "toc" to go to a MPC-made TOC? Or can it be done at all? Bill |
05-16-2011, 01:37 PM | #7 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I don't think it can be done, unfortunately. You could always create a toc page manually; that's what I do with all my books.
|
05-16-2011, 01:57 PM | #8 |
Member
Posts: 12
Karma: 10
Join Date: May 2011
Device: Kindle
|
Well, it was just an idea--not something essential.
BB PS. I can always link it to the title page. Last edited by BSquared18; 05-16-2011 at 06:35 PM. |
05-17-2011, 04:31 AM | #9 | |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Code:
<a href="mbp_toc.html">Jump to TOC</a> In other words, I think it is not working quite simply because the method you're using presumes that the toc is a named element within the same html file, and it isn't; it's an altogether separate html file, and thus needs an external link to work within the ecosystem of the (packed) mobi. I've not tried this in specificity, because we gen our mobi's from epubs...but I use it occasionally w/MBPCreator on one-offs with other files, like copyright pages that are separate html files, within the Guide, and it works fine...I'd think this should work. HTH, Hitch |
|
05-17-2011, 10:27 AM | #10 |
Member
Posts: 12
Karma: 10
Join Date: May 2011
Device: Kindle
|
"I'd think this should work."
Thanks, Hitch. I tested it, and it works perfectly! Bill |
05-17-2011, 03:00 PM | #11 |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Lovely! Glad I could help. There was someone else on this board looking for the same thing...can't remember where I saw that post, though...
Hitch |
05-17-2011, 03:13 PM | #12 |
Member
Posts: 12
Karma: 10
Join Date: May 2011
Device: Kindle
|
That might have been me. I made a post on the same topic before seeing this thread.
BB |
05-20-2011, 02:59 AM | #13 |
A Thirsty Mind
Posts: 92
Karma: 2546
Join Date: May 2011
Location: Lubec, Maine
Device: Kindle Fire, iPad, iPhone
|
I'm really new with mobi and TOC. All my Chap headings are h1...so in the mobi "TOC Wizard"... I know I use h1 but what is the attribute and value? or do I leave it off. My Chapters in the html doc are wrapped <h1>Chapter #</h1>. I don't care about anything else for the TOC, just the h1 chapters. The Guide is beyond me right now. I'll save that for another post.
|
05-20-2011, 04:12 AM | #14 |
Bookmaker & Cat Slave
Posts: 11,468
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Just put h1 in there, nothing else. No brackets, no attributes...just the h1 (or whatever) tag.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Sitemap Creator and Tables of Contents | brewt | Workshop | 0 | 12-18-2007 01:22 AM |
Mobipocket Table of Contents | astra | iRex | 7 | 11-08-2007 03:11 PM |