On 04/03/10 05:33, James Worlton wrote:
On Sat, Feb 20, 2010 at 12:11 AM, Brett McCoy <[email protected]
<mailto:[email protected]>> wrote:
I am using oddHeaderMarkup and evenHeaderMarkup to put running headers
(title, composer) on each page of a score, but want to suppress it on
the first page of the score (where the main header is). I can't seem
to find anything in the snippets or notation reference on how to
suppress this on the first page. Preventing the page number on the
first page I have handled using \on-the-fly
#print-page-number-check-first, is there something similar for
headers?
-- Brett
------------------------------------------------------------
I am very interested in this question as well, and haven't seen a
solution posted
yet (or in any of the documentation/snippets). So I am shamelessly
reactivating
the thread.
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
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user