Can someone please explain to me how lilypond's vertical page layout works?
In particular, I'm writing a full score with one system per page, so I want 
that one system to exactly stretch to the full page. I'm doing this by 
setting max-stretch to some very high value. Unfortunately, there is always 
some space at the bottom left free on all pages except for the first one. On 
page 1, the system goes all the way to the margins, but leave some space 
between the title and the system, on all other pages, there is some space of 
9.46 left over. 

Attached is an example with annotated spacing. Notice how on page 1 there is 
no space left at the bottom, while on all other pages there is some free 
space at the botom and the system ends far above the position where it ends 
on page 1...
On all pages with more than one system, there is no space left at the bottom, 
which makes pages with one and with more systems look really ugly if that 
happens on subsequent pages.

So, how can I make my systems really take up all the available space on the 
page?

Cheers,
Reinhold

PS: PDF is too large for the mailing list, so here's the link:
http://www.fam.tuwien.ac.at/~reinhold/temp/stretching1.pdf

PS2: The additional free space of 9.46 at the bottom of pages with only one 
system exactly equals the sum of all "space after next-padding" on pages with 
multiple pages, so maybe that space is simply reserved for spacing systems, 
but someone missed the fact that on one-system pages that space should not be 
reserved as space...

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.11.48"

#(set-default-paper-size "a5")
#(set-global-staff-size 15)
  
\layout {
  \context { \RemoveEmptyStaffContext  }
  \context { \Score
    \override VerticalAlignment #'max-stretch = #100000
  }
}

\header {
  title = "Der Titel"
  composer = "Komponist"
  subtitel = "Untertitel"
}

\paper {
%       page-limit-inter-system-space = ##t
%       page-limit-inter-system-space-factor = #1.1
  ragged-bottom=##f
  ragged-last-bottom=##f
  annotate-spacing = ##t
}
  
\score {
  \new StaffGroup <<
    \new Staff { \repeat unfold 6 { g'4 g' g' g' \pageBreak} }
    \new Staff { \repeat unfold 6 { g'4 g' g' g' \break } }
    \new Staff { \repeat unfold 4 { g'4 g' g' g' \break } s1*2 }
    \new Staff { \repeat unfold 4 { g'4 g' g' g' \break } s1*2 }
    \new Staff { \repeat unfold 4 { g'4 g' g' g' \break } s1*2 }
    \new Staff { \repeat unfold 2 { g'4 g' g' g' \break } s1*4 }
    \new Staff { \repeat unfold 2 { g'4 g' g' g' \break } s1*4 }
  >>
  \header { piece = "One system per page => 9.46 left at the bottom" }
}


\score {
  \new StaffGroup <<
    \new Staff { \repeat unfold 16 { g'4 g' g' g' \break} }
    \new Staff { \repeat unfold 16 { g'4 g' g' g' \break } }
    \new Staff { \repeat unfold 14 { g'4 g' g' g' \break } s1*2 }
    \new Staff { \repeat unfold 14 { g'4 g' g' g' \break } s1*2 }
    \new Staff { \repeat unfold 4 { g'4 g' g' g' \break } s1*12 }
    \new Staff { \repeat unfold 2 { g'4 g' g' g' \break } s1*14 }
    \new Staff { \repeat unfold 2 { g'4 g' g' g' \break } s1*14 }
  >>
  \header { piece = "Multiple systems per page => no space left at the bottom" }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to