Forum How do I...?

How do you force a chapter to always begin on a right page?

walterdavis
I would like to make a facing-pages layout in Prince, and always ensure that a chapter begins on a right page. Naturally, this may result in a blank or nearly-empty left page facing it, but that's actually what I would like. Is there a way to specify that a <div class="chapter"> will always begin on a right page?

Thanks,

Walter
oliof
Short Answer: Yes, it can be done.

Long Answer:

 h1 {
    prince-page-group: start ;
    page-break-before: right ;
    float: top ; 
    clear: bottom ;
    text-align: center ;
  }


Should give you page breaks to start a new section on the next right side for every h1 used.[/code]
mikeday
Keep it simple! :D
div.chapter { page-break-before: right }
oliof
Whoopsie. Mine is more convoluted because it gives you page spanning titles on multicolumn text…