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.


   /Mats

Erik Sandberg wrote:
Hi,

Using 2.3.22, how do I use \lilypond in a .lytex file?

I tried the following file, it gives me errors. If I replace \lilypond{...} with \begin{lilypond}...\end{lilypond}, it all works fine. Is this a bug?

\documentclass[letterpaper]{article}
\begin{document}
\lilypond{\relative c' {c4 d e f} }
\end{document}


_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user

-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe =============================================


_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to