lilypond-user
[Top][All Lists]
Advanced

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

Re: Problems with \table in \markuplist


From: Thomas Morley
Subject: Re: Problems with \table in \markuplist
Date: Mon, 2 Dec 2019 14:31:09 +0100

Am Mo., 2. Dez. 2019 um 13:00 Uhr schrieb Peter Toye <address@hidden>:
>
> 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.

You do:
\wordwrap {"a very very very very very very very very long row 3"}
i.e. wordwrap gets a markup-list with exactly one entry, a line-break
will never happen this way.

Either use wordwrap-string like:
\markup
  \override #'(line-width . 12)
  \wordwrap-string
    "a very very very very very very very very very very very very long text 3"

Or wardwrap with a suitable markuplist:
\markup
  \override #'(line-width . 12)
  \wordwrap
    {
     a very very very very very very very very very very very very long text 3
    }
>
> 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.

Has nothing to do with the table-markup-list-command but with \column
and similar markup-commands.
See:
\markup
  \column {
    \box \column { a b }
    \box \column { a b }
  }

This minimal is fixable with:
\markup
  \override #'(baseline-skip . 6)
  \column {
    \box \override #'(baseline-skip . 3) \column { a b }
    \box \override #'(baseline-skip . 3) \column { a b }
  }

Though I've currently no good idea how to do so in \table

> 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.

No, at least I know none.

>
> 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.

Here again I'm sorry being of no help.

Though this behaviour bugs me as well, here a less complex example:

#(set-default-paper-size "a7")

mrkpl =
\markuplist
  %\column-lines
  %\box
  \justified-lines {
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
    non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius,
    turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis
    sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac
    tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam
    tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id
    tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec
    fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec,
    commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum
    aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat.
    Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur
    augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl,
    mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea
    dictumst.
  }

\mrkpl
\pageBreak
\mrkpl

\paper {
  top-markup-spacing =
   #'((padding . 15)
      (minimum-distance . 15)
      (basic-distance . 15))
  %annotate-spacing = ##t
  %ragged-last-bottom = ##f
}

Looks like the provided values for top-markup-spacing are not
called/used again before the markuplist ended, even if distributed
over several pages.

Cheers,
  Harm



reply via email to

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