lilypond-user
[Top][All Lists]
Advanced

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

Re: Getting markup aligned to the bottom of the last page


From: Nick Payne
Subject: Re: Getting markup aligned to the bottom of the last page
Date: Sat, 23 Oct 2010 10:09:24 +1100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

On 23/10/10 07:33, Frank Steinmetzger wrote:
Hello Group

I am trying to add a descriptive text to the end of a score. I tried reading
the snipped for a title pageĀ¹ and how this accomplishes it, but even after a
couple of years of using lilypond, I still didn't manage to grasp scheme. It's
just too weird. *duckandhide*

This is the paper block I use to get page numbers at the bottom of the page and still have a tagline at the foot of the last page. You should be able to just change the text to be output for the last page situation.

\paper {
    #(define (print-positive-page-number layout props arg)
        (if (> (chain-assoc-get 'page:page-number props -1) 0)
            (create-page-number-stencil layout props arg)
                empty-stencil))

    %% 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)))

    #(set-paper-size "a4")
    print-first-page-number = ##f
    top-margin = 1\cm
    bottom-margin = 0.6\cm
    outer-margin = 1\cm
    inner-margin = 1\cm
    two-sided = ##t
    ragged-bottom = ##f
    ragged-last-bottom = ##f
    ragged-last = ##f
    oddHeaderMarkup = \markup \fill-line { " " }
    evenHeaderMarkup = \markup \fill-line { " " }
    oddFooterMarkup = \markup \fill-line { \column {
\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 {
\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
    } }
}

Nick



reply via email to

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