Le jeudi 13 avril 2023 à 09:13 +0000, juergen.gr...@xyz.de a écrit :
> "\column args (markup list)Stack the markups in args vertically. The property 
> baseline-skip determines the space between markups in args."
> 
> So is it a bug in \column rather than in \wordwrap-string?

No bug here, although the documentation is perhaps misleading. As its name 
suggests, baseline-skip is the distance between *baselines*, not between 
extremes. Demo:


```
\version "2.24.1"

\markup show-baseline = \markup \combine \draw-dotted-line #'(10 . 0) \etc

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

As you can see, if the specified baseline-skip were applied here, the two 
markups would be colliding. So `\column` spaces them more but just enough so 
that they don't collide.

You could give separate baseline-skip settings for `\column` and 
`\wordwrap-string`, as in

```
\version "2.24.1"

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

but that wouldn't work if you have more paragraphs, since the baseline-skip 
between two paragraphs needs to depend on the size of the first one.

That's why the solution is to let `\column` do all the stacking itself.

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

Reply via email to