lilypond-user
[Top][All Lists]
Advanced

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

RE: Producing a title page


From: David Sumbler
Subject: RE: Producing a title page
Date: Fri, 31 Jan 2014 12:17:05 +0000

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 { }
    }
  }
}




reply via email to

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