On 7/12/2021 12:12 PM, Floris van Manen wrote:
with the latest version not everything gets drawn as intended.


$ context --version
mtx-context     | ConTeXt Process Management 1.04
mtx-context     | current version: 2021.07.10 21:51




On 12/07/2021 10:07, Hans Hagen wrote:
I need to ckeck if the range checked does negative numbers ... anyway, you can do this

\startMPpage[offset=2mm, stacking={1,2,3,4}]

   boxit.A("\boxframed{Box A}");
   boxit.B("\boxframed{Box B}");
   boxit.C("\boxframed{Box C}");

   defaultdx := 0pt;
   defaultdy := 0pt;

   A.c = origin;

   B.w - A.e = (1cm, 0);

   0.5[ A.s, B.s ] - C.n = (0, 1cm);

   draw image (drawunboxed(A,B,C)) withstacking 2;

   drawarrow A.s +- C.w withstacking 3 ;
   drawarrow B.s +- C.e withstacking 4 ;

   newpath highlight;

   highlight := (A.sw -- B.se -- B.ne -- A.nw) enlarged EmWidth;
   fill highlight withcolor "darkgray" withstacking 1;

\stopMPpage
indeed, that why i mentioned that the next version will do (but no upload today)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to