lilypond-user
[Top][All Lists]
Advanced

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

Re: Suppressing engraving of string numbers on all voices simultaneously


From: David Kastrup
Subject: Re: Suppressing engraving of string numbers on all voices simultaneously
Date: Fri, 15 Oct 2021 09:01:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lukas-Fabian Moser <lfm@gmx.de> writes:

>> Of course you can
>> also do so in the whole score by specifying
>>
>> \layout {
>>    \context {
>>      \Staff
>>      \omit StringNumber
>>    }
>> }
>
> Or, even shorter:
>
> \layout {
>   \omit Staff.StringNumber
> }
>
> I do not know if this is completely equivalent,

It isn't.  It omits the StringNumber for _all_ contexts that can be
addressed as "Staff" from inside, including the TabStaff.  So it
definitely is not what the OP wants.

> but lately I find myself writing \layout { \context { ... } } only for
> \consist'ing and \remove'ing engravers.

One should realise the difference.  The latter only addresses specific
contexts, the former covers everything with the respective \alias as
well (including the implicit \alias of Bottom for contexts without a
\defaultchild).

-- 
David Kastrup



reply via email to

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