The adjustments of the previous chapters can also be entered separate
from the music, in the \paper
block,
\paper { ... \context { \StaffContext \set fontSize = #-2 \override Stem #'thickness \remove "Time_signature_engraver" } }
Here
\StaffContext
takes the existing definition Staff
from the identifier
StaffContext
. This works analogously to other contexts, so that
the existing definition of Voice
is in \VoiceContext
.
The statements
\set fontSize = #-2 \override Stem #'thickness \remove "Time_signature_engraver"
affect all staves in the score.
The \set
keyword is optional within the \paper
block, so
fontSize = #-2
will also work.
It is not possible to collect changes in a variable, and apply them to
one \context
definition by referring to that variable.
Read comments on this page, or
add one.
This page is for LilyPond-2.2.6 (stable-branch). |