* Place a text over an arrow (Metafun)
@ 2016-07-25 8:36 Fabrice Couvreur
2016-07-25 9:26 ` Hans Hagen
2016-07-25 9:29 ` Otared Kavian
0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2016-07-25 8:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1075 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1897 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] 5+ messages in thread
* Re: Place a text over an arrow (Metafun)
2016-07-25 8:36 Place a text over an arrow (Metafun) Fabrice Couvreur
@ 2016-07-25 9:26 ` Hans Hagen
2016-07-25 9:29 ` Otared Kavian
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2016-07-25 9:26 UTC (permalink / raw)
To: ntg-context
On 7/25/2016 10:36 AM, Fabrice Couvreur 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
> #########################################################
\usemodule[steps]
\starttext
\startSTEPtable
\cell{\math{A\times X=B}}
\text{some text}
\cell{\math{A^{-1}\times A\times X=A^{-1}\times B}}
\text{some text}
\cell{\math{I\times X=A^{-1}\times B} }
\stopSTEPtable
\stoptext
see manual
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Place a text over an arrow (Metafun)
2016-07-25 8:36 Place a text over an arrow (Metafun) Fabrice Couvreur
2016-07-25 9:26 ` Hans Hagen
@ 2016-07-25 9:29 ` Otared Kavian
2016-07-25 9:47 ` Fabrice Couvreur
1 sibling, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2016-07-25 9:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2675 bytes --]
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@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@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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 5909 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] 5+ messages in thread
* Re: Place a text over an arrow (Metafun)
2016-07-25 9:29 ` Otared Kavian
@ 2016-07-25 9:47 ` Fabrice Couvreur
2016-07-25 14:45 ` Otared Kavian
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2016-07-25 9:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3418 bytes --]
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@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@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@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@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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 6152 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] 5+ messages in thread
* Re: Place a text over an arrow (Metafun)
2016-07-25 9:47 ` Fabrice Couvreur
@ 2016-07-25 14:45 ` Otared Kavian
0 siblings, 0 replies; 5+ messages in thread
From: Otared Kavian @ 2016-07-25 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
> On 25 Jul 2016, at 11:47, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
>
> Hi Hans and Otared,
> I did not know this module (Context is so rich !), it's great !
> thanks
> Fabrice
Indeed… ConTeXt is so rich! Probably I use only one or two per cent of its capabilities, but still I am happy and often amazed…
Best regards: Otared
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2016-07-25 14:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-25 8:36 Place a text over an arrow (Metafun) Fabrice Couvreur
2016-07-25 9:26 ` Hans Hagen
2016-07-25 9:29 ` Otared Kavian
2016-07-25 9:47 ` Fabrice Couvreur
2016-07-25 14:45 ` Otared Kavian
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).