lilypond-user
[Top][All Lists]
Advanced

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

Suppress the header on first bookpart page


From: Helge Kruse
Subject: Suppress the header on first bookpart page
Date: Sun, 14 Apr 2013 11:16:18 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

I want to write all instrument's part in one book. I use a bookpart for each instrument. The headline should identify the piece, instrument and page to reduce the time for sort pages when all sheets dropped to the floor. ;-)

For each instrument I have a header. How I can I suppress the head line for the pages with header. That's the first page of a bookpart?

Regards
Helge

Example:

\version "2.16.0"

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

\header {
  title = "Melancholia"
  composer = "The one who must not be named"
}

music = \relative c' { \repeat unfold 200 { c2 r4 r } }

\book {
  \bookpart {
    \header { instrument = "Violino 1" }
    \score { \music }
  }
  \bookpart {
    \header { instrument = "Violino 2" }
    \score { \music }
  }
}





reply via email to

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