By
creating a \score for each exercise, inserting your code
in the brakets, I was able to create the exercises page.
So, I
have something like this
\score
{
<<
\new ChordNames \chordsExI
\new StaffGroup \with { instrumentName = "Ex 1" }
<<
\new Staff \musicExI
\new TabStaff \musicExI >>
>>
}
\score
{
<<
\new ChordNames \chordsExII
\new StaffGroup \with { instrumentName = "Ex 2" }
<<
\new Staff \musicExII
\new TabStaff \musicExII >>
>>
}
[...]
Now,
I'll like to have each exercise on a single line, or
by the way control when to break. I'm able to avoid
automatic break by adding \noBreak here and there, but
in seems not like the best way to do it. Any better
way to force, i.e., to break only after 5 bars for
exercise1, 4 bars for exercise2, ...?