* Re: A Metapost question
@ 2009-09-11 14:38 Vyatcheslav Yatskovsky
0 siblings, 0 replies; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-09-11 14:38 UTC (permalink / raw)
To: ntg-context
Sorry, already have found the answer to my question in MetaFun Manual
(metafun-s).
[blush]
Vyatcheslav
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* A Metapost question
@ 2003-05-22 9:47 Michal Kvasnicka
2003-05-22 11:19 ` Jens-Uwe Morawski
2003-05-22 15:58 ` Emil Hedevang Lohse
0 siblings, 2 replies; 7+ messages in thread
From: Michal Kvasnicka @ 2003-05-22 9:47 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A Metapost question
2003-05-22 9:47 Michal Kvasnicka
@ 2003-05-22 11:19 ` Jens-Uwe Morawski
2003-05-22 15:58 ` Emil Hedevang Lohse
1 sibling, 0 replies; 7+ messages in thread
From: Jens-Uwe Morawski @ 2003-05-22 11:19 UTC (permalink / raw)
On Thu, 22 May 2003 11:47:14 +0200
Michal Kvasnicka <quasar@econ.muni.cz> wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A Metapost question
2003-05-22 9:47 Michal Kvasnicka
2003-05-22 11:19 ` Jens-Uwe Morawski
@ 2003-05-22 15:58 ` Emil Hedevang Lohse
1 sibling, 0 replies; 7+ messages in thread
From: Emil Hedevang Lohse @ 2003-05-22 15:58 UTC (permalink / raw)
Michal Kvasnicka <quasar@econ.muni.cz> writes:
> 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-09-11 14:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1712.1252652594.3069.ntg-context@ntg.nl>
2009-09-11 14:33 ` A Metapost question Vyatcheslav Yatskovsky
2009-09-11 14:41 ` Hans Hagen
2009-09-11 14:42 ` Arthur Reutenauer
2009-09-11 14:38 Vyatcheslav Yatskovsky
-- strict thread matches above, loose matches on Subject: below --
2003-05-22 9:47 Michal Kvasnicka
2003-05-22 11:19 ` Jens-Uwe Morawski
2003-05-22 15:58 ` Emil Hedevang Lohse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).