lilypond-user
[Top][All Lists]
Advanced

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

Re: Page Headers


From: Pierre Perol-Schneider
Subject: Re: Page Headers
Date: Wed, 14 Jan 2015 09:45:54 +0100

Hi Chris,

Do you mean that you modifed titling-init.ly ?
If yes, I don't think it is a good idea...

How about :

\version "2.18.2"

\paper {
  oddHeaderMarkup = \markup\on-the-fly #not-part-first-page
    \fill-line {
      \null
      \fromproperty #'header:title
      \on-the-fly \print-page-number-check-first
        \fromproperty #'page:page-number-string
    }
  evenHeaderMarkup = \markup\on-the-fly #not-part-first-page
  \fill-line {
    \on-the-fly \print-page-number-check-first
        \fromproperty #'page:page-number-string
    \fromproperty #'header:title
    \null
  }
}

\header {
  title = "My Title"
}

{
  \repeat unfold 50 { s1*4 \break }
  \bar "|."
}


HTH,
Pierre

2015-01-14 0:33 GMT+01:00 Chris Trahan <address@hidden>:
I figured it out. I went into the ly/titling-init.ly file and changed this
line

\on-the-fly #not-part-first-page \fromproperty #'header:instrument

to this line

\on-the-fly #not-part-first-page \fromproperty #'header:title

in both the oddHeaderMarkup variable and the evenHeaderMarkup variable.

Chris



--
View this message in context: http://lilypond.1069038.n5.nabble.com/Page-Headers-tp170410p170429.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


reply via email to

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