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