lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "cancelling" \RemoveEmptyStaffContext


From: Reinhold Kainhofer
Subject: Re: "cancelling" \RemoveEmptyStaffContext
Date: Fri, 18 Sep 2009 16:31:19 +0200
User-agent: KMail/1.11.4 (Linux/2.6.28-15-generic; KDE/4.2.4; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 18. September 2009 15:07:22 schrieb Kieren MacMillan:
> Hello all,
>
> If I have an \include file which contains a
>
>    \context { \RemoveEmptyStaffContext }
>
> and I want to use the \include file [for the rest of its contents]
> but *not* have the \RESC, how can I "cancel" it in the file where
> I've got the \include?

I haven't tried this out, but it might work to revert the changes that RESC 
does to the Staff context:

\context {
  \Staff
  \consists "Axis_group_engraver"
  \remove "Hara_kiri_engraver"
  \revert Beam #'auto-knee-gap
  \revert VerticalAxisGroup #'remove-empty
}


After all, \RESC is just a shortcut for certain changes to the \Staff context::
RemoveEmptyStaffContext = \context {
  \Staff
  \remove "Axis_group_engraver"
  \consists "Hara_kiri_engraver"
  \override Beam #'auto-knee-gap = #'()
  \override VerticalAxisGroup #'remove-empty = ##t
}


Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKs5m4TqjEwhXvPN0RAo1SAJoCoxtTS9xGswmCh3nkLlHDMM/b6wCgpjil
8iJWDq1V2+jQLcA6BCOZ82g=
=I9WC
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]