]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyrics-bar.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / input / regression / lyrics-bar.ly
1 \version "2.17.6"
2
3 \header{
4 texidoc="
5 Adding a @code{Bar_engraver} to the Lyrics context makes sure that
6 lyrics do not collide with barlines.
7 "
8 }
9
10 \layout {
11     ragged-right = ##t
12 }
13
14 \relative c'' <<
15     \new Voice = "a"{
16         b1 \bar ".|:" b1 \bar ":|." b1 \bar "|."
17     }
18     \new Lyrics \with {
19         \consists "Bar_engraver"
20         \consists "Separating_line_group_engraver"
21     } \lyricsto "a" {
22           bars lengthened if
23       }
24     \new Lyrics \lyricsto "a" {
25         required for noncollision
26     }
27     \new Staff {
28         b1 b1 b1
29     }
30 >>
31 \layout {
32   \context {
33     \Lyrics
34       \override VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = #4.2
35       \override LyricText.Y-offset = #-0.7
36       \override BarLine.bar-extent = #'(-2 . 2)
37   }
38 }
39