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
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
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
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
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
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
\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
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
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
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
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;
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
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
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
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);
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
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
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 =
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
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;
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
21 matches
Mail list logo