Default layout of headers and footers
Headers and footers are lines of text appearing at
the top and bottom of pages, separate from the main text of a book.
They are controlled by the following \paper variables:
-
oddHeaderMarkup -
evenHeaderMarkup -
oddFooterMarkup -
evenFooterMarkup
These markup variables can only access text fields from top-level
\header blocks (which apply to all scores in the book) and are
defined in ly/titling-init.ly. By default:
- page numbers are automatically placed on the top far left (if even) or top far right (if odd), starting from the second page.
- the
instrumenttext field is placed in the center of every page, starting from the second page. - the
copyrighttext is centered on the bottom of the first page. - the
taglineis centered on the bottom of the last page, and below thecopyrighttext if there is only a single page.
The default LilyPond footer text can be changed by adding a
tagline in the top-level \header block.
\book { \header { tagline = "... music notation for Everyone" } \score { \relative { c'4 d e f } } }
To remove the default LilyPond footer text, the tagline can be
set to #f.
![[image of music]](../86/lily-7a53fa00.png)