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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to