On 30/12/2024 14:35, Richard Shann wrote:
Thank you for this code. Trying it out, I see that there is something here I have not got understood. This MWE should explain all - I was hoping that the text "Interlude" would appear centered between the two systems, but its position still depends on the staff size:8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< \version "2.24" staffspaceinmm = #(ly:output-def-lookup $defaultpaper 'staff-space) #(set-default-paper-size "a4") %#(set-global-staff-size 10) #(set-global-staff-size 18) \layout { indent = 0 } { \repeat unfold #40 c'2 \break \mark \markup { \override #`(line-width . ,(/ 175 staffspaceinmm)) \fill-line { " " \lower #10 "Interlude" " " } } \repeat unfold #40 c'2 } 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< This centers "Interlude" with the global staff size set to 18 but not 10. Thanks again Richard Shann
Set the staff size before getting the value of staffspaceinmm #(set-global-staff-size 10) staffspaceinmm = #(ly:output-def-lookup $defaultpaper 'staff-space) -- Timothy Lanfear, Bristol, UK.
