On 28/10/13 11:03, Joshua Nichols wrote:
I'm not familiar enough to know how well LilyPond works with creating
separate title pages...
Is there a feasible way of doing this within LilyPond?
Here's my template for this. It allows for multiple pieces within the
document - just delete the additional bootparts and the
\markuplist \table-of-contents if you only have one piece and don't need
a ToC.
\version "2.17.29"
date = #(strftime "%d/%m/%Y" (localtime (current-time)))
\paper {
#(define (print-positive-page-number layout props arg)
(if (> (chain-assoc-get 'page:page-number props -1) 0)
(create-page-number-stencil layout props arg)
empty-stencil))
#(define (not-last-page layout props arg)
(if (and (chain-assoc-get 'page:is-bookpart-last-page props #f)
(chain-assoc-get 'page:is-last-bookpart props #f))
empty-stencil
(interpret-markup layout props arg)))
print-all-headers = ##f
first-page-number = -1
tocItemMarkup = \tocItemWithDotsMarkup
oddHeaderMarkup = \markup \fill-line { " " }
evenHeaderMarkup = \oddHeaderMarkup
oddFooterMarkup = \markup \fill-line { \column { \fontsize #-1
\on-the-fly #not-first-page \on-the-fly #not-last-page
\on-the-fly #print-positive-page-number \fromproperty #'page:page-number-string
\on-the-fly #last-page \fromproperty #'header:tagline
} }
evenFooterMarkup = \oddFooterMarkup
}
\header {
title = \markup {
\lower #50 \left-align \center-column {
\fontsize #4 \bold "Overall Title"
}
}
subtitle = \markup {
\lower #4 \left-align \center-column {
\fontsize #1 \bold "Overall Subtitle"
}
}
tagline = \markup {
\fontsize #-3.5 {
\override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7) \box \center-column {
\line {
Engraved on \date using \with-url #"http://lilypond.org/"
\line {
LilyPond \simple #(lilypond-version) (http://lilypond.org/)
}
}
}
}
}
}
\pageBreak
\markuplist \table-of-contents
\markup \null
\bookpart {
\paper {
print-page-number = ##t
}
\header {
title = \markup { \fromproperty #'toc:number " Piece One" } % overrides overall title
subtitle = ##f % prevent overall subtitle from appearing
composer = "Composer One"
}
\tocItem \markup { 1. Piece One }
\relative c' { c1 }
}
\bookpart {
\paper {
print-page-number = ##t
}
\header {
title = \markup { \fromproperty #'toc:number " Piece Two" } % overrides overall title
subtitle = ##f % prevent overall subtitle from appearing
composer = "Composer Two"
}
\tocItem \markup { 2. Piece Two }
\relative c' { c1 }
}
\bookpart {
\paper {
print-page-number = ##t
}
\header {
title = \markup { \fromproperty #'toc:number " Piece Three" } % overrides overall title
subtitle = ##f % prevent overall subtitle from appearing
composer = "Composer Three"
}
\tocItem \markup { 3. Piece Three }
\relative c' { c1 }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user