| [ << General input and output ] | [Top][Contents][Index][ ? ] | [ Spacing issues >> ] | ||
| [ < Creating titles ] | [ Up : Titles and headers ] | [ Reference to page numbers > ] | ||
3.2.2 Custom headers, footers, and titles
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 This is the title added at the top of the entire output document. Typically, it has the composer and the title of the piece
-
scoreTitleMarkup This is the title put over a
\scoreblock. Typically, it has the name of the movement (piecefield).-
oddHeaderMarkup This is the page header for odd-numbered pages.
-
evenHeaderMarkup This is the page header for even-numbered pages. If unspecified, the odd header is used instead.
By default, headers are defined such that the page number is on the outside edge, and the instrument is centered.
-
oddFooterMarkup This is the page footer for odd-numbered pages.
-
evenFooterMarkup This is the page footer for even-numbered pages. If unspecified, the odd header is used instead.
By 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
}
}
}
The header and footer are created by the functions
make-header and make-footer, defined in
\paper. The default implementations are in
‘ly/paper-defaults-init.ly’ and
‘ly/titling-init.ly’.
This example centers page numbers at the bottom of every page.
\paper {
print-page-number = ##t
print-first-page-number = ##t
oddHeaderMarkup = \markup \fill-line { " " }
evenHeaderMarkup = \markup \fill-line { " " }
oddFooterMarkup = \markup {
\fill-line {
\bold \fontsize #3
\on-the-fly #print-page-number-check-first
\fromproperty #'page:page-number-string
}
}
evenFooterMarkup = \markup {
\fill-line {
\bold \fontsize #3
\on-the-fly #print-page-number-check-first
\fromproperty #'page:page-number-string
}
}
}
| [ << General input and output ] | [Top][Contents][Index][ ? ] | [ Spacing issues >> ] | ||
| [ < Creating titles ] | [ Up : Titles and headers ] | [ Reference to page numbers > ] | ||