]> git.donarmstrong.com Git - lilypond.git/blob - input/test/fill-a4.ly
* Documentation/user/lilypond-book.itely
[lilypond.git] / input / test / fill-a4.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.8"
3 %possible rename to paper-fill-a4.ly -gp
4 % candidate for reg -gp
5 % Han says no, but keeping this comment temporarily so that I don't
6 % forget and nominate it for reg again.  :)  -gp
7
8 % test file to get a4 paper really filled,
9 % without having to resort to the ever-ugly oversizing hack:
10 %
11 %   `textheight = 310.0\mm'
12 %
13 % process this file with lilypond, and make sure footskip/headsep are set
14 % at a reasonably (small) value.  -- jcn
15 %
16 \header{ texidoc="@cindex Paper a4 Fill
17 This should fill a4 paper. "
18 }
19
20 \include "paper13.ly"
21
22 \score{
23         \context Voice \notes\relative c'{
24                 \clef alto
25                 \repeat "unfold" 36 c1
26         }
27         \paper{
28                 \paperThirteen
29                 indent = 0.0\mm
30                 % URG
31                 % Vertical space is rather precious when typesetting
32                 % music.  But we can only set textheight here, and must
33                 % guess and subtract the height needed for headers and 
34                 % footers.  If we want a header or footer on some page,
35                 % all other pages suffer shortened `textheight'.
36                 % Try the maximum for a4, without loosing footers:
37                 textheight = 297.0\mm - 7.0\mm
38                 papersize = "a4"
39                 linewidth = 15.0\mm
40                 \translator {
41                         \StaffContext
42                         minimumVerticalExtent = #(cons 0 0)
43                 }
44         }
45 }
46