]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/removing-the-first-empty-line.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / removing-the-first-empty-line.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "staff-notation, tweaks-and-overrides, breaks"
7
8   texidoc = "
9 The first empty staff can also be removed from the score by setting the
10 @code{VerticalAxisGroup} property @code{remove-first}. This can be done
11 globally inside the @code{\\layout} block, or locally inside the
12 specific staff that should be removed.  In the latter case, you have to
13 specify the context (@code{Staff} applies only to the current staff) in
14 front of the property.
15
16 The lower staff of the second staff group is not removed, because the
17 setting applies only to the specific staff inside of which it is
18 written. 
19
20 "
21   doctitle = "Removing the first empty line"
22 } % begin verbatim
23 \layout {
24   \context { 
25     \RemoveEmptyStaffContext 
26     % To use the setting globally, uncomment the following line:
27     % \override VerticalAxisGroup #'remove-first = ##t
28   }
29 }
30 \new StaffGroup <<
31   \new Staff \relative c' {
32     e4 f g a \break
33     c1
34   }
35   \new Staff {
36     % To use the setting globally, comment this line,
37     % uncomment the line in the \layout block above
38     \override Staff.VerticalAxisGroup #'remove-first = ##t
39     R1 \break
40     R
41   }
42 >>
43 \new StaffGroup <<
44   \new Staff \relative c' {
45     e4 f g a \break
46     c1
47   }
48   \new Staff {
49     R1 \break
50     R
51   }
52 >>