[NTG-context] update old MP code
Henning Hraban Ramm
texml at fiee.net
Thu Sep 1 18:48:25 CEST 2022
Am 01.09.22 um 18:45 schrieb Taco Hoekwater:
>
>
>> On 1 Sep 2022, at 18:28, Henning Hraban Ramm via ntg-context <ntg-context at ntg.nl> wrote:
>>
>> Am 01.09.22 um 15:40 schrieb Taco Hoekwater:
>>> Adding grouping makes sense:
>>>>
>>>> def Moire(expr size)(text densities)=
>>> begingroup
>>> endgroup
>>> As that at least makes it an expression instead of a statement list.
>>> But also depthless() is never defined?
>>
>> Oops, I forgot to copy that part (confusing source...)
>>
>> It still doesn’t compile:
>
> Missing definition of “width()”, from this line:
>
>>
>> xs := width(q)-width(p);
>
> Adding that should do the trick.
YES, thank you!
I never know which function is part of MetaPost/MetaFun, my editor’s
syntax highlighting is incomplete...
Hraban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: moireetest.tex
Type: application/x-tex
Size: 1715 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220901/3b7dff35/attachment.tex>
More information about the ntg-context
mailing list