]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/page-breaks.ly
823e5a00579611958b8ce9c1692f5a876e8847ee
[lilypond.git] / input / regression / page-breaks.ly
1 #(ly:set-point-and-click 'line-column)
2 \version "2.4.0"
3
4 \header {
5
6 texidoc = "Stress optimal page breaking.  This should look
7     nice on 4 a6 pages. "
8
9     
10     copyright = "Copyright by /me"
11     
12     title = "Title"
13     subtitle = "(and (the) subtitle)"
14     subsubtitle = "Sub sub title"
15     poet = "Poet"
16     composer = "Composer"
17     texttranslator = "Text Translator"
18     opus = "opus 0"
19     meter = "Meter (huh?)"
20     arranger = "Arranger"
21     instrument = "Instrument"
22     piece = "Piece"
23 }
24
25 #(set-default-paper-size "a6" 'portrait)
26
27
28 pattern =  { a b c d \break }
29 \book {    
30     \score {
31         \context Staff  \relative c' {
32             %% 16: ideally cramped
33             %% 17: very bad without density
34                                 %       \repeat unfold 17 { a b c d \break }
35
36             \pattern
37             \pattern
38                                 % \noPageBreak
39             \pattern
40             
41                                 % the following changes the location of the break.
42                                 % 
43                                 % \pageBreak
44             
45             \pattern
46             \pattern
47             \pattern
48             \pattern
49             \repeat unfold 10 \pattern
50         }
51
52     }
53     
54 }