![](https://secure.gravatar.com/avatar/ad1e74bd82982756ebbaf8f873c0e7cc.jpg?s=120&d=mm&r=g)
Good noon. I'm sorry that I bother you with an off-topic question, but I know here are many Metapost gurus. I'd like to join two point (E1 and E2) having the same ypart (ypart(E1)=ypart(E2)) with the TeX underbrace sign. To do it I have to tell TeX (via btex ... etex?) the horizontal distance of the two points. Do you know how can I do it? Many thanks, M.K.
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Thu, 22 May 2003 11:47:14 +0200
Michal Kvasnicka
I'd like to join two point (E1 and E2) having the same ypart (ypart(E1)=ypart(E2)) with the TeX underbrace sign. To do it I have to tell TeX (via btex ... etex?) the horizontal distance of the two points. Do you know how can I do it?
%%% snip--> input TEX ; pair E[] ; numeric XShift ; XShift := 3cm ; E1 := (1,13) ; E2 := E1 shifted (XShift,0) ; beginfig(1); pickup pencircle scaled 2pt ; draw E1 ; label.top("E1",E1); draw E2 ; label.top("E2",E2); labeloffset := 0 ; label.bot( TEX("$\underbrace{\hbox to " & (decimal (xpart (E2-E1))) & "bp{}}$"), 0.5[E1,E2]) ; endfig; end %%%<--snap The example above is plain MP. Embedded in a ConTeXt document you should better use the "textext" macro instead of the "TEX" macro from TEX.mp. Jens
![](https://secure.gravatar.com/avatar/178537b38d41da9137e5dc3231557708.jpg?s=120&d=mm&r=g)
Michal Kvasnicka
Good noon.
I'm sorry that I bother you with an off-topic question, but I know here are many Metapost gurus.
I'd like to join two point (E1 and E2) having the same ypart (ypart(E1)=ypart(E2)) with the TeX underbrace sign. To do it I have to tell TeX (via btex ... etex?) the horizontal distance of the two points. Do you know how can I do it?
Take a look at http://www.d.kth.se/~f91-tek/cm_arrows.html -- Emil Hedevang Lohse http://home.imf.au.dk/emil/ Alle spørgsmål er lige dumme. Og spørgsmålet "Kan ænder flyve?" er ikke dumt.
participants (3)
-
Emil Hedevang Lohse
-
Jens-Uwe Morawski
-
Michal Kvasnicka