lilypond-user
[Top][All Lists]
Advanced

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

Re: Notation on page 2 of same score


From: Timothy Lanfear
Subject: Re: Notation on page 2 of same score
Date: Sat, 3 Oct 2020 11:35:51 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 03/10/2020 05:43, David Wright wrote:
On Fri 02 Oct 2020 at 21:02:37 (+0200), Lukas-Fabian Moser wrote:

but there must be an easy way to simply incorporate that
command within the lilypond file.
I do not have enough time right now to try and understand what you
mean by that, sorry.
ditto.

Setting the page headers will probably do what you want, achieved by adding some extra lines to the \paper block. The page number and the title from the header block are printed in my example. The two items are mirrored on alternate pages to keep the page number on the outside corner. No header is printed on the first page of the piece.

\paper {
  top-margin = 12
  left-margin = 18
  right-margin = \left-margin
  markup-system-spacing.basic-distance = 10
  system-system-spacing.basic-distance = 15
  last-bottom-spacing.basic-distance = 10
  oddHeaderMarkup = \markup { \fill-line {
     \on-the-fly #not-first-page \fromproperty #'header:title
     \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
    }
  }
  evenHeaderMarkup = \markup { \fill-line {
     \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
     \on-the-fly #not-first-page \fromproperty #'header:title
    }
  }
}

--
Timothy Lanfear, Bristol, UK.




reply via email to

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