From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4699 Path: main.gmane.org!not-for-mail From: Tarik Kara Newsgroups: gmane.comp.tex.context Subject: Re: A label question Date: Fri, 18 May 2001 22:22:24 +0300 (EET DST) Sender: owner-ntg-context@let.uu.nl Message-ID: References: <3.0.3.32.20010518091843.00cd39f0@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1035395343 27938 80.91.224.250 (23 Oct 2002 17:49:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:49:03 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold In-Reply-To: <3.0.3.32.20010518091843.00cd39f0@mail.northcoast.com> Xref: main.gmane.org gmane.comp.tex.context:4699 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4699 I think the problem is with the \par command. I am not sure how you would like to align the label, but the following looks ok for me: label.ulft(btex \vbox{\hbox{The vertical}% \hbox{deflection of}% \hbox{the center of}% \hbox{gravity $y(t)$}} etex, 0.5[z0,z1]); The following also works (with the LaTeX switch of mpost) label.ulft(btex \begin{tabular}{l}The vertical \\% deflection of \\% the center of \\% gravity $y(t)$ \end{tabular} etex, 0.5[z0,z1]); But the tabular environment adds a little space to the begining of the first column which might be undesirable. Hope this help. Tar{\i}k Kara On Fri, 18 May 2001, David Arnold wrote: > All, > > This is a Metapost labeling question. > > I have two points z0 and z1 and a segment connecting them. > > draw z0--z1; > > I'd like to put a TeX label to the left of the segment, but I want to > format it as follows. > > The vertical > deflection of > the center of > gravity $y(t)$ > > That's four lines. > > I tried: > > label.lft(btex The vertical\par deflection of\par the center of\par gravity > $y(t)$ etex, 0.5[z0,z1]); > > to no avail. Any suggestions? > > > - > David Arnold > College of the Redwoods > Mathematics Department > 7351 Tompkins Hill Rd > Eureka, CA 95501 > (707) 476-4222 Office > (707) 476-4424 Fax > http://online.redwoods.cc.ca.us/instruct/darnold/ > > Ordinary Differential Equations Using MATLAB, 2/e > http://www.prenhall.com/books/esm_0130113816.html > >