In one of my pieces, I want to print a similar markup as the bookTitleMarkup 
somewhere in the middle of a page.
However, it seems that at this position, I'm not able to access the header 
properties, which are used in the title markup. In particular, while it works 
inside the bookTitleMarkup in the \paper block, the following markup will not 
work (ie. not show the value of the title header field) if it is placed as a 
top-level markup:

\markup {
  \line {Title: \fromproperty #'header:title}
}

Attached is a minimal example of my problem...

What am I doing wrong and how can I access the header fields from a top-level 
markup?

Thanks a lot, 
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.11.46"

\header { title = "Title of the piece" }
titleMarkup = \markup {
  \line {Title: \fromproperty #'header:title}
}

\paper {
  % This works, of course:
  bookTitleMarkup = \titleMarkup
}

% This does not return anything for 'header:title
\titleMarkup

Attachment: markup_fromproperty_header_fields.pdf
Description: Adobe PDF document

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

Reply via email to