| [ << Tweaking output ] | [Top][Contents][Index][ ? ] | [ Templates >> ] | ||
| [ < Other sources of information ] | [ Up : Further tweaking ] | [ Advanced tweaks with Scheme > ] | ||
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 using \context within a \layout
block, rather than in-line in music, as follows:
\score {
{ …notes… }
\layout {
\context {
\Score
% 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.
| [ << Tweaking output ] | [Top][Contents][Index][ ? ] | [ Templates >> ] | ||
| [ < Other sources of information ] | [ Up : Further tweaking ] | [ Advanced tweaks with Scheme > ] | ||
Other languages: česky, deutsch, español, français, 日本語, nederlands.