lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: temporarily overriding paper variables


From: Aaron Hill
Subject: Re: temporarily overriding paper variables
Date: Tue, 28 Mar 2023 13:16:39 -0700

On 2023-03-28 8:26 am, Werner LEMBERG wrote:
It would be cool if this worked some day.  However, the next best
thing would probably be to allow negative widths and heights for
`\markup` boxes (if set with `\with-dimensions` and friends).

Was messing about a bit.  Does this work on your side?

%%%%
\version "2.22.0"

\paper {
  score-markup-spacing =
  #'((basic-distance . 0) (minimum-distance . 0)
     (padding . 4) (stretchability . 0))

  markup-system-spacing =
  #'((basic-distance . 0) (minimum-distance . 0)
     (padding . 4) (stretchability . 0))
}

\score { { b'4 } \layout { indent = 0 } }

\markup
  \with-color #green \filled-box #'(0 . 10) #'(0 . 5) #0

\score { { b'4 } \layout { indent = 0 } }

\markup
  \with-dimensions #'(0 . 0) #'(-1 . -4)
  \general-align #Y #UP
  \with-color #red \filled-box #'(0 . 10) #'(0 . 5) #0

\score { { b'4 } \layout { indent = 0 } }
%%%%


-- Aaron Hill

Attachment: top-level-markup-spacing.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]