lilypond-user
[Top][All Lists]
Advanced

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

Re: Formatting part of a header property


From: David Kastrup
Subject: Re: Formatting part of a header property
Date: Mon, 17 Dec 2018 18:08:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"Br. Samuel Springuel" <address@hidden> writes:

> I'm making use of a custom header (with custom fields) and have come
> across a situation in which I need to apply custom formatting
> (italics) to a piece of the field (just a handful of words in the
> middle).  Given that the header fields are normally simple strings, is
> there a way to format part of the string without resorting to
> splitting the field up into different parts (which could then be
> independently formatted)?
>
> MWE to play with:
>
> \version "2.19.82"
>
>
> \book {
>   \paper {
>     indent = 0\mm
>     scoreTitleMarkup = \markup {
>       \fill-line {
>         \null
>         \fontsize #4 \bold \fromproperty #'header:custom
>       }
>     }
>   }
>   \header { tagline = ##f }
>   \score {
>     { s1 }
>     \header {
>       custom = "PRAELUDIUM I italicized text Back to normal"
>     }
>   }
> }

Uh, anything wrong with the obvious

      custom = \markup { PRAELUDIUM I \italic { italicized text } Back to 
normal }

?

-- 
David Kastrup



reply via email to

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