lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical spacing between wordwrap items within markup column


From: Jean Abou Samra
Subject: Re: Vertical spacing between wordwrap items within markup column
Date: Thu, 13 Apr 2023 11:49:29 +0200
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Le mercredi 12 avril 2023 à 21:48 -0600, Benjamin Bruce a écrit :

Maybe I'm missing something here, but how can I make the space between items in a markup column regular? As you can see in the example, if the text is short so that there is no wrapping necessary, the space is fine. But the "a a a" item does wrap around and overlaps a bit with the "b b b" item on its second line.  Any tips?

%%%%%%%%%%%%%%
\version "2.24.1"
\markup  {
  \column {
    \wordwrap-string "a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a"
    \wordwrap-string "b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b"
    \wordwrap-string "c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c"
  }
}
%%%%%%%%%%%%%%

Try

\version "2.24.1"

\markup { 
  \override #'(line-width . 5)
  \override #'(baseline-skip . 4)
  \column {
    \wordwrap-lines { a a a a a a }
    \wordwrap-lines { b b b b b b }
  }
}

Namely, rather than stacking the lines with two separate mechanisms (\wordwrap-string and \column) that have conflicting spacing settings, use \wordwrap-lines, which returns a list of lines to the outer context, without spacing them by itself, and let \column space all lines consistently.

Best,

Jean

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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