[NTG-context] Place a text over an arrow (Metafun)

Fabrice Couvreur fabrice1.couvreur at gmail.com
Mon Jul 25 11:47:44 CEST 2016


Hi Hans and Otared,
I did not know this module (Context is so rich !), it's great !
thanks
Fabrice

2016-07-25 11:29 GMT+02:00 Otared Kavian <otared at gmail.com>:

> Hi Fabrice,
>
> Do you know the step charts module in ConTeXt? I guess you can achieve
> what you want as in the example below (sorry, I did not took your example,
> I am just copying an example from my archives…).
>
> %%%%%%%%%%
> \usemodule[steps]
> \starttext
>
> Pour voir que la composée de deux fonctions $f$ et $u$, continues en un
> point $x_{*}$, est continue, on peut suivre le schéma suivant~:
> \placefigure[middle,none][-]{}{
> %\scale[,width=.35\textwidth]{
> \startSTEPtable
> \cell {$(f\circ u)(x_{*} + o(1)) = $} \text{définition de $f\circ u$}
> \cell {$f\left(u\left(x_{*} + o(1)\right)\right) = $} \text {$u$ est
> continue}
> \cell {$f\left(u(x_{*}) + o(1)\right) = $} \text {$f$ est continue}
> \cell {$f\left(u(x_{*})\right) + o(1) =$} \text {définition de $f\circ u$}
> \cell {$(f\circ u)(x_{*}) + o(1)$.}
> \stopSTEPtable
> %}
> }
> \stoptext
> %%%%%%%%%%
>
> Best regrads: Otared
>
>
>
> On 25 Jul 2016, at 10:36, Fabrice Couvreur <fabrice1.couvreur at gmail.com>
> wrote:
>
> Hello,
> My way is not very elegant but I would do this:
>
> Formula
>                    arrow text
> Formula
>                    arrow text
> Formula
>                    arrow text
> Formula
>
> #########################################################
> \startuseMPgraphic{MyArrow}
> path p ;
> p:=(0,0){right}..(0.5cm,-0.6cm)..(0,-1.2cm){left} ;
> drawarrow p withpen pencircle scaled 1.5bp withcolor 0.625white ;
> \stopuseMPgraphic
>
> \starttext
>
> \showgrid
>
> \math{A\times X=B}
>
> \hfill On multiplie, à gauche, les deux membres de l'égalité par
> \math{A^{-1}}.
>
> \hskip 5cm \relax \dontleavehmode\useMPgraphic{MyArrow}
>
> \math{A^{-1}\times A\times X=A^{-1}\times B}
>
> \hfill On utilise l'égalité \math{A^{-1}\times A=I}.
>
> \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow}
>
> \math{I\times X=A^{-1}\times B}
>
> \hfill On utilise l'égalité \math{X\times I=I\times X=X}.
>
> \hskip 5cm \relax \dontleavehmode \useMPgraphic{MyArrow}
>
> On a donc \math{X=A^{-1}\times B}
>
> \stoptext
> #########################################################
>
> Thanks,
> Fabrice
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160725/8e6fe0a7/attachment.html>


More information about the ntg-context mailing list