%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.26.0/input/regression/keep-alive-interfaces-break-invisibility.ly"
\sourcefileline 0
\version "2.25.18"

\header {
  texidoc = "Grobs attached to system bounds should only keep alive
the systems where they are visible. From issue #6519"
}

\layout {
  ragged-right = ##t
   \context {
     \Score
     keepAliveInterfaces = #'(measure-spanner-interface
                              mark-interface
                              rest-interface)
     \remove Mark_engraver
   }
   \context {
     \Staff
     \override VerticalAxisGroup.remove-empty = ##t
     \override VerticalAxisGroup.remove-first = ##t
     \consists Measure_spanner_engraver
     \consists Mark_engraver
   }
}

\new Staff {
   s1\startMeasureSpanner s1\stopMeasureSpanner
   \break
   s1_"staff should be removed this system"
}

\new Staff {
  s1_"staff should be removed this system"
  \break
  \mark\default
  s1
}

\new Staff {
   R1
   \set Staff.keepAliveInterfaces = #'()
   \break
   <>_"staff should be removed this system"
   s1 R1
}

\new Staff {
   \set Staff.keepAliveInterfaces = #'()
   <>_"staff should be removed this system"
   R1 s1
   \unset Staff.keepAliveInterfaces
   \break
   R1
}



% ****************************************************************
% end ly snippet
% ****************************************************************
