\version "2.2.0" 

\header{ texidoc="@cindex Nested Staff Groups
Staffs can be nested in various combinations. Here, @code{StaffGroup}
and @code{ChoirStaff} produce similar straight brackets, whereas 
@code{GrandStaff} produces curly brackets. In @code{InnerStaffGroup} 
and @code{InnerChoirStaff}, the brackets are shifted leftwards.

"
}

\score { \notes
<<
  \new StaffGroup << 
  \new Staff {c' d' e' f'}
  \new InnerStaffGroup <<
   \new Staff {c' d' e' f'}
   \new GrandStaff <<
     \new Staff {c' d' e' f'}
     \new Staff {c' d' e' f'}
   >>
  \new Staff {c' d' e' f'}
  >>
  \new ChoirStaff <<
   \new Staff {c' d' e' f'}
    \new InnerStaffGroup <<
     \new Staff {c' d' e' f'}
    >>
   \new Staff {c' d' e' f'}
  >>
  >>
  \new ChoirStaff << 
   \new Staff {c' d' e' f'}
   \new InnerChoirStaff <<
    \new Staff {c' d' e' f'}
    \new Staff {c' d' e' f'}
   >>
   \new Staff {c' d' e' f'}
  >>

>>

 \paper { raggedright = ##t}
}

