![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2013
Device: none
|
TOC page breaks problem
Hi all,
I'm using this .chapter { page-break-before: always; page-break-after: avoid; } to make sure new chapters always start at the top of the screen, but the problem is this style also places the TOC entries on individual pages as well. How can I have chapters start on a new page, but keep the TOC as a list? I've exported from indesign using the kindle mobi exporter and have tagged chapter titles with a TOC style. I'm no html or css expert and have been copying and pasting for the most part and using Calibre to 'tweak' my files. Thanks! |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 343
Karma: 1510042
Join Date: Oct 2012
Device: Kindle Paperwhite
|
You can try to use <mbp:pagebreak /> before the title of each chapter while not using the code you posted for the TOC. Put my code in the body of contents, not the TOC.
Last edited by Julius Caesar; 10-05-2013 at 11:00 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2013
Device: none
|
I did try that as well actually, and found that the TOC was still being affected by the page breaks tag. It seems that no matter how I use the page break it breaks the TOC as well.
Confused. Any thoughts on other ways to set up the TOC? Is it best to use a 'book' in indesign that has separate documents for each chapter or section? Thanks! |
![]() |
![]() |
![]() |
#4 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,687
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Also Sigil can automatically generate an HTML TOC for you without these problems, provided your book has an .NCX toc. (If it doesn't, you can generate one with Sigil, too, if you used heading tags (h1..h6) for headings.) |
||
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Oct 2013
Device: none
|
![]()
Thanks for your help.
It seems the issue was due to how the kindle plug-in for indesign was tagging the TOC (I suspect), so I did as you suggested and opened an ePub in Sigil for editing, but not before exporting from indesign without a TOC this time. Then in Sigil I just went through and assigned h1 to all the chapter headers, put it back in Calibre and converted to Mobi, making sure that the TOC was set up to use the h1 tags. And all is well. My work flow for this has been ridiculous. Multiple pieces of software, converting back and forth, and then testing on the kindle app on a phone. Silly amount of steps. But anyway, it works now. Thanks again! |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Adding Page Breaks in TOC! | jackibar | Sigil | 16 | 10-24-2012 01:20 PM |
Converting to PDF help? Bad page breaks and no TOC produced. | Jokerfwb | Conversion | 6 | 07-24-2012 10:36 PM |
Problem with Page Breaks and Structure Detection | cjallan | Conversion | 22 | 07-11-2011 05:15 PM |
RTF conversion problem - no page breaks | jhsrennie | Conversion | 7 | 06-16-2011 01:29 PM |
Problem with --page-breaks-before | pepak | Calibre | 5 | 10-24-2009 04:50 PM |