[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
skip 2 page numbers
From: |
James Bailey |
Subject: |
skip 2 page numbers |
Date: |
Mon, 27 Sep 2010 22:41:53 +0200 |
I got from someone (probably kieran) a while back a simple scheme function to
skip the first two page numbers. It works fine, but I'd like to move the page
numbers to the footer.
This, is what I got:
\version "2.11.65-1"
\include "titling-init.ly"
#(define (skip-two-page-numbers layout props arg)
(if (or (> (chain-assoc-get 'page:page-number props -1)
(+ (ly:output-def-lookup layout 'first-page-number) 1))
(eq? (ly:output-def-lookup layout 'print-first-page-number) #t))
(create-page-number-stencil layout props arg)
empty-stencil))
\paper {
oddHeaderMarkup = \markup
\fill-line {
" "
\on-the-fly #not-first-page \fromproperty #'header:instrument
\on-the-fly #skip-two-page-numbers \fromproperty #'page:page-number-string
}
evenHeaderMarkup = \markup
\fill-line {
\on-the-fly #skip-two-page-numbers \fromproperty #'page:page-number-string
\on-the-fly #not-first-page \fromproperty #'header:instrument
" "
}
}
I successfully moved the page numbers to the footer, but I can't get the page
numbers and the skip 2 pages to work simultaneously. Can anyone help?
This is what I tried:
\paper {
oddFooterMarkup = \markup \fill-line {
\on-the-fly #first-page { " " }
\on-the-fly #skip-two-page-numbers { "– Windhauch –" \fromproperty
#'page:page-number-string }
}
For what it's worth, the one that works (but only skipping the first page) is:
\paper {
oddFooterMarkup = \markup \fill-line {
\on-the-fly #first-page { " " }
\on-the-fly #not-first-page { "– Windhauch –" \fromproperty
#'page:page-number-string }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- skip 2 page numbers,
James Bailey <=