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