> From: Nicolas Sceaux [mailto:[EMAIL PROTECTED] > Subject: Re: Using Scheme inside header markup > > "Sven Axelsson" <[EMAIL PROTECTED]> writes: > > Now I'm calling lily from a batch file that looks like this > > > > "%ProgramFiles%\lilypond\usr\bin\lilypond.exe" --preview > -dresolution=72 > > -dno-comment %~n1.ly > > "%ProgramFiles%\lilypond\usr\bin\lilypond.exe" --pdf %~n1.ly > > > > And I have this in my header markup: > > > > #(ly:export (if (not (ly:get-option 'no-comment)) > > (markup #:frompropery 'header:comment) > > (markup))) > > > > But I still get the header with the comment field in both cases. > > There is a little subtlety with options: -dno-comment means > that you set > the `comment' option to #f, whereas -dcomment means that you > set comment > to #t. The problem is that, in that case, the comment option > will never > be true: if you say "dno-comment", it will be false, and if you say > nothing, it will be false also. I suggest that you use an option that > does not start by "no-", for instance "-dwithout-comment", > and then you > test (ly:get-option 'without-comment)
Aargh! That's it alright! Thanks a lot for helping me out here. Got any idea what's up with the --no-pages option failling? -- Sven Axelsson _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user