lilypond-user
[Top][All Lists]
Advanced

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

Re: Header fields in custom footer


From: Noeck
Subject: Re: Header fields in custom footer
Date: Wed, 30 Nov 2016 23:31:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

Hi,

I have one more question on this topic:

How can I check whether a header field is present at all?
(Or my main goal: how can I avoid that the code fails?)

This works:
\version "2.19.50"
\header {
  title = "ABC"
}
\paper {
  oddFooterMarkup = #(module-ref $defaultheader 'title)
}
{ a }


This does not for obvious reasons:
oddFooterMarkup = #(module-ref $defaultheader 'maintainer)


Instead of putting all possible headers in a default header like
maintainer = ##f
I would like to check the presence, sth like this pseudocode:

oddFooterMarkup = #(if (in? 'maintainer $defaultheader)
       (module-ref $defaultheader 'maintainer)
       "")

Cheers,
Joram



reply via email to

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