Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-25 Thread Sanjoy Mahajan
In another thread, Hans mentioned the 2006.09.25 beta. I tested it against this test file and it works great: \starttext \dorecurse{20}{\startreusableMPgraphic{\recurselevel} draw fullcircle scaled 3mm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{\recurselevel}}} \stoptext

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-25 Thread Taco Hoekwater
Hi, > it is because we open files without closing them; somehow i > think that this is a bug (taco may know) No, that is not a bug. The error is equivalent to \setbox234567=\hbox{} It is the macro program's duty to keep the numbers in check. Taco _

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Sanjoy Mahajan
> \MPstaticgraphictrue\MPstaticgraphictrue Just one setting needed? > > But with the staticMPfigure test file, the "No room for (\write)" > > message didn't appear, and instead the TeX complained only when > > \openout was tried on the resulting stream. > it is because we open files without clo

Re: [NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Hans Hagen
Sanjoy Mahajan wrote: > Here's a possible solution that works here but is a hack and may make > unwarranted assumptions about control-sequence names. It require a new > if to say whether we are processing a static MP figure, and then using a > dedicated output stream for those writes. > >

[NTG-context] staticMPfigures can overrun output streams

2006-09-24 Thread Sanjoy Mahajan
The following minimal file overruns the available output streams (version 2006.08.08 and context live): \starttext \dorecurse{16}{\startstaticMPfigure{\recurselevel} fill fullcircle scaled 1cm withcolor red; \stopstaticMPfigure} \stoptext At the end are the last few lines of the log. Here are