David Wright <[email protected]> writes:

> 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.

The point of calling \include was between #{ ... #} and nothing in there
inherently gets "called".  But you cannot place assignments in there.

-- 
David Kastrup

Reply via email to