Partitionnement d’un ouvrage
\bookpart
permet de découper un ouvrage en plusieurs parties.
La dernière page de chaque partie peut être affectée d’un
ragged-last-bottom
. Les routines de formatage font la
distinction entre les markups d’entête et de pied de page selon
qu’ils se rattachent à une partie ou bien à l’ouvrage entier.
#(set-default-paper-size "a6")
\book {
%% book paper, which is inherited by all children bookparts
\paper {
ragged-last-bottom = ##t
%% Page footer: add a different part-tagline at part last page
oddFooterMarkup = \markup {
\column {
\fill-line {
%% Copyright header field only on book first page.
\if \on-first-page \fromproperty #'header:copyright
}
\fill-line {
%% Part tagline header field only on each part last page.
\if \on-last-page-of-part \fromproperty #'header:parttagline
}
\fill-line {
%% Tagline header field only on book last page.
\if \on-last-page \fromproperty #'header:tagline
}
}
}
}
%% book header, which is inherited by the first bookpart
\header {
= "Book title"
= "Copyright line on book first page"
parttagline = "Part tagline"
= "Book tagline"
}
\bookpart {
%% a different page breaking function may be used on each part
\paper { page-breaking = #ly:minimal-breaking }
\header { = "First part" }
\markup { The first book part }
\markup { a page break }
\pageBreak
\markup { first part last page }
\markup \wordwrap { with ragged-last-bottom (see the space below this text) }
}
\bookpart {
\header { = "Second part" }
{ c'4 }
}
}