<div dir="ltr"><div><span style="font-family:verdana,sans-serif"><span id="result_box" class="" lang="en"><span class="">Hi,</span><br> <span class="">My image</span> <span class="">contains the text "</span><span>Method 1</span><span>"</span> <span class="">which</span> <span class="">is not centered</span><span>, how can</span> <span class="">he</span> <span class="">be</span><span>?</span><br> <span class="">Thank you</span>.<br></span></span></div><span id="result_box" class="" lang="en"><span style="font-family:verdana,sans-serif">Fabrice<br><br>\setupcolors[state=start]<br><br><br>\definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] <br><br>\definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]<br><br>\definecolor[MyColorC][c=0.3, m=0.00, y=0.00, k=0.05]<br><br>\definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10]<br><br>\definemixedcolumns<br>  [myColumn]<br>  [n=2,<br>   separator=rule,<br>   rulecolor=MyColorC,<br>   rulethickness=1pt,<br>   maxwidth=\availablehsize,<br>   balance=yes]<br><br>\setupalign[verytolerant,stretch,hanging]<br><br><br>\defineoverlay<br>  [Funny]<br>  [\useMPgraphic{Funny}]<br><br>\definelabel<br>  [MÉTHODE]<br>  [headstyle=\bf\smallcaps]<br><br><br>\startuseMPgraphic{Funny}<br>    interim linejoin := mitered ;<br>    interim linecap := squared ;<br>    path b ;<br>    picture p ;<br>    picture pic ;<br>    pic := textext.rt("\darkgreen Calculer les coordonnées d'un milieu") ;<br>    pic := pic shifted (OverlayWidth/4,OverlayHeight-ypart center pic+.25ExHeight) ;<br>    p := textext.rt("\white\MÉTHODE") ;<br>    p := p shifted (0,OverlayHeight) ;<br>    b := boundingbox p shifted(1.5mm,0);<br>    drawoptions (withpen pencircle scaled 3mm withcolor \MPcolor{MyColorC}) ;<br>    draw leftboundary OverlayBox shifted(1.5mm,0) ;<br>    fill b withcolor \MPcolor{MyColorD} ;<br>    draw p ;<br>    draw pic ;<br>    setbounds currentpicture to OverlayBox ;<br>\stopuseMPgraphic<br><br>\defineframedtext<br>  [Methode]<br>  [before={\blank[line,halfline]},<br>   after={\blank},<br>   frame=off,<br>   background=Funny,<br>   width=\textwidth,<br>   height=fit,<br>   ]<br><br>\starttext<br><br><br>\startMethode<br><br>\startmyColumn<br><br>\input ward<br><br>\column<br><br>\input knuth<br><br>\stopmyColumn<br><br><br>\stopMethode<br></span><br></span><div><span id="result_box" class="" lang="en"> <span class=""></span></span></div></div>