Hi Matthew,
In the attached *mwe-score-in-markup.pdf*, I've drawn in a red filled
box for that unexpected whitespace. I am generating a single page PDF
with the music fitting exactly the height of all the systems, via
page-breaking = #ly:one-page-breaking. All margins and spacing set to
zero as part of my debug process.
If the score is not in a markup block, there is no extra space at
the bottom, as *expected-no-space.pdf* shows.
Any ideas what is causing this? Included is an MWE. To see what I
believe is the expected behavior, simply comment out all markup blocks
after the score. Appreciate the feedback/help in advanced!
I don't have a solution yet, but I just want to point out that your
example is far from being minimal. You can observe the behaviour you
describe already in the following:
\version "2.24.4"
\markup { \box \line { \vspace #3 text } }
zero-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
\paper {
tagline = ##f
page-breaking = #ly:one-page-breaking
left-margin = 0
top-margin = 0
right-margin = 0
bottom-margin = 0
% system-system-spacing = \zero-spacing
% score-system-spacing = \zero-spacing
% score-markup-spacing = \zero-spacing
% markup-system-spacing = \zero-spacing
% markup-markup-spacing = \zero-spacing
% top-system-spacing = \zero-spacing
top-markup-spacing = \zero-spacing
last-bottom-spacing = \zero-spacing
}
(I left the commented-out spacing variables in because it's clear that
they will be needed in your future application.)
My current theory is that we're observing an artifact of the design of
ly:one-page-breaking. But I have to investigate. (It's interesting to
note what happens if we remove the tagline = ##f setting!)
Lukas