Hi,
You should use the same width if you want to obtain the same result (by the way, you have to say also \stopframedtext in your source file):
\startframedtext[width=\textwidth]{
\placefigure[right,none]{}{%
\startMPcode
draw unitsquare scaled 2cm ;
\stopMPcode}
\input knuth.tex }
\stopframedtext
Best regards: OK
> ___________________________________________________________________________________
> On 08 Aug 2015, at 00:49, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:
>
> Hi,
> Why the text does not move in the first framedtext like the second framedtext ?
> Thank you.
> Fabrice
>
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][.75(MyColorB,white)]
>
> \defineframedtext
> [MyText]
> [frame=off,
> background=MyFrame,
> width=\textwidth,
> location=right]
>
> \defineoverlay
> [MyFrame]
> [\useMPgraphic{MyFrame}]
>
> \definelabel
> [Définition]
> [headstyle=\bf\smallcaps]
>
> \startuseMPgraphic{MyFrame}
> path b ;
> picture p ;
> p := textext.rt("\white\Définition") ;
> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
> fill OverlayBox withcolor \MPcolor{MyColorA} ;
> fill b withcolor \MPcolor{MyColorB} ;
> draw p ;
> \stopuseMPgraphic
>
> \starttext
> \startMyText
> \placefigure[right,none]{}{%
> \startMPcode
> draw unitsquare scaled 2cm ;
> \stopMPcode}
> \input knuth
> \stopMyText
>
> \startframedtext{
> \placefigure[right,none]{}{%
> \startMPcode
> draw unitsquare scaled 2cm ;
> \stopMPcode}
> \input knuth}
>
> \stoptext
> 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
___________________________________________________________________________________