lilypond-user
[Top][All Lists]
Advanced

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

Re: RemoveEmptyStaffContext erases previous setting


From: Reinhold Kainhofer
Subject: Re: RemoveEmptyStaffContext erases previous setting
Date: Fri, 5 Feb 2010 18:37:10 +0100
User-agent: KMail/1.12.4 (Linux/2.6.31-18-generic; KDE/4.3.5; i686; ; )

On Friday 05 February 2010 18:20:23 you wrote:
> The simple solution is to change the order, so that you do \layout {
>   \context { \RemoveEmptyStaffContext }
> }
> 
> before any other
> 
> \layout {
>   \context { \Staff
>     ...
>   }
> }
> 

That's not easily possible if you want to have global settings for multiple 
projects (i.e. a packages), some project-related settings (possibly overriding 
the global defaults) and some score-related settings (overriding the project-
wide settings). The RESC will typically be used in score-related settings 
files. Now, to override the project-wide settings, the score-specific settings 
file needs to be included after the project-wide settings. On the other hand, 
for RESC to work correctly, it needs to be included BEFORE the project-wide 
and before the global settings!!!

THe only way is to split the settings files yet up another time and diligently 
check that you got the order correct!

Anyway, I'll see if I can find a way to recode RESC to not store the whole 
Staff 
context at definition time, but only apply the desired settings whencalled. I 
suspect that some Scheme magic might be able to do the trick.
Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * Edition Kainhofer Music Publishing, http://www.edition-kainhofer.com/
 * LilyPond music typesetting software, http://www.lilypond.org/




reply via email to

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