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