OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: re: Controlling the pagebreak in epub output

you can do this with CSS instead of needing to do it on the docbook side.

See  the specification under the "Paged Media" section here

So you need a declaration like this: h3 {page-break-before: always;}

Note: I'm pretty sure this is supported on Nook and ipad, but
mobipocket doesn't support that.

Instead, Mobipocket has a custom tag <mbp: pagebreak />  which will
automatically add a page break.  So you will need to figure out a way
to hard code it into the epub in docbook which will be processed  into

By the way, with rare exceptions, I try to avoid using mandatory page
breaks on e-ink devices. I think e-ink owners are a little more
tolerant of cramped pages  in order to maximize  use of space.


Subject: Controlling the pagebreak in epub output

    From: Lars Vogel <lars.vogel@googlemail.com>
    To: DocBook Apps <docbook-apps@lists.oasis-open.org>
    Date: Wed, 26 Oct 2011 16:21:06 +0200


is it possible to control the page break in epub output as for example for pdf?

For example I use the following to avoid a pagebreak for sections in
my preface chapter for pdf:

<xsl:attribute-set name="section.level1.properties">
<xsl:attribute name="break-after">
      <xsl:when test="ancestor::preface/@role = 'preface'">auto</xsl:when>

If I put this into my customizing layer for epub it appears to have no

Best regards, Lars

http://www.vogella.de - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter

Robert Nagle
6121 Winsome Ln #56C, Houston TX 77057-5581
(H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]