]> git.donarmstrong.com Git - lilypond.git/blob - ly/paper-defaults-init.ly
Update source file headers. Fixes using standard GNU package conventions.
[lilypond.git] / ly / paper-defaults-init.ly
1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%%
3 %%%% Copyright (C) 2004--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %%%%                          Jan Nieuwenhuizen <janneke@gnu.org>
5 %%%%                          Neil Puttock <n.puttock@gmail.com>
6 %%%%
7 %%%% LilyPond is free software: you can redistribute it and/or modify
8 %%%% it under the terms of the GNU General Public License as published by
9 %%%% the Free Software Foundation, either version 3 of the License, or
10 %%%% (at your option) any later version.
11 %%%%
12 %%%% LilyPond is distributed in the hope that it will be useful,
13 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
14 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 %%%% GNU General Public License for more details.
16 %%%%
17 %%%% You should have received a copy of the GNU General Public License
18 %%%% along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
19
20 \version "2.12.0"
21
22 \paper {
23   %%% WARNING
24   %%%
25   %%% If you add any new dimensions, don't forget to update
26   %%% the dimension-variables variable.  See paper.scm.
27
28   unit = #(ly:unit)
29   mm = 1.0
30   in = 25.4
31   pt = #(/ in 72.27)
32   cm = #(* 10 mm)
33
34   print-page-number = ##t
35
36   %%
37   %% 20pt staff, 5 pt = 1.75 mm
38   %%
39
40   output-scale = #1.7573
41
42   #(define-public book-title (marked-up-title 'bookTitleMarkup))
43   #(define-public score-title (marked-up-title 'scoreTitleMarkup))
44
45   %%
46   %% ugh. hard coded?
47   %%
48
49   #(layout-set-absolute-staff-size (* 20.0 pt))
50
51
52   #(define-public score-title-properties
53      '((is-title . #t)
54        (is-book-title . #f)))
55   #(define-public book-title-properties
56      '((is-title . #t)
57        (is-book-title . #t)))
58
59   %% Note: these are not scaled; they are in staff-spaces.
60   between-system-spacing = #'((space . 12) (minimum-distance . 8) (padding . 1))
61   between-scores-system-spacing = #'((space . 14) (minimum-distance . 8) (padding . 1))
62   after-title-spacing = #'((space . 2) (padding . 0.5))
63   before-title-spacing = #'((space . 5) (padding . 0.5))
64   between-title-spacing = #'((space . 1) (padding . 0.5))
65   top-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0))
66   top-title-spacing = #'((space . 0) (padding . 1) (minimum-distance . 0))
67   bottom-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0) (stretchability . 5))
68
69   ragged-bottom = ##f
70
71   %%
72   %% looks best for shorter scores.
73   %%
74   ragged-last-bottom = ##t
75
76   %%
77   %% settings for the page breaker
78   %%
79   blank-last-page-force = 0
80   blank-after-score-page-force = 2
81   blank-page-force = 5
82
83   %%
84   %% To limit space between systems on a page with a lot of space left
85   %%
86   page-limit-inter-system-space = ##f
87   page-limit-inter-system-space-factor = 1.4
88
89   #(define font-defaults
90     '((font-family . feta) (font-encoding . fetaMusic)))
91
92   %%
93   %% the font encoding `latin1' is a dummy value for Pango fonts
94   %%
95   #(define text-font-defaults
96      `((font-encoding . latin1)
97        (baseline-skip . 3)
98        (word-space . 0.6)))
99
100   #(define page-breaking ly:optimal-breaking)
101
102   #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
103   #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
104   #(set-paper-dimension-variables (current-module))
105
106   \include "titling-init.ly"
107
108   check-consistency = ##t
109   two-sided = ##f
110
111   % These margins apply to the default paper format given by (ly:get-option 'paper-size)
112   % and are scaled accordingly for other formats
113
114   top-margin-default = 5 \mm
115   bottom-margin-default = 6 \mm
116
117   left-margin-default = 10 \mm
118   right-margin-default = 10 \mm
119
120   inner-margin-default = 10 \mm
121   outer-margin-default = 20 \mm
122   binding-offset-default = 0 \mm
123
124   head-separation-default = 4 \mm
125   foot-separation-default = 4 \mm
126
127   indent-default = 15 \mm
128   short-indent-default = 0 \mm
129
130   first-page-number = #1
131   print-first-page-number = ##f
132 }