Removing the first empty line: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
To remove the first empty staff from a score, set the <code>remove-first</code> property of the <code>VerticalAxisGroup</code> grob to <code>#t</code>. This can be done globally inside the <code>\layout</code> block or locally inside the specific staff that should be removed. In the latter case, you have to specify the context (<code>Staff</code> applies only to the current staff) in front of the property. | |||
The lower staff of the second staff group is not removed, because the setting applies only to the specific staff inside of which it is written. | The lower staff of the second staff group is not removed, because the setting applies only to the specific staff inside of which it is written. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
\layout { | \layout { | ||
\context { | \context { | ||
| Line 24: | Line 24: | ||
} | } | ||
>> | >> | ||
\new StaffGroup << | \new StaffGroup << | ||
\new Staff \relative c' { | \new Staff \relative c' { | ||
| Line 34: | Line 35: | ||
} | } | ||
>> | >> | ||
</lilypond> | </lilypond> | ||
[[Category:Breaks]] | |||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||