Hello there,

I trying to add the *current* piece in the header and/or footer of,
say, every page in a score.

As mentioned here :

http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers

"These markup variables can only access text fields from top-level
\header blocks (which apply to all scores in the book)."

Is there a way to get around this limitation?

Thanks for any pointers
Here is a MWE
--
Pierre-Luc Gauthier
\version "2.21.0"

\header {
  piece = \markup \typewriter \italic \bold "Not the good piece name"
}

\paper {
  oddHeaderMarkup = \markup {
    The piece on this page is :
    \fromproperty #'header:piece
  }
  evenHeaderMarkup = \oddHeaderMarkup
  oddFooterMarkup = \oddHeaderMarkup
  evenFooterMarkup = \oddHeaderMarkup
}

\book {
  \score {
    \header {piece="Piece A"}
    {a''4}
  }

  \pageBreak
  \score {
    \header {piece="Piece B"}
    {b'4}
  }

  \pageBreak
  \score {
    \header {piece="Piece C"}
    {c'4}
  }
}

Attachment: dynamicHeaderFooter-01.pdf
Description: Adobe PDF document

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

Reply via email to