2012/5/30 Philip Thomas <philip.tho...@bluewin.ch>:
(...)
> The problem: How do I get the Background Notes to sit happily where I want
> them on page 3?
(...)

Hi Philip,

how about this setup?
It adds the "Background Notes" to the footer of page three.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.15.39"

textPlusTranslation =
\markup \column {
        " " " " " "
        "Some text and translation"
        "Some text and translation"
        "Some text and translation"
        "Some text and translation"
        "Some text and translation"
        " " " " " "
}

backgroundNotes =
\markup \column {
        \vspace #6
        "Some Background Notes in \"backgroundnotes\" of header"
        "Some Background Notes in \"backgroundnotes\" of header"
        "Some Background Notes in \"backgroundnotes\" of header"
        "Some Background Notes in \"backgroundnotes\" of header"
        "Some Background Notes in \"backgroundnotes\" of header"
        "Some Background Notes in \"backgroundnotes\" of header"
        \vspace #6
}

pronunciationGuide =
\markup \column {
        \vspace #6
        "pronunciationGuide in \"pronunciationguide\" of header"
        "pronunciationGuide in \"pronunciationguide\" of header"
        "pronunciationGuide in \"pronunciationguide\" of header"
        "pronunciationGuide in \"pronunciationguide\" of header"
        "pronunciationGuide in \"pronunciationguide\" of header"
        "pronunciationGuide in \"pronunciationguide\" of header"
        \vspace #6
}

\header {
        title = "TITLE"
        subtitle = \textPlusTranslation
        backgroundnotes = \backgroundNotes
        pronunciationguide = \pronunciationGuide
}

#(define (third-page layout props arg)
  (if (= (chain-assoc-get 'page:page-number props 0) 3)
        (interpret-markup layout props arg)
      empty-stencil))


\paper {
     ragged-bottom = ##f
     ragged-last-bottom = ##f
     ragged-last = ##f
     oddFooterMarkup = \markup \fill-line {
             \column {
                 \on-the-fly #third-page
                 \fromproperty #'header:backgroundnotes
                 \on-the-fly #last-page \fromproperty
#'header:pronunciationguide
                 \on-the-fly #last-page \fromproperty #'header:tagline
             }
     }
     evenFooterMarkup = \markup \fill-line {
             \column {
                 \on-the-fly #third-page
                 \fromproperty #'header:backgroundnotes
                 \on-the-fly #last-page \fromproperty 
#'header:pronunciationguide
                 \on-the-fly #last-page \fromproperty #'header:tagline
             }
     }
}

pagebreaks = {
        s1*2 \pageBreak
        s1*3 \pageBreak
        s1*2 \pageBreak
}

mus =
\relative c' {
        \repeat unfold 9 { c1 \break }
}

lyr =
\lyricmode {
        \repeat unfold 8 { la -- }
        la
}


\score {
        \new ChoirStaff <<
        \new Staff \new Voice = "S" { << \clef soprano \pagebreaks \mus >> }
        \new Lyrics \lyricsto "S" \lyr
        \new Staff \new Voice = "A" { \clef alto \mus }
        \new Lyrics \lyricsto "A" \lyr
        \new Staff \new Voice = "T" { \clef tenor \mus }
        \new Lyrics \lyricsto "T" \lyr
        \new Staff \new Voice = "B" { \clef bass \mus }
        \new Lyrics \lyricsto "B" \lyr
        >>
}

%%%%%%%%%%%%%%%%%%%%

The definition of `third-page' could be changed to other page-numbers
quite easily.

HTH,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to