[NTG-context] possible problem with MPinstance or MPinclusions? works in 20200920 but not in the current 20210124 ...

Rudd, Kevin kevin at lps.umd.edu
Tue Jan 26 18:32:30 CET 2021

hi, Hans---

putting boxrow.mp in the lmtx tree and running "mtxrun --generate"  worked, so it appears that my old path settings in the environment file isn't working any more. and i'd rather not mangle the distribution tree as that's out-of-sight/out-of-mind and likely to get replaced sometime after i've forgotten that i mangled it....

  - does that mean that the usepath/usesubpath feature or environment scoping is now different?
    => if so, where do i find the new rules/syntax so i can regenerate my path code/environment file?
    => is there a hook to generate/append the file paths dynamically using a lua script in the top-level setup file (seems easier than the manual csh script=>environment file that i'm using now....)

  - is it possible to configure lmtx to add my local tree to the search path? i seem to recall it was possible when i was fiddling with kpse many many years ago.
    => if so, where do i find the info to set that up in my *shrc files?


Kevin W. Rudd, Ph.D.

Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)

kevin at lps.umd.edu<mailto:kevin at lps.umd.edu>

Visiting Research Professor
United States Naval Academy

rudd at usna.edu<mailto:rudd at usna.edu>

On Jan 26, 2021, at 12:00, Hans Hagen <j.hagen at xs4all.nl<mailto:j.hagen at xs4all.nl>> wrote:

On 1/26/2021 1:19 PM, Rudd, Kevin wrote:
I have a number of included figures that work in 20200920 but not in the current 20210124 version. There's a project structure that sets everything up but after that they are input as a figure:
            \startplacefigure[title={NS Hierarchy},
                \input ns_hierarchy
and generate the error:
metafun         > log > error: Not implemented: (unknown numeric)=(string)
metafun         > log >
metapost        > log >
metapost        > log > <to be read again>
metapost        > log >                    ,
metapost        > log > <*>  make_BoxRow [ name = "Parent",
metafun         > log >
metafun         > log > I'm afraid I don't know how to apply that operation to that combination of types.
Continue, and I'll return the second argument (see above) as the result of theoperation.
metafun         > log >
metapost        > log >                                     label = "Parent Root Namespace", ]; ;
>From triaging, it looks like the "boxrow.mp" file isn't being input by the current version from within the MPinclusions block associated with the MPinstance; the error appears to be spurious as a result of make_BoxRow not being defined and doesn't occur in the old version where the file is input. "boxrow.mp" is not in the same directory as the document but is in the configured through the usepath/usesubpath interface from an environment file.
I can put together and share a runnable MWE set of files if this information is not complete enough to identify the problem.
Here is the MWE that I used for the input figure file that demonstrates the problem.
    input boxrow
    % nothing to see here....
        name           = "Parent",
        label          = "Parent Root Namespace",
What if you put it in your tree? Someplace under


(run mtxrun --generate afterdpimng that)


                                         Hans Hagen | PRAGMA ADE
             Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | www.pragma-ade.nl<http://www.pragma-ade.nl> | www.pragma-pod.nl<http://www.pragma-pod.nl>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210126/8ac1425e/attachment-0001.htm>

More information about the ntg-context mailing list