ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: David Arnold <darnold@northcoast.com>, ntg-context@ntg.nl
Subject: Re: A label question
Date: Sat, 19 May 2001 11:18:57 +0200	[thread overview]
Message-ID: <3.0.6.32.20010519111857.0098c100@server-1> (raw)
In-Reply-To: <Pine.GSO.4.05.10105182211040.1906-100000@sumak>

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


  reply	other threads:[~2001-05-19  9:18 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
2001-05-19  9:18   ` Hans Hagen [this message]
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=3.0.6.32.20010519111857.0098c100@server-1 \
    --to=pragma@wxs.nl \
    --cc=darnold@northcoast.com \
    --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).