[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Give parts of commands/definitions to...
From: |
Jeff Kingston |
Subject: |
Re: Give parts of commands/definitions to... |
Date: |
Thu, 21 Apr 2016 07:14:11 +1000 |
User-agent: |
Mutt/1.4i |
> def vvec right body
> { pmatrix strut { Yes } body }
>
> The body is nor parsed again,
That's right, this will not work. Body parameters like the
parameter of pmatrix do have this problem. However, you can
work around it with a macro:
macro vvec { pmatrix strut { Yes } }
This does a token substitution of vvec by pmatrix strut { Yes }.
>From a programming language point of view this is not very nice;
but there is a lot of it in the standard packages.
Jeff
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Give parts of commands/definitions to...,
Jeff Kingston <=