lilypond-user
[Top][All Lists]
Advanced

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

Re: header in movements


From: Thomas Morley
Subject: Re: header in movements
Date: Sun, 27 Nov 2016 22:12:35 +0100

2016-11-27 20:39 GMT+01:00 Mark Stephen Mrotek <address@hidden>:
> Abraham,
>
>
>
> Thank you for your response.
>
> Yet the “Title” and “Composer” do not migrate.
>
> Should each movement has its own header?



Hi Mark,

>From NR 3.2.1 Creating titles headers and footers:
A Score Title is derived from fields set at the top of the input file,
modified by fields set in the \book block, further modified by fields
set in the \bookpart block and finally modified by fields set in the
\score block. The resulting values are used to print the Score Title
for that score. Note, though, that only piece and opus fields are
printed by default in Score Titles unless the \paper variable,
print-all-headers, is set to #t.

In your case this means the 'opus' given at toplevel will be printed
for each score. This would be the same with 'piece', if set. But not
for the other possible header-variables, unless print-all-headers is
set #t.

You could do:

(1) clear the relevant fields

\header { opus = "Hob. XVI :27" }
\score { { c''1 }  }
\pageBreak
\score { { d''1 } \header { opus = " " } }
\pageBreak
\score { { e''1 } \header { opus = " " } }

(2) only set 'opus' in first score
\header { title = "TITLE" }
\score { { c''1 } \header { opus = "Hob. XVI :27" }  }
\pageBreak
\score { { d''1 } }
\pageBreak
\score { { e''1 } }

(3) redefine bookTitleMarkup and scoreTitleMarkup (ofcourse the
eplanations in NR will not match anymore)
\paper {
  bookTitleMarkup =
  \markup {
    \column {
      \bookTitleMarkup
      \fill-line {
        \null
        \fromproperty #'header:opus
      }
    }
  }
  scoreTitleMarkup =
  \markup {
    \column {
      \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 }
      \fill-line {
        \fromproperty #'header:piece
        \null
      }
    }
  }
}

\header { title = "TITLE" opus = "Hob. XVI :27" }
\score { { c''1 } }
\pageBreak
\score { { d''1 } }
\pageBreak
\score { { e''1 } }


HTH,
  Harm



reply via email to

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