lilypond-user
[Top][All Lists]
Advanced

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

Re: Fitting as many lines as possible on a page


From: Reinhold Kainhofer
Subject: Re: Fitting as many lines as possible on a page
Date: Sat, 31 Jan 2009 12:13:46 +0100
User-agent: KMail/1.11.0 (Linux/2.6.27-9-generic; KDE/4.2.0; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Samstag, 31. Januar 2009 02:06:38 Joe Neeman wrote:
> On Sat, 2009-01-31 at 00:53 +0100, Reinhold Kainhofer wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Freitag, 30. Januar 2009 23:37:28 Tim Yang wrote:
> > > It doesn't work. I set the page-count as 2 and Lilypond still uses 3
> > > pages. I think it is because somehow Lilypond thinks these lines don't
> > > fit in 2 pages but in fact there is a lot of space left.
> >
> > Yes, currently the vertical page layouting algorithm of lilypond is sub-
> > optimal. Lilypond reserves 10% of the total space to make sure it does
> > not overprint staves. This means that 10% of the page will always be
> > wasted... Unfortunately, there is no easy way around this for now, until
> > someone starts working on the vertical staff layouting seriously...
>
> This is only the case for the stretching of systems, AFAICR. It
> shouldn't affect single-staff music.

Isn't stretch-and-draw-page called for all pages, even for single-staff 
systems? At least, I couldn't find any if in Page_breaking::make_pages to 
condition on the number of staves in the systems. That function reserves 10% 
of the space and evenly distributes it to all the spaces between systems 
(which is hardly noticable if you have 10 systems or so, but leaves a lot of 
space at the bottom if you have only one system).

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJhDJrTqjEwhXvPN0RAgehAKDYjraqHMVvgCQaAnJGtbCX1sUL/ACeKgU2
if/0cNuhp/om8t3wFy6VOvE=
=55VD
-----END PGP SIGNATURE-----




reply via email to

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