lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond-book \begin{lilypond} does not accept options


From: Jan-Peter Voigt
Subject: Re: lilypond-book \begin{lilypond} does not accept options
Date: Thu, 25 Oct 2012 15:49:47 +0200

Hello Mario,

you may try to put the options before the curly brackets:
\begin[line-width=12\cm,staffsize=14]{lilypond}
...

There has been a change a while ago, that lilypond environment looks like other 
envs, IIRC.

Cheers, Jan-Peter

Am 25.10.2012 um 15:10 schrieb Mario Raffin:

> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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