[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: squeezing a page
From:       Valentin Petzel <valentin () petzel ! at>
Date:       2023-07-10 14:01:26
Message-ID: 9134843.CDJkKcVGEf () archbox
[Download RAW message or body]


Hello David, hello Tom,

using page-count does theoretically work, but it can produce non optimal 
results, as it will at some point simply start to compress the last page.

E.g. in this case page count still works fine:

\paper {
  page-count = 3
  ragged-last-bottom = ##f
  indent = 0\cm
}

{
  \repeat unfold 51 { 1 \break }
}

But here it doesn't:

\paper {
  page-count = 3
  ragged-last-bottom = ##f
  indent = 0\cm
}

{
  \repeat unfold 66 { 1 \break }
}

Compare this to doing this manually:

\paper {
  ragged-last-bottom = ##f
  indent = 0\cm
}

\new Voice <<
  \repeat unfold 66 { 1 \break }
  \repeat unfold 3 { \repeat unfold 21 { s1 \noPageBreak } s1 \pageBreak }
>>

In this case it is most likely fine to do so, but I think it is good to keep in 
mind that page-count (by itself) is not the best to to achieve extreme 
compression.

As already said using page-count is fine in this case, but often cases of "I've 
got some hanging systems and I want Lilypond everything on the previous pages" 
can be solved simply by telling Lilypond to only produce full pages. E.g. in 
this example

\paper {
  %ragged-last-bottom = ##f
}

{
  \repeat unfold 88 { 1 \break }
}

switching off ragged-last-bottom will make Lilypond create 6 pages instead of 
7. This will mean that Lilypond will decide whether it is better to squeeze 
the content onto six pages (to avoid overly large stretches) or to spread the 
content onto seven pages (to avoid compression). In many cases this is what 
you want over telling Lilypond to use exactly 6 pages, for if you change the 
layout or change content it might become better to use 7 pages rather than 
six, or more pages or even less pages.

Cheers,
Valentin

Am Montag, 10. Juli 2023, 00:45:29 CEST schrieb David Kastrup:
> Tom Sgouros <tomfool@as220.org> writes:
> > Hello all:
> > 
> > I have a piece that spans seven printed pages, and I wish it was six.
> > There
> > are just four meagre measures on that last page and I wish I could
> > persuade
> > Lilypond to squeeze one more line onto the sixth page, as it did on the
> > fifth page. I've looked at some of the vertical spacing controls, and so
> > far my attempts to use them seem to make things look worse. Can anyone
> > share some general tips for the order of things to try to do some gentle
> > squeezing?
> 
> How about just telling LilyPond you want 6 pages?
> 
> \paper {
>   page-count = 6
> }


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic