%% 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.27.0/input/regression/divisi-staves.ly"
\sourcefileline 0
\version "2.25.35"

\header {
  texidoc = "The @code{VerticalAxisGroup.remove-layer}
property can be used for typesetting temporary divisi staves where
the switch to split staves is done only at line breaks such that all
complex passages are rendered in separate staves."
}

boring = \set Staff.keepAliveInterfaces = #'()
tricky = \unset Staff.keepAliveInterfaces

violI=\relative d' {
  \boring \*100 d4
  \tricky <d g'>2
  \boring \*98 d4
  \bar "|."
}

violII=\relative g {
  \boring \*100 g4
  \tricky <g d'>2
  \boring \*98 g4
  \bar "|."
}

\score {
  \new StaffGroup \with { \consists "Keep_alive_together_engraver" }
  <<
    \new Staff \with { instrumentName = "Violin I"
		       shortInstrumentName = "V I"
		       \override VerticalAxisGroup.remove-empty = ##t
		       \override VerticalAxisGroup.remove-first = ##t
		       \override VerticalAxisGroup.remove-layer = 1
		     }
    \violI
    \new Staff \with { instrumentName = "Violin II"
		       shortInstrumentName = "V II"
		       \override VerticalAxisGroup.remove-empty = ##t
		       \override VerticalAxisGroup.remove-first = ##t
		       \override VerticalAxisGroup.remove-layer = 1
		     }
    \violII
    \new Staff \with { instrumentName = "Violins"
		       shortInstrumentName = "V I&II"
		       \override VerticalAxisGroup.remove-layer = 2
		     }
    <<  \violI \\ \violII  >>
  >>
  \layout {
    short-indent = 2\cm
    indent = 3\cm
  }
}



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