NR 4.1.6, \paper variable for page breaking
http://lilypond.org/doc/v2.15/Documentation/notation/other-_005cpaper-variables#_005cpaper-variables-for-page-breaking

I'd like to force the add of a blank page in case the number of pages in a book is odd.
I guess I should use blank-last-page-force.

I had a look at ly/paper-defaults-init.ly to see the default values and I see that penalty values are numbers. Default value of blank-last-page-force is 0, so I guess that as I increase the number it's more likely to get the blank page.

But I can't make it working.
See attached minimal example: what's wrong?


I'm CCing the bug squad because there might be a doc issue here, since I couldn't found any explanation of penalty values in NR. I googled this string:
penalty site:http://lilypond.org/doc/v2.15/Documentation/notation/

Also, the definition is not very clear, because it doesn't say explicitly what it actually does.. you have to guess it:

###
blank-last-page-force
The penalty for ending the score on an odd-numbered page.
###


Thanks
--
Federico
\version "2.15.43"

\paper {
  indent= 0
  blank-last-page-force = 5
}

\markuplist \table-of-contents
\pageBreak 
  
\bookpart{
  \tocItem \markup "Score 1"
    \header {
     	title = "Score 1"
        composer = "Jack"
    }
    \score {
      \relative c' {
        \repeat unfold 20 { s1*3 \break }
      }
    }
}

\bookpart{
  \tocItem \markup "Score 2"
    \header {
     	title = "Score 2"
        composer = "Kate"
    }
    \score {
      \relative c' {
        \repeat unfold 80 { s1*3 \break }
      }
    }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to