]> git.donarmstrong.com Git - lilypond.git/blob - ly/paper-defaults-init.ly
Remove head- and foot-separation.
[lilypond.git] / ly / paper-defaults-init.ly
1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%%
3 %%%% Copyright (C) 2004--2010 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   system-system-spacing = #'((space . 12) (minimum-distance . 8) (padding . 1) (stretchability . 60))
61   score-system-spacing = #'((space . 14) (minimum-distance . 8) (padding . 1) (stretchability . 120))
62   markup-system-spacing = #'((space . 5) (padding . 0.5) (stretchability . 30))
63   score-markup-spacing = #'((space . 12) (padding . 0.5) (stretchability . 60))
64   markup-markup-spacing = #'((space . 1) (padding . 0.5))
65   top-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0))
66   top-markup-spacing = #'((space . 0) (padding . 1) (minimum-distance . 0))
67   last-bottom-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0) (stretchability . 30))
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   #(define font-defaults
84     '((font-family . feta) (font-encoding . fetaMusic)))
85
86   %%
87   %% the font encoding `latin1' is a dummy value for Pango fonts
88   %%
89   #(define text-font-defaults
90      `((font-encoding . latin1)
91        (baseline-skip . 3)
92        (word-space . 0.6)))
93
94   #(define page-breaking ly:optimal-breaking)
95
96   #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
97   #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
98   #(set-paper-dimension-variables (current-module))
99
100   \include "titling-init.ly"
101
102   check-consistency = ##t
103   two-sided = ##f
104
105   % These margins apply to the default paper format given by (ly:get-option 'paper-size)
106   % and are scaled accordingly for other formats
107
108   top-margin-default = 5 \mm
109   bottom-margin-default = 6 \mm
110
111   left-margin-default = 10 \mm
112   right-margin-default = 10 \mm
113
114   inner-margin-default = 10 \mm
115   outer-margin-default = 20 \mm
116   binding-offset-default = 0 \mm
117
118   indent-default = 15 \mm
119   short-indent-default = 0 \mm
120
121   first-page-number = #1
122   print-first-page-number = ##f
123 }