08-08-2009, 01:22 PM | #1 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
start a new page in an epub book ?
In a normal book, at the end of the chapter, the remaining page usually is empty. The next chapter starts on the next page. Can this also be done on ebooks (especially in epub files) ?
Right now, when I scan a book or convert an ebook, I save it as html files and convert it to epub. So is there an html code that tells the ebook reader to continue on the next page ? The simplier the better. You know like when you want to start a new paragraph, you use the "br" command. Is there something similar for an entire page ? Thanks in advance. |
08-08-2009, 01:44 PM | #2 | |
What the Dog Saw
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
Quote:
<br style="page-break-after:always"> |
|
Advert | |
|
08-09-2009, 04:47 AM | #3 |
Fanatic
Posts: 549
Karma: 2928497
Join Date: Mar 2008
Device: Clara 2E & Sage
|
I don't know what device you are reading on, but a proper epub renderer should start a new "page" (screen) at chapter headings. So, you can use normal <h1>, <h2>, etc. tags. I would suggest not forcing things with <br/> tags. That may cause problems and is not semantic.
|
08-09-2009, 05:33 AM | #4 | |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Usually ePUB creators split the files at chapter headings, but if they don't, the renderer should not add a spurious pagebreak there. |
|
08-09-2009, 06:34 AM | #5 | |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
Quote:
So far yekim was correct, <br style="page-break-after:always"> works. It starts a new page at the beginning of the new chapter. The only strange thing so far is: The book starts with <h1> author name and the next line says <h2> book name. Even though the page-break-after command comes later, the author name and the book name are on 2 different pages. So the ebook right now starts with the author name and the rest of the page is empty ... Also, I have to check what is if there are pictures included. I don't want to start a new page just because of a picture. But right now I have no time to check. As for br commands: so far I always used <br/> to start a new line (not page) is that wrong ? Should I use </p> instead ? |
|
Advert | |
|
08-09-2009, 11:39 AM | #6 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
<br/> is for line breaks. If you want to signify a paragraph, the correct tag to use is <p></p>. |
|
08-10-2009, 05:11 AM | #7 | |
frumious Bandersnatch
Posts: 7,533
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
|
|
08-11-2009, 12:22 AM | #8 | |
Grand Sorcerer
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:
Dale |
|
08-11-2009, 04:29 AM | #9 |
Addict
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
|
thanks so far, I finally managed to solve the problem.
The new page between author and book name only happened when I used <br style="page-break-after:always">. And just to add: the author was h1, the bookname was h3, while the chapter names are in h2 So I looked at Calibre and saw the part with "pagebreak before". Since I use h2 only on chapters, I told Calibre to do a pagebreak before h2 .... and now everything looks fine. |
08-18-2009, 07:11 PM | #10 | ||
The one and only
Posts: 3,302
Karma: 535819
Join Date: Oct 2008
Location: Berlin, Germany
Device: yup!
|
You may also use Sigil as editor for non-DRM epub files and include the page breaks easily into existing epubs. Never tried it with html, but afaik it should work, too.
Quote:
Check the source code. It's very likely you'll find a "style="page-break-after:always" between the two lines. Quote:
Last edited by K-Thom; 08-18-2009 at 07:17 PM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub Page Numbering Using Page-map | Dark123 | Calibre | 2 | 06-16-2010 07:15 AM |
Bug? "Insert metadata as page at start of book" doesnt encode Comments field properly | rollercoaster | Calibre | 2 | 04-24-2010 10:40 PM |
Insert metadata as page at start of book | economix | Calibre | 2 | 04-17-2010 01:20 AM |
EPUB=>Mobi: Start/open at cover page - how to? | Skydog | Calibre | 6 | 10-16-2009 09:43 PM |
Sony to start selling epub? | MerLock | Sony Reader | 3 | 08-17-2009 03:45 PM |