When you declare scorecommon, it must have a "type".
I think the following should work (untested)
commonpaper= \paper {
\translator {
\StaffContext
\consists "Staff_margin_engraver";
\consists "Mark_engraver";
\consists "Bar_number_engraver";
}
}
commonmidi = \midi{
\tempo 4 = 120;
}
\score{
\header {piece = "I";}
\$Minuet1
\paper{\commonpaper}
\midi{\commonmidi}
}
\score {
\header {piece = "II";}
\$Minuet2
\paper{\commonpaper}
\midi{\commonmidi}
}
Your previous version was more convenient, though.
One alternative is to put your paper and midi declarations
in a separate file and \input it at the desired places,
but then you can't keep it all in a single file.
I think we should have syntax support for a single identifier
with both paper and midi declarations.
/Mats