Re: Globally Increase Padding Between Text and Box?

brin solomon <[email protected]> Fri, 31 Jul 2026 10:12:07 -0400
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <CAMJUgPR5qF0qKPFkkKAELufKbSxVi+VCnTawn7eboBtrXfDu4w@mail.gmail.com>
--000000000000aec4c50657e8c6b8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Jul 31, 2026 at 10:09=E2=80=AFAM Thomas Morley <thomasmorley65@gmai=
l.com>
wrote:

> 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-command=
s
> ),
> > > 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 d=
o
> > > 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 =3D 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 =3D \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?

Thanks,
brin

--=20
And she forgot the stars, the moon, and sun,
And she forgot the blue above the trees,
And she forgot the dells where waters run,
And she forgot the chilly autumn breeze...

=E2=80=94 Keats, "Isabella, or the Pot of Basil"

--000000000000aec4c50657e8c6b8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g=
mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jul 31,=
 2026 at 10:09=E2=80=AFAM Thomas Morley &lt;<a href=3D"mailto:thomasmorley6=
[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">Am Fr., 31. Juli 2026 um 15:54 Uhr sch=
rieb Lukas-Fabian Moser &lt;<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a>&gt;:<br>
&gt;<br>
&gt; Hi Brin,<br>
&gt;<br>
&gt; &gt; \markup { \box &quot;some text&quot; }<br>
&gt; &gt;<br>
&gt; &gt; Looking at it as it renders in 2.26.0, the box is a little close =
to<br>
&gt; &gt; the text for my taste. In the markup appendix of the notation man=
ual<br>
&gt; &gt; (<a href=3D"https://lilypond.org/doc/v2.26/Documentation/notation=
/text-markup-commands" rel=3D"noreferrer" target=3D"_blank">https://lilypon=
d.org/doc/v2.26/Documentation/notation/text-markup-commands</a>),<br>
&gt; &gt; I can see that inside a \markup block, it&#39;s possible to overr=
ide<br>
&gt; &gt; box-padding to adjust this property. My question: Is there a way =
to do<br>
&gt; &gt; this globally for the entire score at once? There are dozens of t=
hese<br>
&gt; &gt; boxed items in the score I&#39;m working on, and it would be a re=
al pain<br>
&gt; &gt; to go in and adjust each one individually.<br>
&gt;<br>
&gt; You can do:<br>
&gt;<br>
&gt; \paper {<br>
&gt;=C2=A0 =C2=A0 property-defaults.box-padding =3D 2<br>
&gt; }<br>
&gt;<br>
&gt; I&#39;m not really sure whether this is documented clearly enough.<br>
&gt;<br>
&gt; Lukas<br>
&gt;<br>
&gt;<br>
<br>
Lukas pointed you to the general command you requested.<br>
It will affect both \box and \rounded-box.<br>
<br>
You could also redefine one of them to distinguish them.<br>
We have a nice and concise syntax:<br>
\markup box =3D \markup \override #&#39;(box-padding . 5) \box \etc<br>
\markup { \box &quot;some text&quot; }<br>
\markup { \rounded-box &quot;some text&quot; }<br>
<br>
Cheers,<br>
=C2=A0 Harm<br>
</blockquote></div><div><br clear=3D"all"></div><div>Hi Harm,</div><div><br=
></div><div>Ah, I see, that&#39;s helpful! Do these also go in the \paper b=
lock?</div><div><br></div><div>Thanks,</div><div>brin</div><div><br></div><=
span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=
=3D"gmail_signature">And she forgot the stars, the moon, and sun,<br>And sh=
e forgot the blue above the trees,<br>And she forgot the dells where waters=
 run,<br>And she forgot the chilly autumn breeze...<br><div><br></div><div>=
=E2=80=94 Keats, &quot;Isabella, or the Pot of Basil&quot;</div></div></div=
>

--000000000000aec4c50657e8c6b8--