]> git.donarmstrong.com Git - lilypond.git/blob - ly/paper-defaults-init.ly
Web-ja: update introduction
[lilypond.git] / ly / paper-defaults-init.ly
1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%%
3 %%%% Copyright (C) 2004--2015 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.16.0"
21
22 \paper {
23   #(set-paper-dimension-variables (current-module))
24
25   %%% WARNING
26   %%%
27   %%% If you add any new dimensions, don't forget to update
28   %%% the dimension-variables variable.  See paper.scm.
29
30   unit = #(ly:unit)
31   mm = 1.0
32   in = 25.4
33   pt = #(/ in 72.27)
34   cm = #(* 10 mm)
35
36   % 20pt staff, 5 pt = 1.75 mm
37   output-scale = #1.7573
38
39   %% ugh. hard coded?
40   #(layout-set-absolute-staff-size (* 20.0 pt))
41
42
43   %% Automatic scaling to paper size:
44   %%
45   %% Margins, indents, and offsets marked "scaled to paper size"
46   %% below apply to the default paper format given by
47   %% (ly:get-option 'paper-size) and are scaled accordingly for
48   %% other formats.
49
50
51   %%
52   %% Fixed vertical spacing
53   %%
54   top-margin-default = 5\mm     % scaled to paper-size
55   bottom-margin-default = 6\mm  % scaled to paper-size
56   ragged-bottom = ##f
57   ragged-last-bottom = ##t  % best for shorter scores
58
59   %%
60   %% Flexible vertical spacing
61   %%
62   %% Note: these are not scaled; they are in staff-spaces.
63   system-system-spacing = #'((basic-distance . 12)
64                              (minimum-distance . 8)
65                              (padding . 1)
66                              (stretchability . 60))
67   score-system-spacing = #'((basic-distance . 14)
68                             (minimum-distance . 8)
69                             (padding . 1)
70                             (stretchability . 120))
71   markup-system-spacing = #'((basic-distance . 5)
72                              (padding . 0.5)
73                              (stretchability . 30))
74   score-markup-spacing = #'((basic-distance . 12)
75                             (padding . 0.5)
76                             (stretchability . 60))
77   markup-markup-spacing = #'((basic-distance . 1)
78                              (padding . 0.5))
79   top-system-spacing = #'((basic-distance . 1)
80                           (minimum-distance . 0)
81                           (padding . 1))
82   top-markup-spacing = #'((basic-distance . 0)
83                           (minimum-distance . 0)
84                           (padding . 1))
85   last-bottom-spacing = #'((basic-distance . 1)
86                            (minimum-distance . 0)
87                            (padding . 1)
88                            (stretchability . 30))
89
90
91   %%
92   %% Widths and (horizontal) margins
93   %%
94   left-margin-default = 10\mm   % scaled to paper-size
95   right-margin-default = 10\mm  % scaled to paper-size
96   check-consistency = ##t
97
98
99   %%
100   %% Two-sided mode
101   %%
102   two-sided = ##f
103   inner-margin-default = 10\mm   % scaled to paper-size
104   outer-margin-default = 20\mm   % scaled to paper-size
105   binding-offset-default = 0\mm  % scaled to paper-size
106
107
108   %%
109   %% Indents
110   %%
111   indent-default = 15\mm       % scaled to paper-size
112   short-indent-default = 0\mm  % scaled to paper-size
113
114
115   %%
116   %% Page breaking
117   %%
118   blank-after-score-page-penalty = 2
119   blank-last-page-penalty = 0
120   blank-page-penalty = 5
121   page-breaking = #ly:optimal-breaking
122
123
124   %%
125   %% Footnotes
126   %%
127   footnote-separator-markup = \markup \fill-line { \override #'(span-factor . 1/2) \draw-hline }
128   footnote-padding = 0.5\mm
129   footnote-footer-padding = 0.5\mm
130   footnote-number-raise = 0.5\mm
131   footnote-numbering-function = #numbered-footnotes
132   reset-footnotes-on-new-page = ##t
133
134   %%
135   %% Page numbering
136   %%
137   first-page-number = #1
138   print-first-page-number = ##f
139   print-page-number = ##t
140   page-number-type = #'arabic
141
142   %%
143   %% Headers, footers, and titles
144   %%
145   #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
146   #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
147
148   #(define-public book-title (marked-up-title 'bookTitleMarkup))
149   #(define-public score-title (marked-up-title 'scoreTitleMarkup))
150   #(define-public score-title-properties
151      '((is-title . #t)
152        (is-book-title . #f)))
153   #(define-public book-title-properties
154      '((is-title . #t)
155        (is-book-title . #t)))
156
157   \include "titling-init.ly"
158
159
160   %%
161   %% Fonts
162   %%
163   #(define font-defaults
164     '((font-family . feta) (font-encoding . fetaMusic)))
165
166   % `latin1' is a dummy value for Pango fonts
167   #(define text-font-defaults
168      `((font-encoding . latin1)
169        (baseline-skip . 3)
170        (replacement-alist . ,default-string-replacement-alist)
171        (word-space . 0.6)))
172
173   \include "text-replacements.ly"
174
175 }