From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3912 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Labeling of axes Date: Mon, 29 Jan 2001 18:32:00 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010129183200.00ac5650@server-1> References: <3.0.6.32.20010117173850.007a2bd0@pop.wxs.nl> <3.0.6.32.20010128200347.0093cb40@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394618 21250 80.91.224.250 (23 Oct 2002 17:36:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:36:58 +0000 (UTC) Cc: walter kehowski , ntg-context@ntg.nl Original-To: Ed L Cashin In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:3912 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3912 At 10:46 AM 1/29/01 -0500, Ed L Cashin wrote: >Hans Hagen 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 -------------------------------------------------------------------------