X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fspacing.itely;h=fd7e52140a37ea77a7937519301c77338f48bd81;hb=1423508c355989fa26a8cfe5985b0d6e1ab0a538;hp=f19e9359c20111e36bb084f1648f4941136667b8;hpb=3a991b6913837bac6d0ea429b583295b9263e049;p=lilypond.git diff --git a/Documentation/user/spacing.itely b/Documentation/user/spacing.itely index f19e9359c2..fd7e52140a 100644 --- a/Documentation/user/spacing.itely +++ b/Documentation/user/spacing.itely @@ -7,7 +7,7 @@ version that you are working on. See TRANSLATION for details. @end ignore -@c \version "2.11.64" +@c \version "2.12.0" @ignore GDP TODO list @@ -470,6 +470,17 @@ never consider blank pages in the middle of a score. Default: The value of the page number on the first page. Default: @code{#1}. +@item max-systems-per-page +The maximum number of systems that will be placed on a page. This +is currently supported only by the @code{ly:optimal-breaking} algorithm. +Default: unset. + +@item min-systems-per-page +The minimum number of systems that will be placed on a page. This +may cause pages to be overfilled if it is made too large. This is +currently supported only by the @code{ly:optimal-breaking} algorithm. +Default: unset. + @item page-breaking-between-system-padding @funindex page-breaking-between-system-padding @@ -588,6 +599,13 @@ default, for example The number of systems to be used for a score. Default: unset. +@item systems-per-page +@funindex systems-per-page + +The number of systems that should be placed on each page. +This is currently supported only by the @code{ly:optimal-breaking} algorithm. +Default: unset. + @end table @@ -708,10 +726,6 @@ These fonts are available in any sizes. The context property @rinternals{StaffSymbol}) can be used to tune the size for individual staves. The sizes of individual staves are relative to the global size. -@example - -@end example - @seealso Notation Reference: @@ -1478,10 +1492,10 @@ example @code{NonMusicalPaperColumn} overrides with the special \overrideProperty NonMusicalPaperColumn #'line-break-system-details #'((X-offset . 20) (Y-offset . 40)) -\override NonMusicalPaperColumn +\overrideProperty NonMusicalPaperColumn #'line-break-system-details #'((alignment-offsets . (0 -15))) -\override NonMusicalPaperColumn +\overrideProperty NonMusicalPaperColumn #'line-break-system-details #'((X-offset . 20) (Y-offset . 40) (alignment-offsets . (0 -15))) @end example @@ -1779,23 +1793,26 @@ c^"This text is padded away from the previous text" c^"This text is placed close to the previous text" @end lilypond -TODO: this example doesn't work any more ? -By default, outside-staff objects are placed without regard to -their horizontal distance from the previously-positioned grobs. This +By default, outside-staff objects are placed only to avoid +a horizontal collision with previously-positioned grobs. This can lead to situations in which objects are placed very close to each -other horizontally. Setting @code{outside-staff-horizontal-padding} +other horizontally. The vertical spacing between staffs can +also be set so that outside staff objects are interleaved. +Setting @code{outside-staff-horizontal-padding} causes an object to be offset vertically so that such a situation doesn't occur. @lilypond[quote,ragged-right,relative=2,fragment,verbatim] % the markup is too close to the following note -c2^"Text" +c4^"Text" +c4 c''2 % setting outside-staff-horizontal-padding fixes this R1 \once \override TextScript #'outside-staff-horizontal-padding = #1 -c,,2^"Text" +c,,4^"Text" +c4 c''2 @end lilypond @@ -1916,15 +1933,16 @@ Internals Reference: @rinternals{SpacingSpanner}, @rinternals{NoteSpacing}, @rinternals{StaffSpacing}, -@rinternals{SeparationItem}. +@rinternals{NonMusicalPaperColumn}. @knownissues There is no convenient mechanism to manually override spacing. The -following work-around may be used to insert extra space into a score. +following work-around may be used to insert extra space into a score, +adjusting the padding value as necessary. @example - \once \override Score.SeparationItem #'padding = #1 + \override Score.NonMusicalPaperColumn #'padding = #10 @end example No work-around exists for decreasing the amount of space. @@ -2486,18 +2504,37 @@ that may be altered for page formatting, set } @end lilypond + +@noindent +All layout dimensions are displayed in staff-spaces, regardless +of the units specified in the @code{\paper} or @code{\layout} block. +In the above example, @code{paper-height} has a value of 59.75 +@code{staff-spaces}, and the @code{staff-size} is 20 points (the +default value). Note that: + +@multitable {1 staff-space} {staff-size)/4 * (25.4/72.27) mm} + +@item 1 point +@tab = (25.4/72.27) mm + +@item 1 staff-space +@tab = (@code{staff-size})/4 pts +@item +@tab = (@code{staff-size})/4 * (25.4/72.27) mm + +@end multitable + @noindent -All layout dimensions are displayed in staff spaces, regardless of -the units specified in the @code{\paper} or @code{\layout} block. -For example, @code{paper-height} has a value of 59.75 staff -spaces, using the default staff size of 20 points, which is -equivalent to 148 millimeters, the height of @code{a6} paper in -landscape orientation. The pairs (@var{a},@var{b}) are intervals, -where @var{a} is the lower edge and @var{b} the upper edge of the -interval. +In this case, one @code{staff-space} is approximately equal to +1.757mm. Thus the @code{paper-height} measurement of 59.75 +@code{staff-spaces} is equivalent to 105 millimeters, the height +of @code{a6} paper in landscape orientation. The pairs +(@var{a},@var{b}) are intervals, where @var{a} is the lower +edge and @var{b} the upper edge of the interval. @seealso +@ref{Setting the staff size} Snippets: @rlsr{Spacing}. @@ -2527,9 +2564,14 @@ there is no blank space at the bottom of the page. @end example @item -Force the number of systems. For example, if the default layout -has 11 systems, the following assignment will force a layout with -10 systems. +Force the number of systems. This can help in two ways. Just +setting a value, even the same value as the number of systems +being typeset by default, will sometimes cause more systems to +be fitted onto each page, as an estimation step is then bypassed, +giving a more accurate fit to each page. Also, forcing an actual +reduction in the number of systems may save a further page. For +example, if the default layout has 11 systems, the following +assignment will force a layout with 10 systems. @example \paper @{