| [ << Spacing issues ] | [Top][Contents][Index][ ? ] | [ Changing defaults >> ] | ||
| [ < Score layout ] | [ Up : Score layout ] | [ Setting the staff size > ] | ||
4.2.1 The \layout block
While the \paper block contains settings that relate to the
page formatting of the whole document, the \layout block
contains settings for score-specific layout. To set score layout
options globally, enter them in a toplevel \layout block.
To set layout options for an individual score, enter them in a
\layout block inside the \score block, after the
music. Settings that can appear in a \layout block
include:
- the
layout-set-staff-sizescheme function, - context modifications in
\contextblocks, and -
\papervariables that affect score layout.
The layout-set-staff-size function is discussed in the next
section, Setting the staff size. Context modifications are
discussed in a separate chapter; see
Modifying context plug-ins and
Changing context default settings. The \paper
variables that can appear in a \layout block are:
-
line-width,ragged-rightandragged-last(see\papervariables for widths and margins) -
indentandshort-indent(see\papervariables for shifts and indents) -
system-count(see\papervariables for line breaking)
Here is an example \layout block:
\layout {
indent = 2\cm
\context {
\StaffGroup
\override StaffGrouper #'staff-staff-spacing #'basic-distance = #8
}
\context {
\Voice
\override TextScript #'padding = #1
\override Glissando #'thickness = #3
}
}
See also
Notation Reference: Changing context default settings.
Snippets: Spacing.
| [ << Spacing issues ] | [Top][Contents][Index][ ? ] | [ Changing defaults >> ] | ||
| [ < Score layout ] | [ Up : Score layout ] | [ Setting the staff size > ] | ||