Code cleaning and reordering.
[opera_libre.git] / definitions / paper.ly
blobcf7ce2771ab749ae2d457400149a62ef09b075ba
1 %------------------------------------------------------------------%
2 % Opéra Libre -- paper.ly %
3 % %
4 % (c) Valentin Villenave, 2008 %
5 % %
6 %------------------------------------------------------------------%
8 %% Depends on: decoupage.ly, graphics.ly
10 #(ly:set-option 'point-and-click #f)
11 #(ly:set-option 'delete-intermediate-files #t)
13 %%%%%%%%%%%%%%%%%%%%%%%%%% Common Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
15 %% Paper size -----------------------------------------------------%
16 % #(set-default-paper-size "a4" 'landscape)
18 %% Page breaking --------------------------------------------------%
19 #(define page-breaking ly:minimal-breaking)
21 %% Staff size -----------------------------------------------------%
22 #(set-global-staff-size 14)
25 %%%%%%%%%%%%%%%%%%%%%%%%%%% Paper Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \paper {
28 %% Page variables -------------------------------------------------%
29 page-limit-inter-system-space = ##t
30 page-limit-inter-system-space-factor = 1.4
31 #(define page-breaking ly:minimal-breaking)
33 %% Horizontal margins ---------------------------------------------%
34 left-margin = #13
35 right-margin = #7
36 line-width = #(- paper-width (+ left-margin right-margin))
38 %% Vertical margins -----------------------------------------------%
39 page-top-space = #(* 5 mm)
40 %between-system-space = 10 \mm
41 %between-system-padding = 4 \mm
42 before-title-space = 10 \mm
43 between-title-space = 2 \mm
44 after-title-space = 5 \mm
45 ragged-bottom = ##f
46 ragged-last-bottom = ##f
47 bottom-margin = #10
49 %% Look and feel --------------------------------------------------%
50 %FIXME: this doesn't work well.
51 %systemSeparatorMarkup = \slashSeparator
54 %% Titles and Table of Contents -----------------------------------%
56 bookTitleMarkup = \markup {
57 \vspace #20
58 \override #'(baseline-skip . 3.5)
59 \column {
60 \combine
61 \column {
62 \fill-line {
63 \fontsize #5 \sans \fromproperty #'header:libretto
64 \null
66 \vspace #4
67 \line { \fontsize #15 \transparent "A" }
68 \vspace #4
69 \fill-line {
70 \null
71 \fontsize #5 \sans \fromproperty #'header:composer
74 \column {
75 \line { \fontsize #5 " " }
76 \vspace #4
77 \fill-line {
78 \fontsize #15 \sans \fromproperty #'header:title
80 \fill-line {
81 \fontsize #2 \sans \fromproperty #'header:subtitle
84 \vspace #4
85 \fill-line {
86 \fromproperty #'header:illustration
91 tocTitleMarkup = \markup \column {
92 \vspace #8
93 \fill-line {
94 \fontsize #3 \OperaLivret
95 \fontsize #3 \OperaPartition
97 \fill-line {
98 \fontsize #10 \bold \OperaTitre
100 \fill-line {
101 \fontsize #2 \OperaSousTitre
103 \vspace #4
104 \fill-line {
105 \fontsize #2 \underline \TableTitre
107 \vspace #1
110 tocActMarkup = \markup \large \column {
111 \hspace #1
112 \fill-line { \null \bold \fromproperty #'toc:text \null }
113 \hspace #1
115 tocItemMarkup = \markup \large \fill-line {
116 \fromproperty #'toc:text \fromproperty #'toc:page
118 tocQuoteMarkup = \markup {
119 \hspace #4 \italic \fromproperty #'toc:text
122 oddFooterMarkup = \markup {
123 \column {
124 \fill-line {
125 %% Copyright header field only on first page.
126 \on-the-fly #first-page
127 \fontsize #2 \sans \rounded-box\fromproperty #'header:scoretype
129 \vspace #1
130 \fill-line {
131 \on-the-fly #first-page
132 \fontsize #1 \sans \fromproperty #'header:copyright
135 \fill-line {
136 %% Tagline header field only on last page.
137 \on-the-fly #last-page \fromproperty #'header:tagline
141 scoreTitleMarkup = \markup {
142 \column {
143 \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
144 \fill-line {
145 \center-column {
146 \fontsize #10 \fromproperty #'header:acte
147 \vspace #1
148 \fontsize #6 \fromproperty #'header:piece
149 \vspace #1
150 \fromproperty #'header:dessin
156 %%-----------------------------------------------------------------%