LilyPond 記譜法リファレンス: 4.2.1 The \layout block

### 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-size` scheme function,
- context modifications in `\context` blocks, and
- `\paper` variables 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-right` and `ragged-last` (see `\paper` variables for widths and margins)
- `indent` and `short-indent` (see `\paper` variables for shifts and indents)
- `system-count` (see `\paper` variables 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
>       }
>     }

#### 参照

Notation Reference: Changing context default settings.

Snippets: Spacing.

他の言語: English, deutsch, español, français

#### LilyPond — 記譜法リファレンス