bug-lilypond
[Top][All Lists]
Advanced

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

Strange interaction between page number settings and footnote


From: Nick Payne
Subject: Strange interaction between page number settings and footnote
Date: Thu, 01 Mar 2012 14:19:49 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

In the following, for some reason the footnote appears three times on the first page, overlaying the lowest stave, and once each on the second and third pages. Also, on page two, the footnote is below the page number, and on page three it is above the tagline.

It's some interaction with the on-the-fly settings in the paper block, as if I comment out \on-the-fly #not-last-page, then the footnote on page three disappears, and if I also comment out \on-the-fly #last-page \fromproperty #'header:tagline, then the footnotes on pages two and three disappear and the footnote appears only twice on the first page.

\version "2.15.31"

\paper {
    #(define (not-last-page layout props arg)
        (if (and (chain-assoc-get 'page:is-bookpart-last-page props #f)
            (chain-assoc-get 'page:is-last-bookpart props #f))
            empty-stencil
            (interpret-markup layout props arg)))

    oddHeaderMarkup = \markup \null
    evenHeaderMarkup = \markup \null
    oddFooterMarkup = \markup \fill-line { \center-column {
            \on-the-fly #print-page-number-check-first
            \on-the-fly #not-first-page
            \on-the-fly #not-last-page
            \fromproperty #'page:page-number-string
            \on-the-fly #last-page \fromproperty #'header:tagline
        }
    }
    evenFooterMarkup = \oddFooterMarkup
}

\relative c' {
\footnote #'(0.5 . 5) #'NoteHead \markup { Now is the time for all good men to come to the aid of the party }
    c4 c c c
    \repeat unfold 900 { c4 }
}

Nick



reply via email to

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