Unexpected white space at end of document if score in markup block (single page pdf output #ly:one-page-breaking)
Matthew Fong <[email protected]>
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <CAPCsXN1QSH3CM5FNghjW4h5vpR1tWqVVqv9cV_8sEBqGN8nqOA@mail.gmail.com> |
Dear Lilyponders,
I am seeing unexpected whitespace at the end of my document when there are
scores placed in a markup block. I have placed the scores in markup blocks
because I have small snippets of music I want to place next to each other.
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!
Matt
-------
\version "2.24.4"
\language "english"
\header {
tagline = ##f
}
% Variables
layoutMarkup = \layout {
indent = 0\in
ragged-last = ##t
ragged-right = ##t
\context {
\Staff
\revert StaffSymbol.width
}
} % end layout
basic_score = \markup {
\score {
\relative c' {
\key c \major
f4 g a \bar "||"
}
% Score layout
\layoutMarkup
} % end score
}
% Score and markup output
\markup { Unexpected space after last scores in markup }
\score {
\relative c' {
\key c \major
c'4 d e \bar "||"
}
% Score layout
\layoutMarkup
} % end score
\markup { Text after score }
\markup { \basic_score \hspace #2 \basic_score }
\markup { Text between scores in markup }
\markup { \basic_score \hspace #2 \basic_score }
% Paper settings
#(set! paper-alist (cons '("content-size" . (cons (* 3.25 in) (* 7 in)))
paper-alist))
\paper {
% Single page PDF set to height of chant (one page only)
page-breaking = #ly:one-page-breaking
#(set-paper-size "content-size")
left-margin = 0.0\in
top-margin = 0.0\in
right-margin = 0.0\in
bottom-margin = 0.0\in
system-system-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
score-system-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
score-markup-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
markup-system-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
markup-markup-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
top-system-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
top-markup-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
last-bottom-spacing =
#'((basic-distance . 0) (minimum-distance . 0) (padding . 0)
(stretchability . 0))
}
expected-no-space.pdf
(application/pdf, 25.9 KB) - not displayed
mwe-score-in-markup.pdf
(application/pdf, 160.1 KB) - not displayed