2017-04-26 23:20 GMT+02:00 Lukas-Fabian Moser <l...@gmx.de>:
> As far as I can see, the default line breaking behaviour in Lilypond is
> roughly as follows:
> "Break where forced by user (\break), add additional line breaks 'for best
> result'."
>
> By issuing \override NonMusicalPaperColumn.line-break-permission = ##f, this
> behaviour may be changed to:
> "Break where forced by user (\break) and nowhere else".
>
> Is there a way to get something like
> "Break at most where allowed by user"?
>
> I.e. I want to tell Lilypond explicitly every point at which a line break
> would be acceptable, but I would like the program to determine which of
> these places to actually use for a line break.

Checkout:

\once
\override Score.NonMusicalPaperColumn.line-break-penalty = #-1

Also, see:
See IR 3.2.85 paper-column-interface

 line-break-penalty (number)

    Penalty for a line break at this column. This affects the choices
of the line breaker; it avoids a line break at a column with a
positive penalty and prefers a line break at a column with a negative
penalty.

Cheers,
  Harm


>
> (Background: Files containing lots of short exercises for use in a
> presentation, three to eight measures each; line breaks in the middle of an
> exercise being undesirable, and page breaks in the middle of an exercise
> being a no-go.)
>
> Best
> Lukas
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to