Re: conditional include

2014-10-18 Thread MarcM
://lilypond.1069038.n5.nabble.com/conditional-include-tp140471p167671.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: conditional include

2014-10-18 Thread Johan Vromans
MarcM writes: > your function checks for arguments passed on the command line. Is there a way > to check variable like an IFDEF ? HTH, Johan ifdefined.ly Description: Binary data ifthenelse.ly Description: Binary data ___ lilypond-user mail

Re: conditional include

2014-10-18 Thread MarcM
ice_IV includes common header only if "header_included = #t" What function could i use? -- View this message in context: http://lilypond.1069038.n5.nabble.com/conditional-include-tp140471p167653.html Sent from the User mailing list archive at Nabble.com. _

Re: conditional include

2013-02-05 Thread Jan-Peter Voigt
Am 05.02.2013 11:07, schrieb David Kastrup: Jan-Peter Voigt writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version "2.16.0" includeI

Re: conditional include

2013-02-05 Thread Urs Liska
Am 05.02.2013 11:07, schrieb David Kastrup: Jan-Peter Voigt writes: Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. \version "2.16.0" includeI

Re: conditional include

2013-02-05 Thread David Kastrup
Jan-Peter Voigt writes: > Hi Urs, > > you can write a music-function that conditionally includes files. > I use a function to include a file, if it exists. The if statement can > of course also test for a option with ly:get-option. > \version "2.16.0" > > includeIfExists = > #(define-music-funct

Re: conditional include

2013-02-05 Thread Urs Liska
Hi Jan-Peter, thank you very much. This example function was actually accessible for me [other than a similar function in lalily, which is just that little amount more complex ...]. I tweaked it to my needs as can be seen in the attachment. It makes a decision depending on the presence of a -d

Re: conditional include

2013-02-04 Thread Jan-Peter Voigt
Hi Urs, you can write a music-function that conditionally includes files. I use a function to include a file, if it exists. The if statement can of course also test for a option with ly:get-option. Best, Jan-Peter On 04.02.2013 16:48, Urs Liska wrote: Hi list, I don't know if I _could_ f

conditional include

2013-02-04 Thread Urs Liska
Hi list, I don't know if I _could_ find this info myself, but I'm quite puzzled about it and so I'd rather ask: I would like to \include files depending on the presence (or absence) of certain command-line options. Basically it should do something like: - if option A is present then \include