]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/nl/notation/spacing.itely
Doc: [nl] add tutorial.itely.
[lilypond.git] / Documentation / nl / notation / spacing.itely
1 \input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: nl -*-
2 @c This file is part of notation.tely
3 @ignore
4     Translation of GIT committish: 1b3da70d81938d19a2b107382bbe25a267cf130b
5
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..
9 @end ignore
10
11
12 @c -*- coding: utf-8; mode: texinfo; -*-
13 @c \version "2.12.0"
14 @node Spacing issues
15 @chapter Spacing issues
16
17 @untranslated
18
19
20 @c ode{\score @{...@}} blocks and contains settings that
21 @menu
22 * Paper and pages::
23 * Music layout::
24 * Breaks::
25 * Vertical spacing::
26 * Horizontal spacing::
27 * Fitting music onto fewer pages::
28 @end menu
29
30 @node Paper and pages
31 @section Paper and pages
32
33 @untranslated
34
35
36 @menu
37 * Paper size::
38 * Page formatting::
39 @end menu
40
41 @node Paper size
42 @subsection Paper size
43
44 @untranslated
45
46
47 @c index paper size
48 @c index page 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
58 @c index orientation
59 @c index landscape
60 @c ode{set-default-paper-size}, pages will be rotated by 90
61 @node Page formatting
62 @subsection Page formatting
63
64 @untranslated
65
66
67 @menu
68 * Vertical dimensions::
69 * Horizontal dimensions::
70 * Other layout variables::
71 @end menu
72
73 @node Vertical dimensions
74 @unnumberedsubsubsec Vertical dimensions
75
76 @untranslated
77
78
79 @c ode{6\mm}.
80 @c ode{evenHeaderMarkup}) and the title markup
81 @c ode{5\mm}.
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
88
89 @untranslated
90
91
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}.
98 @c ode{line-width}.
99 @node Other layout variables
100 @unnumberedsubsubsec Other layout variables
101
102 @untranslated
103
104
105 @c ode{5}.
106 @c ode{#1}.
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}.
111 @c ode{##t}.
112 @c ode{##f}.
113 @node Music layout
114 @section Music layout
115
116 @untranslated
117
118
119 @menu
120 * Setting the staff size::
121 * Score layout::
122 @end menu
123
124 @node Setting the staff size
125 @subsection Setting the staff size
126
127 @untranslated
128
129
130 @c index font size, setting
131 @c index staff size, setting
132 @quotation
133 @c modern rental material?
134 @end quotation
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
138 @node Score layout
139 @subsection Score layout
140
141 @untranslated
142
143
144 @ref{Changing context default settings}.
145 @node Breaks
146 @section Breaks
147
148 @untranslated
149
150
151 @menu
152 * Line breaking::
153 * Page breaking::
154 * Optimal page breaking::
155 * Optimal page turning::
156 * Minimal page breaking::
157 * Explicit breaks::
158 * Using an extra voice for breaks::
159 @end menu
160
161 @node Line breaking
162 @subsection Line breaking
163
164 @untranslated
165
166
167 @c index line breaks
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.
173 @c TODO Check this
174 @c ode{\break},
175 @c ode{\noBreak}.
176 @c ode{\override Beam #'breakable = ##t}.
177 @node Page breaking
178 @subsection Page breaking
179
180 @untranslated
181
182
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},
189 @c ode{\pageBreak},
190 @c ode{\noPageBreak}.
191 @node Optimal page breaking
192 @subsection Optimal page breaking
193
194 @untranslated
195
196
197 @c ode{ly:page-turn-breaking}, it has no concept of page turns.
198 @node Optimal page turning
199 @subsection Optimal page turning
200
201 @untranslated
202
203
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
209 @c ode{\pageTurn},
210 @c ode{\noPageTurn},
211 @c ode{\allowPageTurn}.
212 @node Minimal page breaking
213 @subsection Minimal page breaking
214
215 @untranslated
216
217
218 @node Explicit breaks
219 @subsection Explicit breaks
220
221 @untranslated
222
223
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
227
228 @untranslated
229
230
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
236
237 @untranslated
238
239
240 @c index vertical spacing
241 @c index spacing, vertical
242 @menu
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::
248 @end menu
249
250 @node Vertical spacing inside a system
251 @subsection Vertical spacing inside a system
252
253 @untranslated
254
255
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
267
268 @untranslated
269
270
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
276
277 @untranslated
278
279
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
298
299 @untranslated
300
301
302 @quotation
303 @end quotation
304 @node Vertical collision avoidance
305 @subsection Vertical collision avoidance
306
307 @untranslated
308
309
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
315
316 @untranslated
317
318
319 @c index horizontal spacing
320 @c index spacing, horizontal
321 @menu
322 * Horizontal spacing overview::
323 * New spacing area::
324 * Changing horizontal spacing::
325 * Line length::
326 * Proportional notation::
327 @end menu
328
329 @node Horizontal spacing overview
330 @subsection Horizontal spacing overview
331
332 @untranslated
333
334
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
345
346 @untranslated
347
348
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
353
354 @untranslated
355
356
357 @c ode{base-shortest-duration} property.  Here
358 @c ode{Score.SpacingSpanner #'uniform-stretching}.  This
359 @node Line length
360 @subsection Line length
361
362 @untranslated
363
364
365 @c index page breaks
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
372 @c index page layout
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
380
381 @untranslated
382
383
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
393
394 @untranslated
395
396
397 @ref{Displaying spacing}.
398 @menu
399 * Displaying spacing::
400 * Changing spacing::
401 @end menu
402
403 @node Displaying spacing
404 @subsection Displaying spacing
405
406 @untranslated
407
408
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
417
418 @untranslated
419
420
421 @ref{Page formatting},
422 @ref{Changing horizontal spacing}.
423
424 @c -- SKELETON FILE --