[Top][All Lists]

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

Re: (Re-post) Printing page numbers from a given page

From: Aaron Hill
Subject: Re: (Re-post) Printing page numbers from a given page
Date: Thu, 02 Dec 2021 17:44:42 -0800
User-agent: Roundcube Webmail/1.4.9

On 2021-12-02 4:55 pm, Paolo Prete wrote:
I re-post this because I noted later that the answer I obtained does not
fit what I asked.
I wonder if is there a way to start printing page numbers of a score from a
given page.

For example: if I want to start printing page numbers from page 3, page
numbers 1 and 2, on first and second page, have to be omitted.

(note that this is not the property: first-page-number = 3; it is instead somewhat similar to print-first-page-number = ##f, but extended to multiple

Customize the header:

\version "2.22.0"

#(define ((page-number-on-or-after num) layout props arg)
  (if (< (chain-assoc-get 'page:page-number props -1) num)
   empty-stencil (interpret-markup layout props arg)))

\paper {
  #(set-paper-size "a7landscape")

  oddHeaderMarkup =
  \markup \fontsize #12 \fill-line {
    \on-the-fly #(page-number-on-or-after 3)
      \fromproperty #'page:page-number-string
  evenHeaderMarkup = ##f

  page-count = #5

{ \repeat unfold 68 { b'4 4 2 } \bar "|." }

-- Aaron Hill

reply via email to

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