On Thu, 2014-01-30 at 11:09 -0800, Mark Stephen Mrotek wrote:
> David,
> 
> Putting a "\pagebreak" after the first header and before the first score
> seems to accomplish what you want.
> 
> Mark

Thanks for that - it seems to be one permutation I hadn't tried!

I must confess that I find some aspects of LilyPond a little hard to
fathom.  For instance, the order in which things need to be done is not
always obvious, e.g. a \header section has to come after the music in a
\score section, yet obviously the header is printed first.

Anyway, I have now come up with the following, which seems to work.  No
doubt it could be improved, so any suggestions would be welcome.

\version "2.18.0"

title    = "Partita"
subtitle = "for solo marimba"

\book {
  \pageBreak
  \paper {
    indent = 0\mm
    scoreTitleMarkup = \markup {
      \fill-line {
        \null
        \fontsize #3 \bold \fromproperty #'header:piece
        \null
      }
    }
  }
  \markup {
    \column {
      \vspace #15
      \fill-line { \abs-fontsize #48 \bold \title }
      \vspace #1.5
      \fill-line { \abs-fontsize #20 \subtitle }
    }
  }
  \pageBreak
    
  \bookpart {
    \header {
      title    = \markup { \abs-fontsize #24 \title }
      subtitle = \subtitle
    }
    \markup { \vspace #1 }
    \score {
      { c'1 c' }
      \header { piece = "I.  Allemande" }
      \layout { }
    }
    \pageBreak
        
    \score {
      { d'1 d' }
      \header { piece = "II.  Courante" }
      \layout { }
    }
  }
}


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

Reply via email to