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
instrument
text field is placed in the center of every page, starting from the second page. -
the
copyright
text is centered on the bottom of the first page. -
the
tagline
is centered on the bottom of the last page, and below thecopyright
text 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
.