lilypond-user
[Top][All Lists]

## Problems with \table in \markuplist

 From: Peter Toye Subject: Problems with \table in \markuplist Date: Mon, 2 Dec 2019 11:59:23 +0000

I'm trying to lay out text using a \table and have found (to date) two problems.

Firstly, the wordwrap feature doesn't seem to work. See Table 1. I've tried using \wordwrap-lines but the result is the same. Obviously I'm missing something but can't see what.

Secondly, the spacing between rows in a table doesn't seem quite right when I use columns. In Table 2, Row 2 the columns have the expected spacing but the space between the last line and row 3 is too small. It's correct for the gap between rows 3 and 4.

Two further questions that I can't find the answers to:

Is there a way of ensuring that two items in a markup list are not broken by a page break? For example, the title of a table and the first row.

How can I increase the distance between the page header and the first line of markup text following a page break?  Setting top-markup-spacing.basic-distance doesn't seem to work.

Regards,

Peter
www.ptoye.com

\version "2.19.52"

\language "english"

\markuplist  {
"Table 1"

\override #'( line-width . 15 )
\override #'( padding . 3 )
\override #'( baseline-skip .  4 )
\table #'(-1 -1)
{
"row 1"
"text 1"
"row 2"
"text 2"
\wordwrap {"a very very very very very very very very long row 3"}
\override #'( line-width . 12 )
\wordwrap {"a very very very very very very very very very very very very long text 3"}
}

\vspace #5
"Table 2"

\override #'( padding . 3 )
\override #'( baseline-skip .  4 )
\table #'(-1 -1)
{
"Row 1"
"Text 1"
\column {
"a column"
"row 2"
}
\override #'( baseline-skip . 6 )
{\column {
"a "
"slightly"
"but not much"
"but sort of"
"getting there"
"longer"
"text 2"
}
}
"Row 3"
"Text 3"
"Row 4"
"Text 4"
}
}