1 \input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: nl -*-
2 @c This file is part of notation.tely
4 Translation of GIT committish: 1b3da70d81938d19a2b107382bbe25a267cf130b
6 When revising a translation, copy the HEAD committish of the
7 version that you are working on. For details, see the Contributors'
8 Guide, node Updating translation committishes..
12 @c -*- coding: utf-8; mode: texinfo; -*-
15 @chapter Spacing issues
20 @c ode{\score @{...@}} blocks and contains settings that
26 * Horizontal spacing::
27 * Fitting music onto fewer pages::
31 @section Paper and pages
42 @subsection Paper size
49 @c ode{set-default-paper-size} and @code{set-paper-size}.
50 @c ode{set-default-paper-size} must be placed in the toplevel
51 @c ode{set-default-paper-size} sets the size of all pages, whereas
52 @c ode{set-paper-size} only sets the size of the pages that the
53 @c ode{\paper} block applies to. For example, if the @code{\paper}
54 @c ode{\book}, then the paper size will only apply to that book.
55 @c ode{letter}, @code{legal}, and @code{11x17} (also known as
56 @c TODO add a new appendix for paper sizes (auto-generated) -pm
57 @c ode{paper-alist} in the initialization file
60 @c ode{set-default-paper-size}, pages will be rotated by 90
62 @subsection Page formatting
68 * Vertical dimensions::
69 * Horizontal dimensions::
70 * Other layout variables::
73 @node Vertical dimensions
74 @unnumberedsubsubsec Vertical dimensions
80 @c ode{evenHeaderMarkup}) and the title markup
82 @c ode{in}, @code{pt}, and @code{cm} are variables defined in
83 @c ode{\paper} block, @code{page-music-height} and
84 @c ode{page-make-stencil}. The former tells the line-breaking algorithm
85 @ref{Vertical spacing between systems}.
86 @node Horizontal dimensions
87 @unnumberedsubsubsec Horizontal dimensions
92 @c ode{left-margin}, @code{indent}, and @code{short-indent} may
93 @c ode{set-default-paper-size} or @code{set-paper-size}.
94 @c ode{set-default-paper-size} or @code{set-paper-size}.
95 @c ode{20\mm}, as determined by @code{set-default-paper-size} or
96 @c ode{set-paper-size}.
97 @c ode{set-default-paper-size} or @code{set-paper-size}.
99 @node Other layout variables
100 @unnumberedsubsubsec Other layout variables
107 @c ode{between-system-padding} is set to something different than
108 @ref{Vertical spacing between systems}.
109 @c ode{1.4}. For details, see
110 @ref{Vertical spacing between systems}.
114 @section Music layout
120 * Setting the staff size::
124 @node Setting the staff size
125 @subsection Setting the staff size
130 @c index font size, setting
131 @c index staff size, setting
133 @c modern rental material?
135 @c ode{fontSize} and the layout property @code{staff-space} (in
136 @ref{Selecting notation font size}.
137 @c ode{layout-set-staff-size} does not change the distance between the
139 @subsection Score layout
144 @ref{Changing context default settings}.
154 * Optimal page breaking::
155 * Optimal page turning::
156 * Minimal page breaking::
158 * Using an extra voice for breaks::
162 @subsection Line breaking
168 @c index breaking lines
169 @c ode{\break}. This will force a line break at this point. However,
170 @c TODO Check and add para on default for ragged-right
171 @c index regular line breaks
172 @c index four bar music.
176 @c ode{\override Beam #'breakable = ##t}.
178 @subsection Page breaking
183 @c ode{\pageBreak} or @code{\noPageBreak} commands. These commands are
184 @c ode{ragged-last} which have the same effect on vertical spacing:
185 @c ode{ragged-bottom} and @code{ragged-last-bottom}. If set to
186 @c ode{##t} the systems on all pages or just the last page
187 @c ode{ly:optimal-breaking}, @code{ly:page-turn-breaking} and
188 @c ode{ly:minimal-breaking}. The default is @code{ly:optimal-breaking},
190 @c ode{\noPageBreak}.
191 @node Optimal page breaking
192 @subsection Optimal page breaking
197 @c ode{ly:page-turn-breaking}, it has no concept of page turns.
198 @node Optimal page turning
199 @subsection Optimal page turning
204 @c ode{\allowPageTurn} will be inserted at the final @q{special} bar line in
205 @c ode{minimumPageTurnLength} to determine how long a note-free section must
206 @c ode{minimumPageTurnLength} is @code{#(ly:make-moment 1 1)}. If you want
207 @c ode{minimumRepeatLengthForPageTurn} then the @code{Page_turn_engraver} will
208 @c ode{\allowPageTurn}, may also be used at top-level, between scores and
211 @c ode{\allowPageTurn}.
212 @node Minimal page breaking
213 @subsection Minimal page breaking
218 @node Explicit breaks
219 @subsection Explicit breaks
224 @c ode{page-break-permission} is overridden to false, Lily will insert
225 @node Using an extra voice for breaks
226 @subsection Using an extra voice for breaks
231 @c ode{line-break-system-details} and the other useful but long properties of
232 @c ode{NonMusicalPaperColumnGrob}, as explained in @ref{Vertical spacing}.
233 @ref{Vertical spacing}.
234 @node Vertical spacing
235 @section Vertical spacing
240 @c index vertical spacing
241 @c index spacing, vertical
243 * Vertical spacing inside a system::
244 * Vertical spacing between systems::
245 * Explicit staff and system positioning::
246 * Two-pass vertical spacing::
247 * Vertical collision avoidance::
250 @node Vertical spacing inside a system
251 @subsection Vertical spacing inside a system
256 @c index distance between staves
257 @c index staff distance
258 @c index space between staves
259 @c index space inside systems
260 @c ode{max-stretch} is set to zero, disabling stretching. To enable
261 @c ode{keep-fixed-while-stretching} property of
262 @c ode{VerticalAlignment} object. The context parameters
263 @c @lsr{spacing,page-spacing.ly},
264 @c @lsr{spacing,alignment-vertical-spacing.ly}.
265 @node Vertical spacing between systems
266 @subsection Vertical spacing between systems
271 @c ode{page-limit-inter-system-space} variable in the @code{\paper}
272 @c ode{1.3} means that the space can be 30% larger than what it would be
273 @c ode{1}, the spacing would the same as on a ragged-bottom page, like
274 @node Explicit staff and system positioning
275 @subsection Explicit staff and system positioning
280 @c ode{NonMusicalPaperColumn #'line-break-system-details}. Where
281 @c ode{VerticalAxisGroup} and @code{\paper} settings specify vertical padding,
282 @c ode{NonMusicalPaperColumn #'line-break-system-details} specifies exact
283 @c ode{NonMusicalPaperColumn #'line-break-system-details} accepts an associative
284 @c ode{\override} command in @code{\context} blocks and in the
285 @c ode{\with} block. On the other hand, when we override
286 @c ode{NonMusicalPaperColumn} in the middle of note entry,
287 @c ode{\overrideProperty} command:
288 @c \book { } is required in these examples to ensure the spacing
289 @c overrides can be seen between systems. -np
290 @c ode{line-break-system-details} attribute of the
291 @c ode{NonMusicalPaperColumn} grob. Though the
292 @c ode{line-break-system-details} attribute alist accepts many
293 @c ode{X-offset} pair), we need only set the @code{Y-offset} and
294 @c ode{alignment-offsets} pairs to control the vertical startpoint of
295 @c ode{Y-offset} and @code{alignment-offsets} are interpreted as multiples
296 @node Two-pass vertical spacing
297 @subsection Two-pass vertical spacing
304 @node Vertical collision avoidance
305 @subsection Vertical collision avoidance
310 @c ode{outside-staff-priority} tells LilyPond in which order the objects
311 @c ode{outside-staff-priority} (in increasing order). One by one, LilyPond
312 @c ode{outside-staff-padding}.
313 @node Horizontal spacing
314 @section Horizontal spacing
319 @c index horizontal spacing
320 @c index spacing, horizontal
322 * Horizontal spacing overview::
324 * Changing horizontal spacing::
326 * Proportional notation::
329 @node Horizontal spacing overview
330 @subsection Horizontal spacing overview
335 @c ode{shortest-duration-space} in the @rinternals{SpacingSpanner}
336 @c ode{spacing-increment}) of space to the note.
337 @c ode{shortest-duration-space} is set to 2.0, meaning that the
338 @c ode{spacing-increment}) of horizontal space. This space is counted
339 @c ode{lilypond} with the @code{--verbose} option.
340 @c ode{common-shortest-duration} in @rinternals{SpacingSpanner}, then
341 @c (see @rlearning{Engraving}),
342 @c ode{stem-spacing-correction} property in the
343 @node New spacing area
344 @subsection New spacing area
349 @c ode{newSpacingSection}. This is useful when there are
350 @c ode{SpacingSpanner} object, and hence new @code{\override}s
351 @node Changing horizontal spacing
352 @subsection Changing horizontal spacing
357 @c ode{base-shortest-duration} property. Here
358 @c ode{Score.SpacingSpanner #'uniform-stretching}. This
360 @subsection Line length
366 @c index breaking pages
367 @c Although line-width can be set in \layout, it should be set in paper
368 @c block, to get page layout right.
369 @c Setting indent in \paper block makes not much sense, but it works.
370 @c Bit verbose and vague, use examples?
371 @c ode{line-width}. They are set in the @code{\layout} block. They
373 @c index vertical spacing
374 @c Note that for text there are several options for the last line.
375 @c While Knuth TeX uses natural length, lead typesetters use the same
376 @c stretch as the previous line. eTeX uses \lastlinefit to
377 @c interpolate between both these solutions.
378 @node Proportional notation
379 @subsection Proportional notation
384 @c ode{\context} block, or directly in music entry
385 @c ode{#(ly:make-moment 1 16)}, @code{#(ly:make-moment 1 8)}, and
386 @c ode{#(ly:make-moment 3 97)} are all possible as well.
387 @c ode{proportionalNotationDuration}? Usually by a process of trial and error,
388 @c ode{SpacingSpanner}.
389 @c ode{\newSpacingSection}. See @ref{New spacing area}, for more info.
390 @ref{New spacing area}.
391 @node Fitting music onto fewer pages
392 @section Fitting music onto fewer pages
397 @ref{Displaying spacing}.
399 * Displaying spacing::
403 @node Displaying spacing
404 @subsection Displaying spacing
409 @c index spacing, display of layout
410 @c ode{annotate-spacing} in the @code{\paper} block:
411 @c need to have \book{} otherwise we get the separate systems. -hwn
412 @c ode{staff-spaces}, and the @code{staff-size} is 20 points (the
413 @c ode{staff-spaces} is equivalent to 105 millimeters, the height
414 @ref{Setting the staff size}.
415 @node Changing spacing
416 @subsection Changing spacing
421 @ref{Page formatting},
422 @ref{Changing horizontal spacing}.
424 @c -- SKELETON FILE --