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, 04: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, 08: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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
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, 03: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, 11:00 AM   #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,196
Karma: 1281258
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, 11:43 AM   #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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
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, 11:56 AM   #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,944
Karma: 2077653593
Join Date: May 2009
Location: Vancouver, BC
Device: Kobo Libra 2, Nook Glowlight
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, 02: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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
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 18 02-05-2020 08:14 PM
Chapter break crutledge Sigil 2 08-19-2010 07:37 AM
Double chapter break when removing first image tochill Calibre 0 03-04-2010 07:41 PM
html2epub: chapter splitting on more than 1 heading level Portnull Calibre 1 06-25-2009 09:17 AM
Controlling chapter heading sizes? Djehuty Calibre 3 04-27-2009 08:02 PM


All times are GMT -4. The time now is 06:14 AM.


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