Re: Globally Increase Padding Between Text and Box?

Thomas Morley <[email protected]> Fri, 31 Jul 2026 16:09:26 +0200
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <CABsfGyVW9g6WYQucDDmrNJjYSGzPn+4S11446FTAGZfLO+judw@mail.gmail.com>
Am Fr., 31. Juli 2026 um 15:54 Uhr schrieb Lukas-Fabian Moser <[email protected]>:
>
> Hi Brin,
>
> > \markup { \box "some text" }
> >
> > Looking at it as it renders in 2.26.0, the box is a little close to
> > the text for my taste. In the markup appendix of the notation manual
> > (https://lilypond.org/doc/v2.26/Documentation/notation/text-markup-commands),
> > I can see that inside a \markup block, it's possible to override
> > box-padding to adjust this property. My question: Is there a way to do
> > this globally for the entire score at once? There are dozens of these
> > boxed items in the score I'm working on, and it would be a real pain
> > to go in and adjust each one individually.
>
> You can do:
>
> \paper {
>    property-defaults.box-padding = 2
> }
>
> I'm not really sure whether this is documented clearly enough.
>
> Lukas
>
>

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