lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Horizontal line between hymn verses


From: Aaron Hill
Subject: Re: Horizontal line between hymn verses
Date: Thu, 07 Oct 2021 18:24:20 -0700
User-agent: Roundcube Webmail/1.4.9

On 2021-10-07 5:46 pm, Kira Garvie wrote:
Hello all!
I can't figure out how to get that horizontal line dividing the
spanish from the english verses... any tips?
Thank you!
Kira

Here is an excerpt of what I have done in the past:

%%%%
\version "2.20.0"

separatorLineBelow = \with {
  \override StanzaNumber.stencil =
  #(grob-transformer 'stencil
    (lambda (grob orig)
     (grob-interpret-markup grob
      #{ \markup \overlay { \stencil $orig
         \with-dimensions #'(0 . 0) #'(0 . 0)
         \translate #'(-1 . -1.25)
         \override #'(thickness . 2)
         \draw-line #'(6 . 0)} #} )))
  \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
    #'( (basic-distance . 0) (minimum-distance . 4.0)
        (padding . 0.0) (stretchability . 0) )
}

\layout { \context { \Lyrics
  \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
    #'( (basic-distance . 0) (minimum-distance . 3.5)
        (padding . 0.0) (stretchability . 0) )
} }

<< \new Voice = melody \fixed c' { \time 3/4 a4 g b | a2. }
\new Lyrics \lyricsto melody { \set stanza = "1." Lo -- rem ips -- um. }
   \new Lyrics \with \separatorLineBelow
\lyricsto melody { \set stanza = "2." Lo -- rem ips -- um. } \new Lyrics \lyricsto melody { \set stanza = "3." Lo -- rem ips -- um. }
   \new Lyrics \with \separatorLineBelow
\lyricsto melody { \set stanza = "4." Lo -- rem ips -- um. } \new Lyrics \lyricsto melody { \set stanza = "5." Lo -- rem ips -- um. } \new Lyrics \lyricsto melody { \set stanza = "6." Lo -- rem ips -- um. } >>
%%%%

The principle is simply to hack the StanzaNumber and then increase the spacing between two Lyrics lines.


-- Aaron Hill



reply via email to

[Prev in Thread] Current Thread [Next in Thread]