[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add not-last-page in titling-init.ly
From: |
Nick Payne |
Subject: |
Re: add not-last-page in titling-init.ly |
Date: |
Thu, 31 May 2012 04:39:35 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
On 31/05/12 00:09, Kai Lautenschläger wrote:
... von unterwegs gesendet!
Am 30.05.2012 um 15:11 schrieb -Eluze<address@hidden>:
is it feasible to add not-last-page in titling-init.ly
[...]
this gives more flexibility in defining header-/
yes! I would appriciate that very much.
I would support that as well. At the moment I add it to most of my
scores inside the paper block, so that I can have the page numbers in
the footer but a tag line on the final page. eg:
\paper {
#(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")
ragged-bottom = ##f
ragged-last-bottom = ##f
ragged-last = ##f
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 = "Ständchen"
composer = "Franz Schubert"
tagline = \markup \fontsize #-3.5
{
Engraved on \date using \with-url #"http://lilypond.org/"
{ LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
}
}
Nick