Titles are created for each \score block, and over a
\book.
The contents of the titles are taken from the \header blocks.
The header block for a book supports the following
titlesubtitlesubsubtitlepoetcomposermeteropusarrangerinstrumentdedicationpieceThis is a demonstration of the fields available,
\paper {
linewidth = 11.0\cm
vsize = 10.0\cm
}
\book {
\header {
title = "Title,"
subtitle = "the subtitle,"
subsubtitle = "and the sub sub title"
poet = "Poet"
composer = "Composer"
texttranslator = "Text Translator"
meter = "Meter"
arranger = "Arranger"
instrument = "Instrument"
piece = "Piece"
}
\score {
\header {
piece = "piece1"
opus = "opus1"
}
{ c'1 }
}
\score {
\header {
piece = "piece2"
opus = "opus2"
}
{ c'1 }
}
}
Different fonts may be selected for each element, by using a
\markup, e.g.
\header {
title = \markup { \italic { The italic title } }
}
A more advanced option is to change the Scheme functions
make-book-title and make-score-title functions, defined
in the \paper of the \book block. These functions
create a block of titling, given the information in the
\header. The init file ly/titling.scm shows how the
default format is created, and it may be used as a template for
different styles.
This page is for LilyPond-2.4.5 (stable-branch).