Simon, Jean, thank you both !
Le lun. 5 juin 2023 à 15:45, Jean Abou Samra a écrit :
> Le lundi 05 juin 2023 à 15:34 +0200, Simon Albrecht a écrit :
>
> However, I can’t say why the right margin isn’t yet known by the time it
> is queried.
>
>
>
>
> Well, don't use “$defaultpaper”, that's the
Le lundi 05 juin 2023 à 15:34 +0200, Simon Albrecht a écrit :
> However, I can’t say why the right margin isn’t yet known by the time it
> is queried.
Well, don't use “$defaultpaper”, that's the toplevel \paper block, which is
almost always not what you want. If your markup command is used on
Hi Pierre,
On 05.06.23 15:07, Pierre Perol-Schneider wrote:
So how can I get the paper values as a markp?
the call to ly:output-def-lookup returns a number or an empty list. So
this returns valid markup regardless:
\version "2.24.1"
\paper {
top-margin =
.schneider.pa...@gmail.com> a écrit :
> Dear List,
> How could I automagically get the margin values, including the default
> values ?
>
> Ex.
>
> \version "2.24.1"
>
> \paper {
> top-margin = 30
> left-margin = 30
> }
>
> \markup
Dear List,
How could I automagically get the margin values, including the default
values ?
Ex.
\version "2.24.1"
\paper {
top-margin = 30
left-margin = 30
}
\markuplist {
"top-margin = ?"
"bottom-margin = ?"
"left-margin = ?"
"right-margin = ?"
}
TIA, cheers,
Pierre