[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lilypond-book
From: |
Han-Wen Nienhuys |
Subject: |
Re: lilypond-book |
Date: |
Mon, 11 Oct 2004 21:06:37 +0200 |
address@hidden writes:
> If you change it to
> \lilypond[fragment,relative]{c4 d e f}
> it seems to work (apart from the bugs I've already reported).
>
> However, it seems that you have found yet another bug, namely that
> lilypond-book strips of all right braces from within the
> \lilypond{...} in the generated lily-*.ly files.
> Of course, this is a classical parsing problem, since lilypond-book
> has to realize which right brace belongs to the example and which
> is the end of the example. Since there's no way to describe arbitrarily
> deeply nested pairs of braces in a regular expression, I don't see an
> easy way to handle the situation, unless we start escaping right braces
> within \lilypond{...} or introducing some extra conventions that the
> final right brace should end the line and the full \lilypond{...} should
> be on a single line, or so. At least this limitation should be
> documented.
how about the \verb trick? I.e. have
\lilypond+<code>+
\lilypond!<code>!
where + and ! can be arbitrary but matching?
--
Han-Wen Nienhuys | address@hidden | http://www.xs4all.nl/~hanwen