lilypond-user
[Top][All Lists]
Advanced

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

markup fromproperty footer


From: Jan-Peter Voigt
Subject: markup fromproperty footer
Date: Wed, 27 Oct 2010 11:36:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9

Hello List,

I wish to fill the footer of a book containing several pieces with Composer, Title *and* Piece. I do this regularly without the piece-info ...

--snip--
\paper {
  oddFooterMarkup = \markup { \fill-line {
\concat { \fromproperty #'header:composer ", " \bold \fromproperty #'header:title ", " \fromproperty #'header:piece }
      \fromproperty #'page:page-number-string
    }
  }
  evenFooterMarkup = \markup { \fill-line {
      \fromproperty #'page:page-number-string
\concat { \fromproperty #'header:composer ", " \bold \fromproperty #'header:title ", " \fromproperty #'header:piece }
    }
  }
}

\bookpart {
  \header {
    title = "title"
    composer = "composer"
  }
  \score {
    \relative c' {
      c d e f
    }
    \header {
      piece = "first"
    }
  }
  \score {
    \relative c' {
      c d e f
    }
    \header {
      piece = "second"
    }
  }
}
--snip--

In this snippet, the piece will be omitted in the footer. I would like to reach the last one on the current page. Is it possible? If I put all headers only in the score block, nothing is found in the footer. If I put it in the bookpart-block, only one piece will run the whole book[part]. Is there a \set-statement I could use? Or are the footer/header-blocks typeset, when the score-info is not available?

Jan-Peter




reply via email to

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