lilypond-user
[Top][All Lists]
Advanced

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

Re: footer issue


From: christophe 1710
Subject: Re: footer issue
Date: Mon, 18 Jul 2011 08:54:27 +0200
User-agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0

Wonderfull, it's working exactly like i wanted

thanks a lot

Christophe

Le 16/07/2011 22:41, Matthew Collett a écrit :
On 17/07/2011, at 7:25 am, christophe 1710 wrote:

this need is ot have  [CGY0026]  on all pages instead the last one where i'd 
like to have

tagline = \markup
{
  \override #'(box-padding . 1.0)
  \override #'(baseline-skip . 2.7)
  \box \center-align
    {
    \small \line {
                    Cette partition est éditée par CGY  \musicglyph 
#"clefs.G_change" Prod.
                    \hspace #1.5 Copyright © 2011.
                 }
    }
}
You can use the 'not-last-page' that I've just been asking about in a different 
thread.  Define your tagline as above in the header, and also:

\paper {
  #(define (not-last-page layout props arg)
    (if (not (book-last-page? layout props))
        (interpret-markup layout props arg)
        empty-stencil))
  oddFooterMarkup = \markup {
     \fill-line {
       \on-the-fly #not-last-page "[CGY0026]"
     }
     \fill-line {
       \on-the-fly #last-page \fromproperty #'header:tagline
     }
}}

Better still, for reusability replace the explicit "[CGY0026]" by
\fromproperty #'header:runningFooter

(or whatever name you would like to give the property) and then in your header 
block say
runningFooter = "[CGY0026]"

Best wishes,
Matthew




reply via email to

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