Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2010, 05:01 PM   #1
tkirke
Junior Member
tkirke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2008
Device: Sony
How to avoid page break after heading/chapter

Hi,
I have a EPUB book with lots of Items that I'd like in the table of contents but I don't want a page break before or after each items. How do I do that?
Thanks
tkirke is offline   Reply With Quote
Old 01-17-2010, 09:16 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,781
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by tkirke View Post
Hi,
I have a EPUB book with lots of Items that I'd like in the table of contents but I don't want a page break before or after each items. How do I do that?
Thanks
EPUB does not automatically have page breaks anywhere and certainly not related to table of contents. However, some tools may assume H1 and H2 headers want page breaks. Try H3 headers. What tool are you using to create the ePUB? You may want to ask the tool vendor.

Dale
DaleDe is offline   Reply With Quote
Old 01-22-2010, 04:30 AM   #3
tkirke
Junior Member
tkirke began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2008
Device: Sony
Quote:
Originally Posted by DaleDe View Post
EPUB does not automatically have page breaks anywhere and certainly not related to table of contents. However, some tools may assume H1 and H2 headers want page breaks. Try H3 headers. What tool are you using to create the ePUB? You may want to ask the tool vendor.

Dale
Thanks. I'll try H3. I'm using a home-made tool to create the ePUB. So if it's not inherent in Epub it's either the way the Table of contents is created or what Adobe Digital Editions/EPUBReader do with it. Perhaps it's the fact that each table of contents items is the has a link to a different xhtml file? I tried setting page-break-after and page-break-before to avoid in the css for body, but it didn't do anything.
tkirke is offline   Reply With Quote
Old 01-22-2010, 12:00 PM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by tkirke View Post
Perhaps it's the fact that each table of contents items is the has a link to a different xhtml file?
Yes, that will force a page-break as the reader loads the file. If you don't want page-breaks then the next chapter needs to be part of the same file, give it a fragment identifier (<h2 id="chapter x">) and you can still reference it from the ToC.

Since MobileADE require each file to be under 300k when uncompressed, you'll need to have separate files (with inevitable page breaks) at some point if your book is long.
charleski is offline   Reply With Quote
Old 01-22-2010, 12:43 PM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,781
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by charleski View Post
Yes, that will force a page-break as the reader loads the file. If you don't want page-breaks then the next chapter needs to be part of the same file, give it a fragment identifier (<h2 id="chapter x">) and you can still reference it from the ToC.

Since MobileADE require each file to be under 300k when uncompressed, you'll need to have separate files (with inevitable page breaks) at some point if your book is long.
I believe only Sony readers still have the 300K limit, since they have not updated to the latest version.

Dale
DaleDe is offline   Reply With Quote
Old 01-22-2010, 12:56 PM   #6
afv011
Captain Penguin
afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.afv011 ought to be getting tired of karma fortunes by now.
 
afv011's Avatar
 
Posts: 2,854
Karma: 2076640493
Join Date: May 2009
Location: Vancouver, BC
Device: nook*, nexus 10
Quote:
Originally Posted by tkirke View Post
Hi,
I have a EPUB book with lots of Items that I'd like in the table of contents but I don't want a page break before or after each items. How do I do that?
Thanks
Check your CSS, you may have something like this:

h1 {page-break-before:always}
afv011 is offline   Reply With Quote
Old 01-22-2010, 03:12 PM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by DaleDe View Post
I believe only Sony readers still have the 300K limit, since they have not updated to the latest version.
Are you sure the limitation is in the software? It could be hardware related.
Valloric is offline   Reply With Quote
Reply

Tags
epub, page-break;css

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Sigil and chapter titles (Heading 2) AprilHare Sigil 11 11-15-2011 10:49 AM
Chapter break crutledge Sigil 2 08-19-2010 08:37 AM
Double chapter break when removing first image tochill Calibre 0 03-04-2010 08:41 PM
html2epub: chapter splitting on more than 1 heading level Portnull Calibre 1 06-25-2009 10:17 AM
Controlling chapter heading sizes? Djehuty Calibre 3 04-27-2009 09:02 PM


All times are GMT -4. The time now is 10:38 PM.


MobileRead.com is a privately owned, operated and funded community.