bug-lilypond
[Top][All Lists]
Advanced

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

Re: removeWithTag


From: David Kastrup
Subject: Re: removeWithTag
Date: Sun, 13 Oct 2013 07:52:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> Help!
>
> Maybe this is another time I just overlook the crucial tiny mistake in
> my code, but to me, it seems that removeWithTag fails in the following
> example (that is, all the tagged notes are printed), and only if there
> is a note between the \removeWithTag and \tag commands.
>
> \relative {
>
> \removeWithTag #'correct
>
> d'4 \tag #'correct c4 \tag #'nice c2
>
> }

\removeWithTag perfectly well removes all expressions tagged with
#'correct from d'4 and that's all you ask it to do.  Note that if you
write

\removeWithTag #'current d'4 -\tag #'current ^\markup "Hi"

then the tagged superscript still makes it into the expression that
\removeWithTag oversees.  But for the use you want, you'll have to write
\removeWithTag #'correct { ... }
namely put the whole expression in braces.

-- 
David Kastrup




reply via email to

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