ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Package esvect and Context
Date: Mon, 6 Jun 2016 22:50:35 +0200	[thread overview]
Message-ID: <39f6bdb5-8d53-0d36-a468-e79132775a34@wxs.nl> (raw)
In-Reply-To: <CACyK-eqsaEhbjnL1x36BZ6TkNJ1AV_03sGUtkKUJZGmvhw+=iw@mail.gmail.com>

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-06-06 20:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04  7:12 Fabrice Couvreur
2016-06-06 19:23 ` josephcanedo
2016-06-06 19:39   ` Fabrice Couvreur
2016-06-06 20:50     ` Hans Hagen [this message]
2016-06-07 20:17       ` Fabrice Couvreur
2016-06-07 21:04       ` Wolfgang Schuster
2016-06-15 12:48         ` Fabrice Couvreur
2016-06-15 12:58           ` Wolfgang Schuster
2016-06-15 13:17             ` Fabrice Couvreur
2017-05-26 10:53 Fabrice Couvreur
2017-05-26 22:09 ` Hans Hagen
2017-05-27  7:40   ` Fabrice Couvreur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39f6bdb5-8d53-0d36-a468-e79132775a34@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).