On Tue, 17 Dec 2024 at 14:45, tran li <litra...@hotmail.com> wrote:
>
> After I completed a score, I found that the default layout created by
LilyPond is not satisfactory. I would like to modify some aspects of my
layout, but doing that all manually can be extremely exhausting and create
even weirder layout effects while adjusting. My requirement is as follows:
>
> Except for the first page that has 5 systems, all other pages should have
exactly 6 systems.

Lilypond has \paper variables systems-per-page, min-systems-per-page and
max-systems-per-page, but it does not differentiate between the first page
and the next pages (it would be nice though).

> One line should have no more than 5 measures.

People have developed solutions to have a specific number of measures per
line (system), maybe it is possible to modify them to have lower or equal
to instead of equal.
https://lists.gnu.org/archive/html/lilypond-user/2012-12/msg00775.html
https://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00239.html

> The last page must be filled to the bottom and leaves no blank.

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

> While I am manually adjusting my score, sometimes a page of 6 systems is
broken in two pages that have 3 systems each, or a line is broken into two
lines. I cannot exactly figure out why and when exactly this happens. So is
there a more efficient way to achieve my desired layout requirements? I'd
appreciate it if it can me done with more ease. If a specific score example
is needed I'll provide it later.

You could also use an extra voice for breaks, as explained in NR 4.3.1.
https://lilypond.org/doc/v2.25/Documentation/notation/line-breaking

Kind regards,
Xavier

Reply via email to