[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accessing header properties from ordinary markup
From: |
Nicolas Sceaux |
Subject: |
Re: Accessing header properties from ordinary markup |
Date: |
Wed, 21 May 2008 20:36:04 +0200 |
Le 21 mai 08 à 18:21, Reinhold Kainhofer a écrit :
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?
Book and score title are dealt with in a special way: when they
are interpreted, the header variables are added to the properties
provided to the command, which can then retrieve the header
variables.
This is not the case of other markups. You may work around that
by using variables defined in the paper block, and then retreiving
them using the command layout argument.
nicolas