Dear All,
I am trying to build a document with lilypond and latex. I started building
some example I found on the lilypond website.
All is fine but when I try to set some option, as for instance
\begin{lilypond}[fragment] the builder says there is a syntax error since '['
and ']' are not recognized.
For instace:
\documentclass[a4paper]{article}
\begin{document}
Documents for \verb+lilypond-book+ may freely mix music and text.
For example,
\begin{lilypond}
\relative c' {
c2 e2 \times 2/3 { f8 a b } a2 e4
}
\end{lilypond}
Options are put in brackets.
%%% THE FOLLOWING PRODUCES ERRORS:
Fragment1
\begin{lilypond}[fragment,quote,staffsize=26,verbatim]
c'4 f16 |
\end{lilypond}
Fragment2
\begin{lilypond}[fragment,relative=2,quote,staffsize=26,verbatim]
d4 c b a
\end{lilypond}
%%%%
Larger examples can be put into a separate file, and introduced with
\verb+\lilypondfile+.
\lilypondfile[quote,noindent]{test.ly}
(If needed, replace @file{screech-and-boink.ly} by any @file{.ly} file
you put in the same directory as this file.)
\end{document}
While compiling the sections with options between [] produce error like this:
Parsing...
Processing `lilyla.lytex'
Parsing...
lilyla.lytex:25:0: error: syntax error, unexpected '['
[fragment,relative=2,quote,staffsize=26,verbatim]
warning: identifier name is a keyword: `relative'
lilyla.lytex:25:20: error: syntax error, unexpected ','
[fragment,relative=2
,quote,staffsize=26,verbatim]
lilyla.lytex:25:39: error: syntax error, unexpected ','
[fragment,relative=2,quote,staffsize=26
,verbatim]
Layout output to `1a/lily-abe95114.eps'...
Converting to `1a/lily-abe95114.pdf'...
If I remove the sections with options suche as (
\begin{lilypond}[fragment,relative=2,quote,staffsize=26,verbatim]d4 c b
a\end{lilypond}, the compilation is fine.
Thank you in advance,
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user