Next: , Previous: Multiple movements, Up: Global layout



7.5.8 Creating titles

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

title
The title of the music. Centered on top of the first page.
subtitle
Subtitle, centered below the title.
subsubtitle
Subsubtitle, centered below the subtitle.
poet
Name of the poet, left flushed below the subtitle.
composer
Name of the composer, right flushed below the subtitle.
meter
Meter string, left flushed below the poet.
opus
Name of the opus, right flushed below the composer.
arranger
Name of the arranger, right flushed below the opus.
instrument
Name of the instrument, centered below the arranger.
dedication
To whom the piece is dedicated.
piece
Name of the piece, left flushed below the instrument.

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

[image of music] [image of music]

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).

Report errors to <bug-lilypond@gnu.org>.

Other languages: English.
Using automatic language selection.