Hi---

All of my figures that use MP boxes are now failing. It looks like "boxjoin" (from the MP "boxes" macros) is not being recognized. Also, apparently unrelated, I wonder if the comparison in "boxes.mp" is correct as it appears that lmtx loads "mp-xbox.mpiv" instead of "mp-xbox.mpxl". Here is some log output and a (mostly) MWE.

Thanks for any suggestions,
 ---K

% system          > ConTeXt  ver: 2021.07.16 22:03 LMTX  fmt: 2021.7.21  int: english/english

% metapost        > initializing instance 'metafun:1' using format 'metafun' and method 'default'
% metapost        > loading 'metafun' as 'metafun.mpxl' using method 'default'
% metapost        > initializing number mode 'scaled'
% metapost        > trace > This is MPLIB for LuaMetaTeX, version 3.11, running in scaled mode.
% metapost        > trace >
% metapost        > trace > loading metafun for lmtx, including the plain 1.004 base definitions
% metapost        > trace >
% metapost        > trace > >> 2
% metafun         > log >
% metafun         > log > error: Isolated expression
% metafun         > log >
% metapost        > trace > >> boxjoin
% metapost        > trace > <to be read again>
% metapost        > trace > <*> show metapostversion; boxjoin(
% metafun         > log >
% metafun         > log > I couldn't find an '=' or ':=' after the expression that is shown above this
% error message, so I guess I'll just ignore it and carry on.
% metafun         > log >
% metapost        > trace >                                ); boxit.a("a"); boxit.bb("bb"); boxit.ccc("ccc"); drawboxed(a,bb,ccc); ;
% metapost        > trace >

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startMPdefinitions
    input boxes
\stopMPdefinitions

\starttext

hello

\startalignment[center]
    \startplacefigure
        \startMPcode%{aaa}
            show metapostversion;
                % boxes.mp: scantokens("input mp-xbox.mp" & (if metapostversion > 2 : "xl" else : "iv" fi)) ;
                %           => loads mp-xbox.mpiv in lmtx rather than mp-xbox.mpxl as i would have expected
            boxjoin();
            % boxjoin(a.se=b.sw; a.ne=b.nw);
            boxit.a("a");
            boxit.bb("bb");
            boxit.ccc("ccc");
            drawboxed(a,bb,ccc);
        \stopMPcode
    \stopplacefigure
\stopalignment

goodbye

\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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.edu

Visiting Research Professor
United States Naval Academy

rudd@usna.edu