[NTG-context] Package esvect and Context

Hans Hagen pragma at wxs.nl
Mon Jun 6 22:50:35 CEST 2016


On 6/6/2016 9:39 PM, Fabrice Couvreur wrote:
> Hi Joseph,
> This is already the command I used, but I think the point of the too
> small arrow.

If you really want to go over the top:

\useMPlibrary[mat]

% will be in meta-imp-mat.mkiv

\startMPextensions
     vardef math_stacker_arrow_shape =
         image (
             drawarrow
                 (OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
             withcolor
                 OverlayLineColor ;
             setbounds currentpicture to boundingbox currentpicture 
bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;
         )
     enddef ;
     vardef math_stacker_leftarrow_shape =
         math_stacker_arrow_shape
     enddef ;
     vardef math_stacker_rightarrow_shape =
         math_stacker_arrow_shape rotated 180
     enddef ;
\stopMPextensions

\startuniqueMPgraphic{math:stacker:\number"2190}
     math_stacker_draw(math_stacker_leftarrow_shape) ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{math:stacker:\number"2192}
     math_stacker_draw(math_stacker_rightarrow_shape) ;
\stopuniqueMPgraphic

% so far

\setupmathstackers
   [both] % vfenced]
   [color=darkred,
    alternative=mp]

\setupmathstackers
   [top]
   [color=darkred,
    alternative=mp]

\setupmathstackers
   [bottom]
   [color=darkred,
    alternative=mp]

\starttext

$\overbracket   {a+b+c+d} \quad \underbracket    {a+b+c+d} \quad 
\doublebracket{a+b+c+d}$ \blank
$\overparent    {a+b+c+d} \quad \underparent     {a+b+c+d} \quad 
\doubleparent {a+b+c+d}$ \blank
$\overbrace     {a+b+c+d} \quad \underbrace      {a+b+c+d} \quad 
\doublebrace  {a+b+c+d}$ \blank
$\overbar       {a+b+c+d} \quad \underbar        {a+b+c+d} \quad 
\doublebar    {a+b+c+d}$ \blank

$\overleftarrow  {a+b+c+d} \quad \overrightarrow  {a+b+c+d} $ \blank
$\underleftarrow {a+b+c+d} \quad \underrightarrow {a+b+c+d} $ \blank

\stoptext


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


More information about the ntg-context mailing list