lilypond-user
[Top][All Lists]
Advanced

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

Re: displaying title of the piece in headers (along with page numbers)


From: Helge Kruse
Subject: Re: displaying title of the piece in headers (along with page numbers)
Date: Fri, 22 Oct 2010 19:11:10 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0

Am 21.10.2010 11:31, schrieb Janek Warchoł:
Hi,

how can i put some text into the header of all pages except the first page?
I'd like to have the title of the piece displayed there, not only the page
number. It would be very helpful, for example when printouts of several
different scores mix and i have to sort them...
I've read NR 3.2.1 and NR 3.2.2 and didn't found the answer.
Thanks in advance,
Jan

Here an excerpt from my score as an example. Would it work for you?

\header {
  title = "music"
  instrument = "harp"
  composer = "me"
}

\paper {
  oddHeaderMarkup = \markup \fill-line {
    \on-the-fly #not-first-page \fromproperty #'header:composer
    \null
    \on-the-fly #not-first-page \fromproperty #'header:instrument
    \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
    \on-the-fly #not-first-page \fromproperty #'header:instrument
    \null
    \on-the-fly #not-first-page \fromproperty #'header:composer
  }
}


Helge



reply via email to

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