]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/page-spacing-nonstaff-lines-independent.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / page-spacing-nonstaff-lines-independent.ly
diff --git a/input/regression/page-spacing-nonstaff-lines-independent.ly b/input/regression/page-spacing-nonstaff-lines-independent.ly
new file mode 100644 (file)
index 0000000..26d7a9d
--- /dev/null
@@ -0,0 +1,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))
+  }
+}