lilypond-user
[Top][All Lists]
Advanced

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

Re: Page number in footer but tagline on last page?


From: Nick Payne
Subject: Re: Page number in footer but tagline on last page?
Date: Tue, 12 Jan 2010 07:55:01 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

Thanks. Exactly what I wanted.

Nick

On 12/01/10 06:44, Alexander Kobel wrote:
Nick Payne wrote:
Is it possible, if I've chosen to have page numbers at the foot of the page, to replace the page number with a tagline at the foot of the last page? This just prints page number and not the tagline on the last page:

Hi, Nick,


try this:

%% 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)))

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






reply via email to

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