lilypond-user
[Top][All Lists]
Advanced

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

Re: FooterMarkup, tagline, copyright


From: Nick Payne
Subject: Re: FooterMarkup, tagline, copyright
Date: Wed, 28 Sep 2011 17:23:19 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 27/09/11 23:00, Thomas Scharkowski wrote:
Maybe I have overlooked or misunderstood something:
I expected the following code to produce three pages, with "copyright" on the first page, "footer" on the second, and "tagline" on the third.
Removing "oddFooterMarkup" leads to the expected copyright and tagline.

Thank you
Thomas

--
\version "2.15.12"
\header {
  copyright = "copyright"
  tagline = "tagline"
}
\paper {
  oddFooterMarkup = "footer"
}
\relative c' {
 c1 \pageBreak c \pageBreak c
}

I use something like this for scores, which puts the title etc on the first page, page numbers at the bottom of pages 2 to n-1, and the tagline at the bottom of the final page:

%=========================================
\version "2.15.13"

date = #(strftime "%d/%m/%Y" (localtime (current-time)))

\paper {
    %% 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)))

    oddHeaderMarkup = \markup \fill-line { " " }
    evenHeaderMarkup = \markup \fill-line { " " }
    oddFooterMarkup = \markup \fill-line { \column {
        \fontsize #-1
\on-the-fly #not-last-page \on-the-fly #not-first-page \fromproperty #'page:page-number-string
        \on-the-fly #last-page \fromproperty #'header:tagline
    } }
    evenFooterMarkup = \markup \fill-line { \column {
        \fontsize #-1
\on-the-fly #not-last-page \on-the-fly #not-first-page \fromproperty #'page:page-number-string
        \on-the-fly #last-page \fromproperty #'header:tagline
    } }
}

\header {
    title = "Title"
    subtitle = "Subtitle"
    subsubtitle = "Subsubtitle"
    composer = "composer"
    tagline = \markup {
        \fontsize #-3.5 {
\override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7) \box \center-column {
                \line {
Engraved on \date using \with-url #"http://lilypond.org/";
                    \line {
LilyPond \simple #(lilypond-version) (http://lilypond.org/)
                    }
                }
            }
        }
    }
}

\relative c'' {
    \repeat unfold 1024 { c1 }
}
%=========================================

Nick



reply via email to

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