argh. the problem with multiple versions of lmtx....
- running mtxrun --generate then mtxrun --find finds the file
- running context with the document doesn't find the file and gives the same error
. but i haven't changed my environment usepath/usesubpath file
so:
20200920: mtxrun --generate .. mtxrun --find boxrow.mp works; context <document> works w/ or w/o putting the file in .../lmtx/tex/texmf-local/metapost
20210124: mtxrun --generate .. mtxrun --find boxrow.mp works; context <document> doesn't work w/ or w/o putting the file in .../lmtx/tex/texmf-local/metapost
---K
Kevin W. Rudd, Ph.D.
CAPT, USN (Ret)
Computer Architecture & Computer Engineering
Advanced Computing Systems (ACS) Research Program
Laboratory for Physical Sciences (LPS)
443-654-7878
kevin@lps.umd.edumailto:kevin@lps.umd.edu
Visiting Research Professor
United States Naval Academy
rudd@usna.edumailto:rudd@usna.edu
On Jan 26, 2021, at 12:32, Rudd, Kevin
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. \defineMPinstance[ns_hier] [ format=metafun, extensions=yes, initializations=yes, method=double, ] \startMPinclusions{ns_hier} input boxrow \stopMPinclusions \startMPdefinitions{ns_hier} % nothing to see here.... \stopMPdefinitions \startMPcode{ns_hier} make_BoxRow [ name = "Parent", label = "Parent Root Namespace", ]; \stopMPcode What if you put it in your tree? Someplace under
texmf-local/metapost/... (run mtxrun --generate afterdpimng that) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nlhttp://www.pragma-ade.nl/ | www.pragma-pod.nlhttp://www.pragma-pod.nl/ -----------------------------------------------------------------