lilypond-user
[Top][All Lists]
Advanced

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

Re: page-number overwrites tagline


From: Nick Payne
Subject: Re: page-number overwrites tagline
Date: Mon, 22 Mar 2010 07:15:24 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

Someone gave me the fix for this a while ago:

\paper {
    #(define (print-positive-page-number layout props arg)
        (if (> (chain-assoc-get 'page:page-number props -1) 0)
            (create-page-number-stencil layout props arg)
                empty-stencil))

    %% cf. ly/titling-init.ly
    #(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)))

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

Nick

On 22/03/10 06:12, Werner wrote:
Hello,

with the modified example of the doc
\paper {
   print-page-number = ##t
   print-first-page-number = ##t
   oddHeaderMarkup = \markup \fill-line { " " }
   evenHeaderMarkup = \markup \fill-line { " " }
   oddFooterMarkup = \markup { \fill-line {
      \bold \fontsize #2 \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string } }
   evenFooterMarkup = \markup { \fill-line {
      \bold \fontsize #2 \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string } }
}

I was happy to get the page-number centered at the bottom.
But unfortunately it overwrites the tagline, which should (at least I would like
that) appear at the last page above the page-number.

So my standard-tagline
\header {
tagline = \markup \fontsize #-2
"Notensatz mit dem freien Programm LilyPond (www.lilypond.org)"
}
is lost.

Werner



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user






reply via email to

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