|
From: | Urs Liska |
Subject: | Where/when does LilyPond handle #(ly:set-option) commands? |
Date: | Fri, 20 Sep 2013 11:08:33 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
Hi, I would like LilyPond to insert a style file depending on the presence of a command line switch. Inserting the following into "init.ly" #(if (ly:get-option 'draft-mode) (ly:parser-include-string parser "\\include \"draft-mode.ily\""))
works when I add the option
to the command line lilypond -ddraft-mode file.ly However I want to also be
able to process options that have been included in the input file. \version "2.17.26" #(ly:set-option 'draft-color-editorial) ...
and have "draft-mode.ily"
check for this option
|
[Prev in Thread] | Current Thread | [Next in Thread] |