lilypond-user
[Top][All Lists]
Advanced

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

Re: Page headings


From: Jan-Peter Voigt
Subject: Re: Page headings
Date: Wed, 18 Jun 2014 14:21:32 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi Peter,

Am 18.06.2014 13:57, schrieb Peter Meanwell:
> How do I put the name of the piece at the top of 
> each page (except the first page)?

\markup \on-the-fly is what you need:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paper {
  oddHeaderMarkup = \markup \fill-line {
    % interpret markup if its not first page of the current book(part)
    \on-the-fly #not-first-page \line { "'" \fromproperty #'header:title
"'" }
  }
  evenHeaderMarkup = \markup \fill-line {
    % interpret markup if its not first page of the current book(part)
    \on-the-fly #not-first-page \line { "'" \fromproperty #'header:title
"'" }
  }
}

\header {
  title = "The Title"
}
\repeat unfold 3
{
  \repeat unfold 50 c''1
  \pageBreak
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

HTH
Jan-Peter






reply via email to

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