Thanks. Fixes the problem. Nick
> -----Original Message----- > From: Mats Bengtsson [mailto:[email protected]] > Sent: Thursday, 9 April 2009 00:53 > To: Nick Payne > Cc: [email protected] > Subject: Re: Staff lines running past final bar on staff > > To solve this problem, you first have to figure out that it has to do > with the key signature > (comment out the key signature in the ossia stave to see that the > problem disappears). > Once you have realized that, you have to figure out how to get rid of > the extra key > signature indication at the end of the previous line, which isn't > printed since the ossia > stave doesn't exist, but which unfortunately still influences the > position of the bar line. > > The solution is to add a setting of explicitKeySignatureVisibility: > > \new Staff \with { > alignAboveContext = #"1" > fontSize = #-4 > \override StaffSymbol #'staff-space = #(magstep -4) > \override StaffSymbol #'thickness = #(magstep -4) > \remove "Time_signature_engraver" > explicitKeySignatureVisibility = #end-of-line-invisible > } > { ... } > > /Mats > > Nick Payne wrote: > > See attached. If I have an ossia at the beginning of a staff, the > lines on > > the preceding staff run past the final barline. How do I prevent > this? I'm > > creating the ossia with > > > > << > > { > > % normal notes here > > } > > \new Staff \with { > > alignAboveContext = #"1" > > fontSize = #-4 > > \override StaffSymbol #'staff-space = #(magstep -4) > > \override StaffSymbol #'thickness = #(magstep -4) > > \remove "Time_signature_engraver" > > } > > { > > \clef "treble_8" > > \key e \minor > > % ossia notes here > > } > > >> > > > > Nick > > > > > > --------------------------------------------------------------------- > --- > > > > --------------------------------------------------------------------- > --- > > > > _______________________________________________ > > lilypond-user mailing list > > [email protected] > > http://lists.gnu.org/mailman/listinfo/lilypond-user > > > > -- > ============================================= > Mats Bengtsson > Signal Processing > School of Electrical Engineering > Royal Institute of Technology (KTH) > SE-100 44 STOCKHOLM > Sweden > Phone: (+46) 8 790 8463 > Fax: (+46) 8 790 7260 > Email: [email protected] > WWW: http://www.s3.kth.se/~mabe > ============================================= > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.46/2046 - Release Date: > 04/07/09 17:53:00 _______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
