4.6.5 Avoiding tweaks with slower processing

LilyPond can perform extra checks while it processes input files. These checks will take extra time to perform, but fewer manual tweaks may be required to obtain an acceptable result. If a text script or part of the lyrics extends over the margins these checks will compress that line of the score just enough to fit within the margins.

To be effective under all circumstances these checks must be enabled by placing the overrides in a Score \with block, rather than in-line in music, as follows:

\new Score \with {
  % Makes sure text scripts and lyrics are within the paper margins
  \override PaperColumn #'keep-inside-line = ##t
  \override NonMusicalPaperColumn #'keep-inside-line = ##t
} {
   ..
}

However, keep-inside-line is expensive and the recommendation is to not enable it, to allow for faster processing, until creating a final version. This way you do not need to manually add \break commands to avoid text running off the right-hand side of the page.


Más nyelvek: deutsch, español, français, 日本語, nederlands.

LilyPond — Learning Manual