>>>> As soon as there are more staves involved, it's rather clear that
>>>> time signatures must always come after key signatures so that
>>>> they can be properly aligned vertically in the score.
>>>
>>> Reminds me of the simple rule to figure out where a mathematical
>>> proof goes wrong. Just look for the first occurence of a phrase
>>> like "it is rather clear", "obviously" or similar.
>>
>> The same. Not related to the algorithm but how music typesetters
>> print scores.
>
> So you did find a relevant example? Can we see it?
For more staves, it is the Daphnis example in !3224 and the Britten
example in a recent e-mail to this list on which I base my "it's
rather clear". If you ask for an example with multiple staves having
only a key signature *or* a time signature and not at least one staff
having a combination of them, I'm out of luck. If it is exists, it is
an extremely rare case.
Werner