]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/paper-margins-consistency.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / paper-margins-consistency.ly
1 \version "2.16.0"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (_ "margins do not fit with line-width, setting default values"))
5
6 \header {
7   texidoc = "Margin values must fit the line-width, that means: paper-width =
8 line-width + left-margin + right-margin.  In case they do not, default margins
9 are set and a warning is printed."
10 }
11
12 someNotes = \relative c' { \repeat unfold 40 { c4 d e f } }
13
14 \paper {
15   left-margin = 20 \mm
16   right-margin = 40 \mm
17   line-width = 100 \mm
18 }
19
20 \book {
21   \score { \someNotes }
22 }