From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Macro to write a vector (Metafun) is broken
Date: Tue, 20 Mar 2018 16:29:13 +0100 [thread overview]
Message-ID: <CACyK-eo8wv-ODn3B=4SzGo83iEYDrTcpnYR4897KAYK-SQso1Q@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1796 bytes --]
Hello Hans,
The macro you wrote to draw the arrows of the vectors does not seem to work
anymore.
Thank you
Fabrice
\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
[-- Attachment #1.2: Type: text/html, Size: 2445 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2018-03-20 15:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 15:29 Fabrice Couvreur [this message]
[not found] ` <CAG5iGsBtF8xoP58tTnqfQepcDST970NdvL2pmgoyPAVvERP+zg@mail.gmail.com>
2018-03-22 8:54 ` Fwd: " Hans Hagen
2018-03-22 21:14 ` 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='CACyK-eo8wv-ODn3B=4SzGo83iEYDrTcpnYR4897KAYK-SQso1Q@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--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).