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

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

Reply via email to