I have the following code for use with headers which might not be defined for some pieces:
#(define-markup-command (when-property layout props symbol markp) (symbol? markup?) (if (chain-assoc-get symbol props) (interpret-markup layout props markp) empty-stencil)) Then in the header definition I can put something like: \when-property #'header:poet \concat { "Lyrics: " \override #'(line-width . 26) \wordwrapleft-field #'header:poet } ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ > On Jan 31, 2025, at 8:52 AM, YTG 1234 <ytg1234.pm...@gmail.com> wrote: > > Hi all, > In order to emulate the appearance of some editions, I want to set the > instrument name at the top left of the first page, instead of below the > titles. > I have code that works; I just override bookTitleMarkup and add: > %%% > \fill-line { > { \large \underline \fromproperty #'header:instrument } > "" > } > %%% > At the top of the \column. This works well when the instrument name is set, > but when it isn't, I get a warning: > warning: Found infinity or nan in output. Substituting 0.0 > And everything gets set slightly lower than it should be. How can I avoid > this?