[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \include inside function
From: |
David Kastrup |
Subject: |
Re: \include inside function |
Date: |
Tue, 01 Feb 2022 21:36:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
David Wright <lilylis@lionunicorn.co.uk> 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
- Re: \include inside function, (continued)
- Re: \include inside function, David Kastrup, 2022/02/01
- Re: \include inside function, Valentin Petzel, 2022/02/01
- Re: \include inside function, David Kastrup, 2022/02/01
- Re: \include inside function, Valentin Petzel, 2022/02/01
- Re: \include inside function, David Kastrup, 2022/02/01
- Re: \include inside function, Valentin Petzel, 2022/02/01
- Re: \include inside function, Jean Abou Samra, 2022/02/01
- Re: \include inside function, Jean Abou Samra, 2022/02/01
- Re: \include inside function, Valentin Petzel, 2022/02/01
Re: \include inside function, David Wright, 2022/02/01
- Re: \include inside function,
David Kastrup <=
Re: \include inside function, Valentin Petzel, 2022/02/01