include within include

2013-12-12 Thread Noeck
Hi,

I can include a file within an included file. But I would like
main.ly: \include folder/first.ly
first.ly: \inlcude second.ly
but second.ly is in the same folder as first.ly

Is there a way to do that? Or do I always have to specify the path
(relative to the lilypond include path)?

Thanks,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: include within include

2013-12-12 Thread Urs Liska

Am 12.12.2013 20:47, schrieb Noeck:

Hi,

I can include a file within an included file. But I would like
main.ly: \include folder/first.ly
first.ly: \inlcude second.ly
but second.ly is in the same folder as first.ly

Is there a way to do that? Or do I always have to specify the path
(relative to the lilypond include path)?


Did you try that? Isn't what you want default behaviour?

But if not simply write
#(ly:set-option 'relative-includes #t)

before the \include statement in first.ly
This is described in 
http://www.lilypond.org/doc/v2.17/Documentation/notation/including-lilypond-files


HTH
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: include within include

2013-12-12 Thread Urs Liska

Am 12.12.2013 23:37, schrieb Urs Liska:
This is described in 
http://www.lilypond.org/doc/v2.17/Documentation/notation/including-lilypond-files


ah, and 
http://www.lilypond.org/doc/v2.16/Documentation/notation/including-lilypond-files 

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: include within include

2013-12-12 Thread Noeck
Thanks Urs,

I should have found this myself.
Just to confirm:
#(ly:set-option 'relative-includes #t)
does what I want, it is announced as default for 'future versions' but
it is not yet the default in 2.16 or 2.17.96

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user