New framework implementation, take1
[opera_libre.git] / master / common.ly
blob673ece5cd94bb67880c05a4b1bc1494d449b3f84
1 %------------------------------------------------------------------%
2 % Opéra Libre -- common.ly %
3 % %
4 % (c) Valentin Villenave, 2008 %
5 % %
6 %------------------------------------------------------------------%
8 %% Depends on: decoupage.ly, graphics.ly
10 %%%%%%%%%%%%%%%%%%%% Main variables inclusion %%%%%%%%%%%%%%%%%%%%%%
12 \header {
13 title = \OperaTitre
14 subtitle = \OperaSousTitre
15 libretto = \OperaLivret
16 composer = \OperaPartition
17 tagline = \OperaNotice
18 illustration = \Couronne
19 scoretype = \FullScore
20 copyright = \Copyright
23 %%%%%%%%%%%%%%%%%%%%%%%%%%% Paper Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%
25 \paper {
26 %% Page variables -------------------------------------------------%
27 page-limit-inter-system-space = ##t
28 page-limit-inter-system-space-factor = 1.4
29 #(define page-breaking ly:minimal-breaking)
31 %% Horizontal margins ---------------------------------------------%
32 left-margin = #(+ 13 (* 3 mm))
33 right-margin = #(+ 7 (* 3 mm))
34 line-width = #(- paper-width (+ left-margin right-margin))
35 %{ line-width = #(- paper-width (* 40 mm))
36 %horizontal-shift = 5
37 bottom-margin = #30
38 ragged-bottom = ##t
39 ragged-last-bottom = ##t
40 left-margin = #20
41 between-system-space = 1\cm
42 between-system-padding = #5 %}
44 %% Vertical margins -----------------------------------------------%
45 page-top-space = #(* 7 mm)
46 between-system-space = 2 \mm
47 between-system-padding = #5
48 %before-title-space = 10 \mm
49 %between-title-space = 2 \mm
50 %after-title-space = 5 \mm
51 ragged-bottom = ##f
52 ragged-last-bottom = ##f
53 bottom-margin = #30
55 %% Default titling ------------------------------------------------%
56 bookTitleMarkup = \markup \null
58 %% Look and feel --------------------------------------------------%
59 %FIXME: this doesn't work well.
60 systemSeparatorMarkup = \markup { \null \vspace #10 \null }
62 %FIXME: duplicate code with titling.ly
63 scoreTitleMarkup = \markup {
64 \column {
65 \fill-line {
66 \center-column {
67 \fontsize #10 \fromproperty #'header:acte
68 \vspace #0.5
69 \fontsize #6 \fromproperty #'header:piece
70 \vspace #0.5
71 \fromproperty #'header:dessin
78 %%-----------------------------------------------------------------%