ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: walter kehowski <walter.kehowski@gcmail.maricopa.edu>,
	ntg-context@ntg.nl
Subject: Re: Labeling of axes
Date: Mon, 29 Jan 2001 18:32:00 +0100	[thread overview]
Message-ID: <3.0.6.32.20010129183200.00ac5650@server-1> (raw)
In-Reply-To: <m37l3etl8n.fsf@coe.uga.edu>

At 10:46 AM 1/29/01 -0500, Ed L Cashin wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>...
>> This is indeed a problem, since metapost only sees one btex/etex here and
>> not obe for every loop. 
>> 
>> This is why in context you can use the textext macro: 
>> 
>> beginfig(1) ;
>> 
>>   numeric u ; u = 1.0cm ;
>> 
>>   for i=-10 upto 10 :
>>     if not (i=0) :
>>       draw textext.lft("$" & decimal i & "$") shifted (i*u,0) ;
>
>That is a really great feature!  I've been missing an easy way to
>interpolate data into tex-typeset labels.

An additional thing i've done [already long ago but time flies by] is to
patch some of hobbies modules so that when needed this method is used
instead of the kind of pseudo typesetting that takes place in the diagram
modules. Interesting code in itself, this code of hobby, since it assembles
numbers from snippets of btex/etex pictues, but unfortunately it invokes
too many additional runs.  

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-01-29 17:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-17 16:38 Just testing Pierre Goossens
2001-01-26 20:42 ` Labeling of axes walter kehowski
2001-01-28 19:03   ` Hans Hagen
2001-01-29 15:46     ` Ed L Cashin
2001-01-29 17:32       ` Hans Hagen [this message]
2001-01-29 16:13     ` Marc van Dongen
2001-01-29 17:29       ` Hans Hagen
     [not found]         ` <3A769CBD.F164433E@econ.muni.cz>
2001-01-30 12:33           ` Bug in XML + Fields? Hans Hagen
2003-08-24 19:29     ` Labeling of axes Christopher Creutzig

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.20010129183200.00ac5650@server-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=walter.kehowski@gcmail.maricopa.edu \
    /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).