I have found the following workaround:

\version "2.12.2"

\layout {
  \context {
  \Score
    \remove "Bar_number_engraver"
  }
  %  \context {
  %    \RemoveEmptyStaffContext
  %  }
}

\relative c' <<
  \new Staff 
    \with {
    \consists "Bar_number_engraver"
    \override BarNumber #'break-visibility = #all-visible
  } 
  {
    e4 f g a ^ \markup { "Text above bar number" } e4 f g a \break
    R1 \break
    a4 b c2
  }
  \new Staff 
    \with {
    \remove "Axis_group_engraver"
    \consists "Hara_kiri_engraver"
    \override Beam #'auto-knee-gap = #'()
    \override VerticalAxisGroup #'remove-empty = ##t
  }
  {
    c,4 d e f c,4 d e f \break
    b1 \break
    R1
  }
>>


It removes \RemoveEmptyStaffContext from the layout and applies the
RemoveEmptyStaffContext settings defined in engraver-init.ly to all but the
first staff.

This is not exactly what I wanted because the first staff is never removed
but in this way bar numbers are always displayed. If anyone has a better
solution... comments welcome!

-- 
View this message in context: 
http://old.nabble.com/RemoveEmptyStaffContext-und-Bar_number_engraver-tp33136191p33161022.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to