# [NTG-context] How to place text to the right of a brace

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sun Feb 1 13:39:21 CET 2015

```Hi,
Wolfgang wrote, there was some time already, a nice macro to draw a brace.
In the code below, how to have the arrow and the text to the right of the
brace ?
Best regards,
Fabrice

z1  = (-233,0) ;
z2  = (-220,22) ;
z3  = (-155,211) ;
z4  = (-200,690) ;
z5  = (-142,1033) ;
z6  = (-97,1106) ;
z7  = (-71,1125) ;
z8  = (-61,1104) ;
z9  = (-80,1077) ;
z10 = (-108,1002) ;
z11 = (-129,666) ;
z12 = (-117,207) ;
z13 = (-197,19) ;
z14 = (-208,0) ;
z15 = (-197,-19) ;
z16 = (-117,-207) ;
z17 = (-129,-666) ;
z18 = (-108,-1026) ;
z19 = (-80,-1077) ;
z20 = (-61,-1104) ;
z21 = (-71,-1125) ;
z22 = (-97,-1106) ;
z23 = (-143,-1031) ;
z24 = (-199,-673) ;
z25 = (-155,-211) ;
z26 = (-220,-22) ;
fill z1 for i=2 upto 14: .. z[i] endfor & z14 for j=15 upto 26: .. z[j]
endfor .. z1 & cycle  withcolor red ;
\stopuseMPgraphic

\defineoverlay[leftbrace] [\leftaligned

\starttext

\framedtext[frame=off,loffset=1em,roffset=1em,background={rightbrace}]{
La longueur est \unit{4 centimeter} ; on donne à \$L\$ la valeur \$4\$.

La largeur est \unit{3 centimeter} ; on donne à  \$l\$ la valeur \$3\$.
}
\dontleavehmode\startMPcode drawarrow (0,0)--(2cm,0) withpen pencircle
scaled 1pt withcolor red ; \stopMPcode\hskip 1cm \color[red]{Initialisation}

\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150201/d0531eb8/attachment.html>
```