From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: Re: A Metapost question
Date: Thu, 22 May 2003 13:19:39 +0200 [thread overview]
Message-ID: <20030522131939.69ed98e8.morawski@gmx.net> (raw)
In-Reply-To: <200305221147.14357.quasar@econ.muni.cz>
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
next prev parent reply other threads:[~2003-05-22 11:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-22 9:47 Michal Kvasnicka
2003-05-22 11:19 ` Jens-Uwe Morawski [this message]
2003-05-22 15:58 ` Emil Hedevang Lohse
[not found] <mailman.1712.1252652594.3069.ntg-context@ntg.nl>
2009-09-11 14:33 ` Vyatcheslav Yatskovsky
2009-09-11 14:41 ` Hans Hagen
2009-09-11 14:42 ` Arthur Reutenauer
2009-09-11 14:38 Vyatcheslav Yatskovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030522131939.69ed98e8.morawski@gmx.net \
--to=morawski@gmx.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).