ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Package esvect and Context
@ 2016-06-04  7:12 Fabrice Couvreur
  2016-06-06 19:23 ` josephcanedo
  0 siblings, 1 reply; 12+ messages in thread
From: Fabrice Couvreur @ 2016-06-04  7:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 191 bytes --]

Hello everyone,
When I used LaTeX, I was writing the vectors with esvect package.
Is there an equivalent with Context ?
Fabrice

https://www.ctan.org/tex-archive/macros/latex/contrib/esvect/

[-- Attachment #1.2: Type: text/html, Size: 652 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Package esvect and Context
@ 2017-05-26 10:53 Fabrice Couvreur
  2017-05-26 22:09 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Fabrice Couvreur @ 2017-05-26 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1352 bytes --]

Hello,
Hans suggested a macro to draw the vectors . It works well but I find that
in some situations, the arrow is too big.
thank you,
Fabrice


https://mailman.ntg.nl/pipermail/ntg-context/2016/085828.html

\useMPlibrary[mat]

\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

$\overrightarrow  {i}$

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2065 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-05-27  7:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04  7:12 Package esvect and Context Fabrice Couvreur
2016-06-06 19:23 ` josephcanedo
2016-06-06 19:39   ` Fabrice Couvreur
2016-06-06 20:50     ` Hans Hagen
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

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