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: Alexander Kobel
Subject: Re: Page number in footer but tagline on last page?
Date: Mon, 11 Jan 2010 20:44:10 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

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]