Hi Jean,

>> You’ve clearly never been [self-]bitten by the “many of my custom contexts 
>> \consists Bar_number_engraver, and now I’m trying to use two or more of them 
>> simultaneously” bug…  ;)
> 
> Mmm… What is the bug when you do that?

See output of:

\version "2.23.4"

\layout {
  \context {
    \Score
    \consists Bar_number_engraver
  }
  \context {
    \StaffGroup
    \consists Bar_number_engraver
  }
  \context {
    \Staff
    \consists Bar_number_engraver
  }
}

\score {
  {
    \new StaffGroup <<
      \new Staff { c'1 \break c'1 }
    >>
  }
}

Now I know you’ll say “Well then don’t do that…” ;)

But the point is these custom contexts might be defined in different parts of 
different include files — usually used separately — and then “accidentally” 
used together. Short of a time-consuming stylesheet/includefile rewriting, I 
simply have to kick myself and \remove the engraver from all but one context in 
order to get the score(s) out the door ASAP.

Cheers
Kieren

Reply via email to