lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: (no subject)


From: Remy CLAVERIE
Subject: Re: (no subject)
Date: Thu, 7 Aug 2014 17:02:08 +0200 (CEST)

Bonjour Jean-François,

Merci de cette réponse, mais il me semble que le pb provient de l'utilisation de 'define-markup-command' car la variable 'last-part-page' n'est pas accessible dans ce cas.

 

Merci pour tout,

 

Rémy

 

 

> Message du 07/08/14 14:18
> De : "Seventies" <address@hidden>
> A : address@hidden
> Copie à :
> Objet : Re: (no subject)
>
> Bonjour Rémy,
>
> Voici un code transmis par Xavier, pour les headers et footers. Je n'en
> comprends pas toutes les subtilités, mais tout fonctionne parfaitement :
>
> #(define (not-last-page layout props arg)
> (if (not (book-last-page? layout props))
> (interpret-markup layout props arg)
> empty-stencil))
>
> print-page-number = ##t
>
> evenHeaderMarkup = \markup {
> \column {
> \fill-line {
> {
> \abs-fontsize #10 \on-the-fly #print-page-number-check-first
> \fromproperty #'page:page-number-string
> }
> {
> \center-column {
> \lower #2 \fontsize #-1 \thisPart
> }
> }
> {
> " "
> }
> }
> }
> }
>
> oddHeaderMarkup = \markup {
> \column {
> \fill-line {
> {
> " "
> }
> {
> \center-column {
> \lower #2 \fontsize #-1 \thisPart
> }
> }
> {
> \abs-fontsize #10 \on-the-fly #print-page-number-check-first
> \fromproperty #'page:page-number-string
> }
> }
> }
> }
>
> evenFooterMarkup = \markup {
> \column {
> \fill-line {
> %% Copyright header field only on first page.
> \on-the-fly #first-page \firstCopyRight
> }
> %% Ajout footer sur toutes les pages SAUF la toute première
> %% et la toute dernière page
> \center-column {
> \on-the-fly #not-first-page \on-the-fly #not-last-page
> { \thisBigTitle }
> \on-the-fly #not-first-page \on-the-fly #not-last-page
> { \reference }
> }
> %% Fin footer ajouté
> \fill-line {
> %% Tagline header field only on last page.
> \on-the-fly #last-page \fromproperty #'header:tagline
> }
> }
> }
>
> oddFooterMarkup = \markup {
> \column {
> \fill-line {
> %% Copyright header field only on first page.
> \on-the-fly #first-page \firstCopyRight
> }
> %% Ajout footer sur toutes les pages SAUF la toute première
> %% et la toute dernière page
> \center-column {
> \on-the-fly #not-first-page \on-the-fly #not-last-page
> { \thisBigTitle }
> \on-the-fly #not-first-page \on-the-fly #not-last-page
> { \reference }
> }
> %% Fin footer ajouté
> \fill-line {
> %% Tagline header field only on last page.
> \on-the-fly #last-page \fromproperty #'header:tagline
> }
> }
> }
>
>
> Les variables telles que thisPart, firstCopyRight, ... doivent avoir été
> définies, d'autres telles que tagLine doivent être définies dans le bloc
> \header.
>
> Cordialement,
>
> Jean-François
>
>
>
> --
> View this message in context: http://lilypond-french-users.1298960.n2.nabble.com/no-subject-tp7581584p7581585.html
> Sent from the LilyPond French Users mailing list archive at Nabble.com.
>
> _______________________________________________
> liste de diffusion lilypond-user-fr
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user-fr
>

reply via email to

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