ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tarik Kara <ktarik@Bilkent.EDU.TR>
Cc: ntg-context@ntg.nl
Subject: Re: A label question
Date: Fri, 18 May 2001 22:22:24 +0300 (EET DST)	[thread overview]
Message-ID: <Pine.GSO.4.05.10105182211040.1906-100000@sumak> (raw)
In-Reply-To: <3.0.3.32.20010518091843.00cd39f0@mail.northcoast.com>

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
> 
> 


  reply	other threads:[~2001-05-18 19:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-18 16:18 David Arnold
2001-05-18 19:22 ` Tarik Kara [this message]
2001-05-19  9:18   ` Hans Hagen
2001-05-19  8:41 ` Hans Hagen

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=Pine.GSO.4.05.10105182211040.1906-100000@sumak \
    --to=ktarik@bilkent.edu.tr \
    --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).