|
From: | Nick Payne |
Subject: | Re: Supressing header on first page |
Date: | Thu, 04 Mar 2010 07:39:51 +1100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 |
On 04/03/10 05:33, James Worlton wrote:
This is what I use for the \paper section in a score that has title page only (no notes) on the first page, starts page numbers with "1" at the foot of the page on the first page of music, and prints a tagline with no page number at the foot of the last page: \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") line-width = 18.5\cm first-page-number = 0 print-first-page-number = ##f top-margin = 1.5\cm bottom-margin = 1\cm outer-margin = 1\cm inner-margin = 1.5\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 { \bold \fontsize #2 \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 { \bold \fontsize #2 \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 |
[Prev in Thread] | Current Thread | [Next in Thread] |