Thank you for answering. Your code has exactly the problem I wanted to overcome. There is a "cleftext" every time the clef changes! I minimized my example code due to your expectations.
Regards begin ################## \version "2.19.65" D-Dorian = \relative c { \clef "bass_8" c1 | \clef "treble_8" c1| \clef "bass_8" c1 \bar "|." } << \new Staff {\D-Dorian } \new TabStaff { \override Staff.Clef #'stencil = #ly:text-interface::print \omit Staff.ClefModifier \override Staff.Clef #'text = test \D-Dorian } >> end ###################### Am 28.12.2017 um 15:22 schrieb Malte Meyn: > > > Am 28.12.2017 um 14:21 schrieb bb: >> I attach an example code. (Sorry, my skills are just not developed >> enough to shorten the code essential.) > > Here is a much smaller example. It’s not minimal but near. How to > build such an example? Well, just leave everything out that has > nothing to do with the problem. In your case that is: > > • layout things like set-global-staff-size or indent = 0 > • complicated music (triplets, rests, extra barlines) > • \tabFullNotation > • instrument tweaks (stringTunings, minimumFret etc.) > • transpositions (btw the clefs should do that correctly) > • complicated markup for the clef > > How to find out what things aren’t necessary? Just delete them and see > if the problem persists. > > The following example contains also a possible solution: Set the clef > stencil to ##f (\omit is a shorthand for that) and only set the > stencil for the first occurence. > > %%%%%%%%%%%%%%%%%%%%%%%%%% > \version "2.19.65" > > D-Dorian = \relative { > \clef "bass_8" > c1 > \clef "treble_8" > c > \clef "bass_8" > c > } > > << > \new Staff { \D-Dorian } > \new TabStaff \with { > \omit Clef > \omit ClefModifier > \override Clef.text = "cleftext" > } { > \once \override TabStaff.Clef.stencil = #ly:text-interface::print > \D-Dorian > } > >> > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user