On Tue 01 Feb 2022 at 16:09:01 (+0100), Leo Correia de Verdier wrote: > > Is there a way to have an \include inside a function? > In the attached file includeinfunction.ly the commented out line doesn’t work > (probably for some very logical reason, but still unknown to me). Is there a > way to work around that and have includes inside functions?
NR § 3.1.5 File structure At any point in a file, any of the following /lexical/ instructions can be entered: • \version • \include [ … ] (my emphasis) So it's not going to work, because you can't "call" it. It just inserts the contents of the file at that point. Cheers, David.
