]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/book-parts.ly
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / snippets / book-parts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "paper-and-layout"
11
12   texidoc = "
13 @code{\\bookpart} can be used to split a book into several parts. Each
14 part last page can be affected by @code{ragged-last-bottom}. Header and
15 footer markups can detect a part last page, and make the difference
16 with the book last page.
17
18 "
19   doctitle = "Book parts"
20 } % begin verbatim
21
22 #(set-default-paper-size "a6")
23
24 \book {
25   %% book paper, which is inherited by all children bookparts
26   \paper {
27     ragged-last-bottom = ##t
28     %% Page footer: add a different part-tagline at part last page
29     oddFooterMarkup = \markup {
30       \column {
31         \fill-line {
32           %% Copyright header field only on book first page.
33           \on-the-fly #first-page \fromproperty #'header:copyright
34         }
35         \fill-line {
36           %% Part tagline header field only on each part last page.
37           \on-the-fly #part-last-page \fromproperty #'header:parttagline
38         }
39         \fill-line {
40           %% Tagline header field only on book last page.
41           \on-the-fly #last-page \fromproperty #'header:tagline
42         }
43       }
44     }
45   }
46
47   %% book header, which is inherited by the first bookpart
48   \header {
49     title = "Book title"
50     copyright = "Copyright line on book first page"
51     parttagline = "Part tagline"
52     tagline = "Book tagline"
53   }
54
55   \bookpart {
56     %% a different page breaking function may be used on each part
57     \paper { page-breaking = #ly:minimal-breaking }
58     \header { subtitle = "First part" }
59     \markup { The first book part }
60     \markup { a page break }
61     \pageBreak
62     \markup { first part last page }
63     \markup \wordwrap { with ragged-last-bottom (see the space below this text) }
64   }
65
66   \bookpart {
67     \header { subtitle = "Second part" }
68     { c'4 }
69   }
70
71 }