1 %------------------------------------------------------------------%
2 % Opéra Libre -- paper.ly %
4 % (c) Valentin Villenave, 2008 %
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 %%%%%%%%%%%%%%%%%%%%%%%%%%%
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 ---------------------------------------------%
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
46 ragged-last-bottom
= ##f
49 %% Look and feel --------------------------------------------------%
50 %FIXME: this doesn't work well.
51 %systemSeparatorMarkup = \slashSeparator
54 %% Titles and Table of Contents -----------------------------------%
56 bookTitleMarkup
= \markup {
58 \override #'(baseline-skip
. 3.5)
63 \fontsize #5 \sans \fromproperty #'header
:libretto
67 \line { \fontsize #15 \transparent "A" }
71 \fontsize #5 \sans \fromproperty #'header
:composer
75 \line { \fontsize #5 " " }
78 \fontsize #15 \sans \fromproperty #'header
:title
81 \fontsize #2 \sans \fromproperty #'header
:subtitle
86 \fromproperty #'header
:illustration
91 tocTitleMarkup
= \markup \column {
94 \fontsize #3 \OperaLivret
95 \fontsize #3 \OperaPartition
98 \fontsize #10 \bold \OperaTitre
101 \fontsize #2 \OperaSousTitre
105 \fontsize #2 \underline \TableTitre
110 tocActMarkup
= \markup \large \column {
112 \fill-line
{ \null \bold \fromproperty #'toc
:text
\null }
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 {
125 %% Copyright header field only on first page.
126 \on-the-fly
#first-page
127 \fontsize #2 \sans \rounded-box
\fromproperty #'header
:scoretype
131 \on-the-fly
#first-page
132 \fontsize #1 \sans \fromproperty #'header
:copyright
136 %% Tagline header field only on last page.
137 \on-the-fly
#last-page
\fromproperty #'header
:tagline
141 scoreTitleMarkup
= \markup {
143 \on-the-fly
#print-all-headers
{ \bookTitleMarkup \hspace #1 }
146 \fontsize #10 \fromproperty #'header
:acte
148 \fontsize #6 \fromproperty #'header
:piece
150 \fromproperty #'header
:dessin
156 %%-----------------------------------------------------------------%