On 02/01/2015 01:39 PM, Fabrice Couvreur wrote:
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?
Hi Fabrice, this does what you asked (vertical centering might be achieved with a table or something similar [I’m in a hurry right now]): \starttext \dontleavehmode\framedtext[frame=on,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$. } \startMPcode drawarrow (0,0)--(1cm,0) withpen pencircle scaled 1pt withcolor red ; \stopMPcode\hskip 0.5cm \color[red]{Initialisation} \stoptext \dontleavehmode should be at the begining of the paragraph. I hope it helps, Pablo -- http://www.ousia.tk