Re: [NTG-context] \sometxt in staticMPfigure

2006-10-05 Thread Hans Hagen
Aditya Mahajan wrote: On Tue, 26 Sep 2006, Hans Hagen wrote: Sanjoy Mahajan wrote: Ah, you're right and I just realized what happened. 'ctxtools --updatecontext' calls unzip with -uo: -u update existing files and create new ones if needed. This option

Re: [NTG-context] \sometxt in staticMPfigure

2006-10-05 Thread Sanjoy Mahajan
i already patched ctxtool to unzip everything I think this is the right solution (or using -o to unzip). The unzip time is low compared with the time to download cont-tmf.zip (disks are faster than almost all network connections), so optimizing unzip time is not worth the chance of

Re: [NTG-context] \sometxt in staticMPfigure

2006-10-04 Thread Aditya Mahajan
On Tue, 26 Sep 2006, Hans Hagen wrote: Sanjoy Mahajan wrote: Ah, you're right and I just realized what happened. 'ctxtools --updatecontext' calls unzip with -uo: -u update existing files and create new ones if needed. This option performs the same function as the -f

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-27 Thread Hans Hagen
Sanjoy Mahajan wrote: Hans Hagen [EMAIL PROTECTED] wrote: indeed, another option is to replace more of mp's color stuff by context but then we may end up in other problems I'm guessing that pdftex+lua will make it easier to meld tex and metapost. not really, for that we need mp

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Hans Hagen
Sanjoy Mahajan wrote: With the new beta, this stress test for \sometxt works fine: \setupcolors[state=start] \starttext \startstaticMPfigure{fig} label(\sometxt{he\color[blue]{ab}lo}, origin) withcolor red; draw fullcircle scaled 1cm

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Hans Hagen
Sanjoy Mahajan wrote: Ah, you're right and I just realized what happened. 'ctxtools --updatecontext' calls unzip with -uo: -u update existing files and create new ones if needed. This option performs the same function as the -f option, extracting (with

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
\starttext \startMPinclusions input boxes \stopMPinclusions \startstaticMPfigure{fig} boxit.h(btex h etex); drawboxed(h); \stopstaticMPfigure \usestaticMPfigure[fig] xyz \stoptext hm, i'll add the inclusions (here it fails anyway doe to some

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Hans Hagen
you can test the beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Is it important to have -u? dunno, probably only for speed reasons, so maybe we should use just -o I agree. Correctness over speed, I think. -u makes testing reports less reliable and can cause subtle bugs when all the files don't share the same version (I noticed it soon in this case only

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
you can test the beta This gives the clearboxes error: === box.tex === \startMPinclusions input boxes \stopMPinclusions \starttext \startstaticMPfigure{fig} boxit.h(btex h etex); drawboxed(h); \stopstaticMPfigure \usestaticMPfigure[fig] \stoptext

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen wrote: test case: \setupcolors[state=start,textcolor=red] \starttext red \color[green]{green \startMPcode label(\sometxt{green\color[blue]{blue}green}, origin) withcolor red; draw fullcircle scaled 1cm xscaled 2;

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Hans Hagen
Sanjoy Mahajan wrote: Hans Hagen wrote: test case: \setupcolors[state=start,textcolor=red] \starttext red \color[green]{green \startMPcode label(\sometxt{green\color[blue]{blue}green}, origin) withcolor red; draw fullcircle

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Hans Hagen
Sanjoy Mahajan wrote: you can test the beta This gives the clearboxes error: === box.tex === \startMPinclusions input boxes \stopMPinclusions \starttext \startstaticMPfigure{fig} boxit.h(btex h etex); drawboxed(h); \stopstaticMPfigure

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen [EMAIL PROTECTED] wrote: indeed, another option is to replace more of mp's color stuff by context but then we may end up in other problems I'm guessing that pdftex+lua will make it easier to meld tex and metapost. -Sanjoy `A society of sheep must in time beget a government of

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-26 Thread Sanjoy Mahajan
Hans Hagen wrote: the problem (if you look into the mp file) is that there is *no* beginfig; this is because we now use a more stupid (stripped down) variant of saving the graphic. Right, I looked into the mp file and saw the new plan. \startstaticMPfigure{fig} beginfig(1);

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Hans Hagen
Sanjoy Mahajan wrote: Another small metafun test file. It displays no text in the middle of the ellipse. Using \textext instead of \sometxt works. \starttext \startstaticMPfigure{fig} draw \sometxt{hello}; draw fullcircle scaled 1cm xscaled 2; \stopstaticMPfigure

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
Hans Hagen wrote: demanding guy ... a static is just an mp graphic and mp does not know a thing about \macros Thanks, I understand now; and sorry, I hadn't meant it as a feature request! I was trying only to learn the differences between all the ways of doing *TeX labels in figures, and was

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Hans Hagen
Sanjoy Mahajan wrote: I guess because there's no processmpstatic procedure, whereas texexec.rb calls job.processmpstatic. But the analogous procedure, processmpgraphic, is a bit daunting so I haven't tried to write processmpstatic. def processmpstatic if filename =

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
def processmpstatic if filename = getvariable('filename') then in tex.rb looks like a messed up update Ah, you're right and I just realized what happened. 'ctxtools --updatecontext' calls unzip with -uo: -u update existing files and create new ones if needed. This

Re: [NTG-context] \sometxt in staticMPfigure

2006-09-25 Thread Sanjoy Mahajan
With the new beta, this stress test for \sometxt works fine: \setupcolors[state=start] \starttext \startstaticMPfigure{fig} label(\sometxt{he\color[blue]{ab}lo}, origin) withcolor red; draw fullcircle scaled 1cm xscaled 2;

[NTG-context] \sometxt in staticMPfigure

2006-09-24 Thread Sanjoy Mahajan
Another small metafun test file. It displays no text in the middle of the ellipse. Using \textext instead of \sometxt works. \starttext \startstaticMPfigure{fig} draw \sometxt{hello}; draw fullcircle scaled 1cm xscaled 2; \stopstaticMPfigure \usestaticMPfigure[fig] xyz \stoptext