summaryrefslogtreecommitdiff
path: root/input/regression/page-spacing-nonstaff-lines-independent.ly
blob: 26d7a9d1ff24d64b6dd40cde2c680dbcc05ec2cb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\version "2.13.39"

\header {
  texidoc = "Spacing rules between Staves coexist with rules affecting
non-staff lines.  Here, the @code{padding} separating items on different
staves is larger than the @code{padding} for associated lyrics."
}

<<
  \new Staff { c''2 c }
  \addlyrics { high \skip2 }
  \new Staff = "bass" \new Voice = "b" { \clef bass c2 c' }
  \new Lyrics \with {
    alignAboveContext = "bass"
  } \lyricsto "b" \lyricmode { bass \skip2 }
>>
\layout {
  \context {
    \Lyrics
    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing = #'((padding . 0.2))
  } \context {
    \Staff
    \override VerticalAxisGroup #'default-staff-staff-spacing = #'((padding . 4))
  }
}