lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: page breaks related to header size


From: Risto Vääräniemi
Subject: Re: page breaks related to header size
Date: Mon, 12 Nov 2007 23:27:16 -0800 (PST)

Hi again,

Paul's example looks very familiar. :-)

On Mon, 12 Nov 2007 Joe Neeman-2 wrote:
> If you can create a bad example without any titles, that example will
> probably 
> still cause problems. If you can send such an example to the mailing list, 
> that would be helpful.

Last night I spent a couple of hours of quality time trying to boil down my
mystery score. I cut off the first page containing the header stuff. Even
now it cannot be called a minimal example but I learned something in the
process. The score now fits onto one page and I've enclosed it below. 

If I comment out the zero-size bottom-margin the last system is split onto
two pages. That was expected but more follows. If I comment out the volta
repeat at the same time the music fits again on one page. The example didn't
work if the last system was not very full, hence the strange first voice.
When the repeat sign is removed the system becomes less crowded and the
stuff fits again on one system. On my original score the "page break limit"
with the volta repeat was 8.3 mm and without the repeat 16 mm. I had to stop
at 16 mm because that messed up the first page, which more tightly set.

In addition, if the "SpacingSpanner #'spacing-increment" value in the Score
block is removed the bottom-margin or the repeat don't have any special
effects anymore. 

*Conclusion:*
It seems that there's some kind of relationship with horizontal and vertical
layout. I wonder if Lilypond leaves some kind of invisible remnants if a
system is crammed too full and this causes mystical page breaks. This is
just a layman's observation and it is probably wrong. :-)


-Risto


%%%%%%%% Snip %%%%%%%%
\version "2.11.32"

#(set-global-staff-size 15.5)

\paper  {
    
    bottom-margin = 0\mm
    
    paper-height = 246\mm
    paper-width = 165\mm
    top-margin = 0\mm
    indent = #(* mm 0)
    line-width = #(* mm 148)
}

first = \relative c' \context Voice = "first"
{
    \time 3/4 \clef treble
    
    \repeat volta 2 {
        
    b'4 b8[ b] b b
    b b b2
    b4 b8[ b] b b
    b b b2 \break
    b,4 b8( b) b( b)
    
    b( b) b( b) b( b)
    b4 b b8( b) 
    b4.( b8) b4
    b b b
    b2. 
    }
}

second = \relative c' \context Voice = "second"
{
    \time 3/4 \stemUp
    b2. b b b b b b b b b
}

third = \relative c \context Voice = "third"
{
    \time 3/4 \stemDown
    b2. b b b b b b b b b
}

words = \lyricmode
{
    Tral, lal, lal, lal, lal, 
    lal, lal, lal, lal, lal!
    Tral, lal, lal, lal, lal, 
    laal, laal, laal, laal, laaal!
    Traal, laaal, laaal, laaal, laaaaaal, 
    laal, laal, laal, laal, laal, laa!
}

\score {  
    \context ChoirStaff <<
        \new Staff = "S" << 
            \first
        >>
        \new Lyrics \lyricsto "first" \words
        \new Lyrics \lyricsto "first" \words
        \new Lyrics \lyricsto "first" \words
        \new Lyrics \lyricsto "first" \words
        
        \new Staff = "A" <<
            \second
        >>
        \new Lyrics \lyricsto "second" \words
        \new Lyrics \lyricsto "second" \words
        \new Lyrics \lyricsto "second" \words
        \new Lyrics \lyricsto "second" \words
        
        \new Staff = "TB" << 
            \clef bass
            \second
            \third
        >>
        \new Lyrics \lyricsto "third" \words
        \new Lyrics \lyricsto "third" \words
        \new Lyrics \lyricsto "third" \words
        \new Lyrics \lyricsto "third" \words
    >>
    \layout 
    {
        \context 
        {
            \Score
                \override SpacingSpanner #'spacing-increment = #3
                \override LyricText #'font-size = #-0.3
        }
        \context 
        {
            \Lyrics  
            \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.5 . 0.5)
        }
    }
}
%%%%% Snip END %%%%%%%%
-- 
View this message in context: 
http://www.nabble.com/page-breaks-related-to-header-size-tf4781502.html#a13720999
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]