X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fbook-parts.ly;fp=Documentation%2Fsnippets%2Fbook-parts.ly;h=ed6865ca353e6c07155c3852a44427b0d9845d4b;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/book-parts.ly b/Documentation/snippets/book-parts.ly new file mode 100644 index 0000000000..ed6865ca35 --- /dev/null +++ b/Documentation/snippets/book-parts.ly @@ -0,0 +1,71 @@ +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.0" + +\header { + lsrtags = "paper-and-layout" + + texidoc = " +@code{\\bookpart} can be used to split a book into several parts. Each +part last page can be affected by @code{ragged-last-bottom}. Header and +footer markups can detect a part last page, and make the difference +with the book last page. + +" + doctitle = "Book parts" +} % begin verbatim + +#(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. + \on-the-fly #first-page \fromproperty #'header:copyright + } + \fill-line { + %% Part tagline header field only on each part last page. + \on-the-fly #part-last-page \fromproperty #'header:parttagline + } + \fill-line { + %% Tagline header field only on book last page. + \on-the-fly #last-page \fromproperty #'header:tagline + } + } + } + } + + %% book header, which is inherited by the first bookpart + \header { + title = "Book title" + copyright = "Copyright line on book first page" + parttagline = "Part tagline" + tagline = "Book tagline" + } + + \bookpart { + %% a different page breaking function may be used on each part + \paper { page-breaking = #ly:minimal-breaking } + \header { subtitle = "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 { subtitle = "Second part" } + { c'4 } + } + +}