lilypond-user
[Top][All Lists]
Advanced

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

Re: header and page numbers


From: David Bobroff
Subject: Re: header and page numbers
Date: Tue, 29 Jul 2008 21:15:52 +0000
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

Herbert,

Thank you, it did exactly what I needed!

David

Lilypond Mailing List wrote:
This snippet works for me:
have songTitel and myName (like "by MySelf") defined and use:

oddHeaderMarkup = \markup
\fill-line {
 %% force the header to take some space, otherwise the
 %% page layout becomes a complete mess.
\on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
 \on-the-fly #not-first-page { \normalsize \songTitel
                 \tiny \myName
             }
  % it is filled... " "
}

evenHeaderMarkup = \markup
\fill-line {
\on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
 \on-the-fly #not-first-page { \normalsize \songTitel
                 \tiny \myName
                 }
}

Hope that helps
Herbert

As for getting the title instead of the instrument as a running header after page one I tried editing titling-init.ly to change:

oddHeaderMarkup = \markup
\fill-line {
  %% force the header to take some space, otherwise the
  %% page layout becomes a complete mess.
  " "
  \on-the-fly #not-first-page \fromproperty #'header:instrument
\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:instrument
  " "
}

...by changing #'header:instrument to #'header:title

It didn't work.  The odd/even HeaderMarkup simply disappeared.






reply via email to

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