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