From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4702 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: A label question Date: Sat, 19 May 2001 11:18:57 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010519111857.0098c100@server-1> 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 1035395346 27967 80.91.224.250 (23 Oct 2002 17:49:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:49:06 +0000 (UTC) Cc: David Arnold , ntg-context@ntg.nl Original-To: Tarik Kara In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:4702 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4702 At 10:22 PM 5/18/01 +0300, Tarik Kara wrote: >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]); This is indeed the most texie way to do it; the stuff between btex/etex is normally copied to a temp tex file and ends up like : \shipout \vbox \hbox your stuff with some pseudo strut added for spacing. Then tex is run on it, and the output (dvi) is converted into some metapost pictures (actually strings drawn infont ...). So, the stuff becomes a hbox and in order to get lines you need to add a vbox inside the btex/etex. The four \hbox's here make sure that the lines don't become \hsize. If you use the tex alignment primitives, you need to nill the tabskip. In context, it's far better to use the "textext" macro or to move the tex code outside the graphic and just call it by name in the mp graphic. That way you nicely isolate the code. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------