Am Fr., 31. Juli 2026 um 16:21 Uhr schrieb brin solomon <[email protected]>:
>
>
>
> On Fri, Jul 31, 2026 at 10:13 AM Thomas Morley <[email protected]>
> wrote:
>>
>> Am Fr., 31. Juli 2026 um 16:12 Uhr schrieb brin solomon
>> <[email protected]>:
>>
>> >> Lukas pointed you to the general command you requested.
>> >> It will affect both \box and \rounded-box.
>> >>
>> >> You could also redefine one of them to distinguish them.
>> >> We have a nice and concise syntax:
>> >> \markup box = \markup \override #'(box-padding . 5) \box \etc
>> >> \markup { \box "some text" }
>> >> \markup { \rounded-box "some text" }
>> >>
>> >> Cheers,
>> >> Harm
>> >
>> >
>> > Hi Harm,
>> >
>> > Ah, I see, that's helpful! Do these also go in the \paper block?
>>
>> Nope, usually toplevel.
>
>
> Could you clarify? I tried putting \markup box = \markup \override
> #'(box-padding . 5) \box \etc outside the \score block and there was no
> effect, but when I tried putting it inside the \score block the file did not
> compile.
Attached works here.
\version "2.26.0"
\markup box = \markup \override #'(box-padding . 5) \box \etc
\score {
{
b-\markup { \box "some text" }
}
}