]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/book-parts.ly
0c7a26b1244e634c5fbbc3fa0bb155d17c0f17c7
[lilypond.git] / Documentation / snippets / book-parts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.14.2"
8
9 \header {
10   lsrtags = "paper-and-layout"
11
12 %% Translation of GIT committish: 1cda7b7b8219cb97399b8e7b56c1115aaf82c002
13   texidocfr = "
14 @code{\\bookpart} permet de découper un ouvrage en plusieurs parties.
15 La dernière page de chaque partie peut être affectée d'un
16 @code{ragged-last-bottom}.  Les routines de formatage font la
17 distinction entre les @emph{markups} d'entête et de pied de page selon
18 qu'ils se rattachent à une partie ou bien à l'ouvrage entier.
19
20 "
21   doctitlefr = "Partitionnement d'un ouvrage"
22
23   texidoc = "
24 @code{\\bookpart} can be used to split a book into several parts. Each
25 part last page can be affected by @code{ragged-last-bottom}. Header and
26 footer markups can detect a part last page, and make the difference
27 with the book last page.
28
29 "
30   doctitle = "Book parts"
31 } % begin verbatim
32
33
34 #(set-default-paper-size "a6")
35
36 \book {
37   %% book paper, which is inherited by all children bookparts
38   \paper {
39     ragged-last-bottom = ##t
40     %% Page footer: add a different part-tagline at part last page
41     oddFooterMarkup = \markup {
42       \column {
43         \fill-line {
44           %% Copyright header field only on book first page.
45           \on-the-fly #first-page \fromproperty #'header:copyright
46         }
47         \fill-line {
48           %% Part tagline header field only on each part last page.
49           \on-the-fly #part-last-page \fromproperty #'header:parttagline
50         }
51         \fill-line {
52           %% Tagline header field only on book last page.
53           \on-the-fly #last-page \fromproperty #'header:tagline
54         }
55       }
56     }
57   }
58
59   %% book header, which is inherited by the first bookpart
60   \header {
61     title = "Book title"
62     copyright = "Copyright line on book first page"
63     parttagline = "Part tagline"
64     tagline = "Book tagline"
65   }
66
67   \bookpart {
68     %% a different page breaking function may be used on each part
69     \paper { page-breaking = #ly:minimal-breaking }
70     \header { subtitle = "First part" }
71     \markup { The first book part }
72     \markup { a page break }
73     \pageBreak
74     \markup { first part last page }
75     \markup \wordwrap { with ragged-last-bottom (see the space below this text) }
76   }
77
78   \bookpart {
79     \header { subtitle = "Second part" }
80     { c'4 }
81   }
82
83 }