Merge branch 'fret-diagram-details'
[lilypond/csorensen.git] / ly / paper-defaults.ly
blob67839f9c6c5695869bc39438f08184b901e03416
1 \version "2.11.11"
2 #(use-modules (scm layout-page-layout))
3 \paper {
5 %%%% WARNING
7 %%% if you add any new dimensions, don't forget to update
8 %%% the dimension-variables variable. see paper.scm
10 unit = #(ly:unit)
11 mm = 1.0
12 in = 25.4
13 pt = #(/ in 72.27)
14 cm = #(* 10 mm)
16 %% This is weird; `everyone' uses LATIN1? How does I select TeX
17 %% input encoding in EMACS? -- jcn
18 %%%%input-encoding = #"TeX"
19 input-encoding = #"latin1"
20 print-page-number = ##t
23 %% 20pt staff, 5 pt = 1.75 mm
26 output-scale = #1.7573
28 #(define-public book-title (marked-up-title 'bookTitleMarkup))
29 #(define-public score-title (marked-up-title 'scoreTitleMarkup))
30 #(define-public force-eps-font-include #f)
33 %% ugh. hard coded?
36 #(layout-set-absolute-staff-size (* 20.0 pt))
39 #(define-public score-title-properties
40 '((is-title . #t)
41 (is-book-title . #f)
43 #(define-public book-title-properties
44 '((is-title . #t)
45 (is-book-title . #t)
49 %% this dimension includes the extent of the
50 %% staves themselves.
52 between-system-space = #(* 20 mm)
56 %% fixed space between systems.
58 between-system-padding = #(* 4 mm)
60 after-title-space = 5 \mm
61 before-title-space = 10 \mm
62 between-title-space = 2 \mm
66 %% Small staves are aligned so they come out on the same place on
67 %% across different pages.
69 page-top-space = #(* 12 mm)
72 ragged-bottom = ##f
75 %% looks best for shorter scores.
77 ragged-last-bottom= ##t
80 %% settings for the page breaker
82 blank-last-page-force = 0
83 blank-after-score-page-force = 2
84 blank-page-force = 5
87 %% To limit space between systems on a page with a lot of space left
89 page-limit-inter-system-space = ##f
90 page-limit-inter-system-space-factor = 1.4
92 #(define font-defaults
93 '((font-encoding . fetaMusic)))
95 %% use lmodern in latin1 (cork) flavour if EC is not available.
96 #(define text-font-defaults
97 `((font-encoding .
98 ,(cond
99 (tex-backend? 'Extended-TeX-Font-Encoding---Latin)
100 (else 'latin1)))
101 ;; add to taste here.
103 (baseline-skip . 3)
104 (word-space . 0.6)))
106 #(define page-breaking ly:optimal-breaking)
107 #(define page-breaking-wrapper page-breaking-wrapper)
108 #(define page-post-process post-process-pages)
110 #(define write-page-layout (ly:get-option 'dump-tweaks))
111 #(define system-maximum-stretch-procedure
112 (lambda (line)
113 (if (stretchable-line? line)
114 (let ((height (line-height line)))
115 (/ (* height height) 80.0))
116 0.0)))
118 % #(define page-music-height default-page-music-height )
119 % #(define page-make-stencil default-page-make-stencil )
121 #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
122 #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
123 #(set-paper-dimension-variables (current-module))
125 \include "titling-init.ly"
127 top-margin = 5 \mm
128 bottom-margin = 6 \mm
129 head-separation = 4 \mm
130 foot-separation = 4 \mm
132 first-page-number = #1
133 print-first-page-number =##f