Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / ly / paper-defaults-init.ly
blob8089b3be71a36d75843be0ff3b784158d57868f5
1 \version "2.12.0"
3 \paper {
4 %%% WARNING
5 %%%
6 %%% If you add any new dimensions, don't forget to update
7 %%% the dimension-variables variable. See paper.scm.
9 unit = #(ly:unit)
10 mm = 1.0
11 in = 25.4
12 pt = #(/ in 72.27)
13 cm = #(* 10 mm)
15 print-page-number = ##t
18 %% 20pt staff, 5 pt = 1.75 mm
21 output-scale = #1.7573
23 #(define-public book-title (marked-up-title 'bookTitleMarkup))
24 #(define-public score-title (marked-up-title 'scoreTitleMarkup))
27 %% ugh. hard coded?
30 #(layout-set-absolute-staff-size (* 20.0 pt))
33 #(define-public score-title-properties
34 '((is-title . #t)
35 (is-book-title . #f)))
36 #(define-public book-title-properties
37 '((is-title . #t)
38 (is-book-title . #t)))
40 %% Note: these are not scaled; they are in staff-spaces.
41 between-system-spacing = #'((space . 12) (minimum-distance . 8) (padding . 1))
42 between-scores-system-spacing = #'((space . 14) (minimum-distance . 8) (padding . 1))
43 after-title-spacing = #'((space . 2) (padding . 0.5))
44 before-title-spacing = #'((space . 5) (padding . 0.5))
45 between-title-spacing = #'((space . 1) (padding . 0.5))
46 top-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0))
47 top-title-spacing = #'((space . 0) (padding . 1) (minimum-distance . 0))
48 bottom-system-spacing = #'((space . 1) (padding . 1) (minimum-distance . 0) (stretchability . 5))
50 ragged-bottom = ##f
53 %% looks best for shorter scores.
55 ragged-last-bottom = ##t
58 %% settings for the page breaker
60 blank-last-page-force = 0
61 blank-after-score-page-force = 2
62 blank-page-force = 5
65 %% To limit space between systems on a page with a lot of space left
67 page-limit-inter-system-space = ##f
68 page-limit-inter-system-space-factor = 1.4
70 #(define font-defaults
71 '((font-family . feta) (font-encoding . fetaMusic)))
74 %% the font encoding `latin1' is a dummy value for Pango fonts
76 #(define text-font-defaults
77 `((font-encoding . latin1)
78 (baseline-skip . 3)
79 (word-space . 0.6)))
81 #(define page-breaking ly:optimal-breaking)
83 #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
84 #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
85 #(set-paper-dimension-variables (current-module))
87 \include "titling-init.ly"
89 check-consistency = ##t
90 two-sided = ##f
92 % These margins apply to the default paper format given by (ly:get-option 'paper-size)
93 % and are scaled accordingly for other formats
95 top-margin-default = 5 \mm
96 bottom-margin-default = 6 \mm
98 left-margin-default = 10 \mm
99 right-margin-default = 10 \mm
101 inner-margin-default = 10 \mm
102 outer-margin-default = 20 \mm
103 binding-offset-default = 0 \mm
105 head-separation-default = 4 \mm
106 foot-separation-default = 4 \mm
108 indent-default = 15 \mm
109 short-indent-default = 0 \mm
111 first-page-number = #1
112 print-first-page-number = ##f