Hi Timwi,
I would like to use \whiteout on text objects between my staffs. The
manual shows this example inside of a \markup command:
\override#'((style.outline)(thickness.3)) \whiteoutoutline
However I have many of these and it would be annoying to have to
repeat that override everywhere. Is there a way to set these
properties globally? I’ve already tried
\context {
\Staff
\override TextScript.whiteout-style = #'outline
}
inside the \layout block, and I also tried it with \Score and \Global,
but it seems to have no effect. Any ideas?
Please always provide a complete LilyPond source, so people can plug it
in LilyPond directly, cf. https://lilypond.org/tiny-examples.html
It's not clear to me from your question whether you want to influence
standalone \markup blocks between scores (that's what the first part of
your message sounds like) or TextScript markups in scores (that's what
you try to influence in your \layout block excerpt).
The latter works in a similar fashion to what you already tried:
\version "2.27.2"
\layout {
\context {
\Staff
\override TextScript.whiteout-style = #'rounded-box
\override TextScript.whiteout = 20
}
}
{
c' d'-"test" e'
}
The former is more difficult to achieve, because \whiteout is a markup
function, and we need a global way to apply that to any global markups.
You could achieve this by:
#(define toplevel-text-handler
(lambda (arg)
(collect-scores-for-book
(map make-whiteout-markup arg))))
outside of any score or \layout block.
Lukas