]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/optimal-page-breaking-hstretch.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / input / regression / optimal-page-breaking-hstretch.ly
1 \version "2.14.0"
2
3 #(set-default-paper-size "a6")
4
5 \book {
6
7 \header{
8     texidoc="The optimal page breaker will make trade-offs between
9 horizontal and vertical stretching so that the overall spacing
10 will be more acceptable.  The page-spacing-weight parameter
11 controls the relative importance of vertical/horizontal spacing.
12 Because ragged-last-bottom is on, there is no penalty for odd
13 vertical spacing on the final page.  As a result, only the first
14 page should be horizontally stretched.
15 "
16 }
17
18 \paper {
19   #(define page-breaking ly:optimal-breaking)
20   page-spacing-weight = #10
21   ragged-last-bottom = ##t
22 }
23
24 \relative c' {
25   \repeat unfold 5 {a b c d} \pageBreak
26   \repeat unfold 5 {a b c d}
27 }
28
29 }