Re: [NTG-context] Place a text over an arrow (Metafun)
> On 25 Jul 2016, at 11:47, Fabrice Couvreur> 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 ___
Re: [NTG-context] Place a text over an arrow (Metafun)
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: > 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 > 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 > > ___ > ___ 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 ___
Re: [NTG-context] Place a text over an arrow (Metafun)
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> 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 ___
Re: [NTG-context] Place a text over an arrow (Metafun)
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 ___
Re: [NTG-context] Question about \definefallback
Dear List, I answer to myself (or I give a solution to the problem I have to face). As for this precise case (i.e. having multilanguages in the same document with French as main language, with some words, sentences or whatever in Ancient Greek, Chinese and Arabic/Persian/Farsi), the working solution is the \definefallbackfamily command with the \definefontfamily (as everybody knows !). In this case, I 've failed to deal with Arabic/Farsi (when I wanted to print the name of the Arabic medieval philosopher Fārābī, محمد فارابی The code was : \definefallbackfamily [mainface] [sans] [hussaininastaleeq] [range=arabic], and it doesn't work. I've tried this : \definefallbackfamily[mainface] [serif] [nafeesnastaleeq] [range=arabic,farsi] and it works. A beginner's mistake, if I summarize... JP Le 24/07/2016 à 13:18, Jean-Pierre Delange a écrit : Dear List, Working with ConTeXt MK IV version 2016.07.18, I need sometimes within a text in French I am working on, some Greek words or sentences, rarely Chinese and Arabic words, mainly names and a few words. Then, I use this general preamble (thanks to Pablo Rodriguez): \setuplanguage[fr][patterns={fr,agr}] \mainlanguage[fr] \setuplayout [backspace=40mm] \setuppagenumbering[alternative=doublesided, location={header, inmargin}] \setupmargindata[inmargin][location=inner, style={\ssx\setupinterlinespace[line=2.8ex]}] \setupmarginframed[inmargin][align=right] \setupbodyfontenvironment[default][em=italic] % Hereafter the commands for Greek and Chinese \definefallbackfamily[mainface][serif][Theano Didot][preset=range:greek, it={Old Standard Italic}, force=yes] \definefallbackfamily [mainface] [rm] [ipaexmincho] [range=cjkunifiedideographs] \definefontfamily [mainface] [serif] [GaramondNo8][sc=NewG8 Regular SC] \definefontfamily [mainface] [sans] [FreeSans] [rscale=0.7] All is working well, but if I add these lines below to the pramble: \definefallbackfamily [mainface] [sans] [hussaininastaleeq] [range=arabic] \definefontfamily [mainface] [serif] [GFS Didot] (where hussainiastaleeq and GFS Didot fonts are pre-installed, and load with a '|mtxrun --script fonts --reload' command), then Arabic words are not printed in the PDF file. One more question : in the English translitteration, the name of the tenth century Arabic philosopher, Farabi, is |Abū Naṣr al-Fārābī (with diacritic signs on wovels and under the 's' of "Nasr"). Do someone knows how to deal with these diacritic signs ? Thak you very much. JP ___ 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 ___
[NTG-context] Place a text over an arrow (Metafun)
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 ___