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
dedicationtitlesubtitlesubsubtitlepoetcomposermeteropusarrangerinstrumentpiecebreakbeforecopyrighttaglineHere is a demonstration of the fields available. Note that you may use any Text markup commands in the header.
\paper {
linewidth = 9.0\cm
vsize = 10.0\cm
}
\book {
\header {
dedication = "dedicated to me"
title = \markup \center-align { "Title first line" "Title second line, longer" }
subtitle = "the subtitle,"
subsubtitle = #(string-append "subsubtitle LilyPond version " (lilypond-version))
poet = "Poet"
composer = \markup \center-align { "composer" \small "(1847-1973)" }
texttranslator = "Text Translator"
meter = \markup { \teeny "m" \tiny "e" \normalsize "t" \large "e" \huge "r" }
arranger = "Arranger"
opus = \markup { \fontsize #8.5 "o" \fontsize #2.5 "p" \fontsize #-2.5 "u" \fontsize #-5.3 "s" \fontsize #7.5 " " }
instrument = \markup \bold \italic "instrument"
piece = "Piece"
}
\score {
{ c'1 }
\header {
piece = "piece1"
opus = "opus1"
}
}
\markup {
and now...
}
\score {
{ c'1 }
\header {
piece = "piece2"
opus = "opus2"
}
}
}
A more advanced option is to change the definitions of the following
variables in the \paper block. The init file
ly/titling-init.ly lists the default layout.
bookTitleMarkup\book block. Typically,
it has the composer and the title of the piece
scoreTitleMarkup\score block within a
\book. Typically, it has the name of the movement (piece
field).
oddHeaderMarkupevenHeaderMarkupBy default, headers are defined such that the page number is on the
outside edge, and the instrument is centered.
oddFooterMarkupevenFooterMarkupBy default, the footer has the copyright notice on the first, and the tagline on the last page.
The following definition will put the title flush left, and the composer flush right on a single line.
\paper {
bookTitleMarkup = \markup {
\fill-line {
\fromproperty #'header:title
\fromproperty #'header:composer
}
}
}
This page is for LilyPond-2.6.6 (stable-branch).