lilypond-user
[Top][All Lists]
Advanced

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

Re: Layout of staff systems and text blocks


From: Thomas Morley
Subject: Re: Layout of staff systems and text blocks
Date: Wed, 30 May 2012 23:40:21 +0200

2012/5/30 Philip Thomas <address@hidden>:
(...)
> 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



reply via email to

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