]> git.donarmstrong.com Git - lilypond.git/commitdiff
Set max-stretch to zero by default.
authorJoe Neeman <joeneeman@gmail.com>
Sun, 4 Nov 2007 20:56:02 +0000 (07:56 +1100)
committerJoe Neeman <joeneeman@gmail.com>
Sun, 11 Nov 2007 00:49:26 +0000 (11:49 +1100)
Documentation/user/spacing.itely
scm/define-grobs.scm

index e33182425b6addc43314cc399233a42d88346e37..2c874d6bb7467673a3eff504407a8c40a1ce1b70 100644 (file)
@@ -974,8 +974,10 @@ After page breaks are determined, the vertical spacing within each
 system is reevaluated in order to fill the page more evenly; if a page
 has space left over, systems are stretched in order to fill that space.
 The amount of stretching can be configured though the @code{max-stretch}
-property of the @internalsref{VerticalAlignment} grob.  To disable this
-stretching entirely, set @code{max-stretch} to zero.
+property of the @internalsref{VerticalAlignment} grob. By default,
+@code{max-stretch} is set to zero, disabling stretching. To enable
+stretching, a sane value for @code{max-stretch}
+is @code{ly:align-interface::calc-max-stretch}.
 
 In some situations, you may want to stretch most of a system while
 leaving some parts fixed.  For example, if a piano part occurs in the
@@ -997,7 +999,11 @@ the second piano staff:
   ragged-last-bottom = ##f
 }
 
-\score {
+\new Score \with
+{
+  \override VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch
+}
+{
 \new GrandStaff
 <<
   \new StaffGroup
index ef27cbd1e3bfe4fc845f610a3abc39b56c2de299..a93a209eb76c02554f6356a8eb7f2e30bb4848e6 100644 (file)
        (stacking-dir . -1)
        (padding . 0.5)
        (vertical-skylines . ,ly:axis-group-interface::combine-skylines)
-       (max-stretch . ,ly:align-interface::calc-max-stretch)
+       (max-stretch . 0)
        (meta . ((class . Spanner)
                 (object-callbacks . ((Y-common . ,ly:axis-group-interface::calc-y-common)))
                 (interfaces . (align-interface