[metapost] Reaching the limit of beginfig

Taco Hoekwater taco at elvenkind.com
Wed Nov 15 19:22:54 CET 2006

Peng Yu wrote:
> On 11/15/06, Taco Hoekwater <taco at elvenkind.com> wrote:
>>Peng Yu wrote:
>>>I need to generate thousands of figures from the same metapost program.
>>>But the command "beginfig(6000)" or "fignumber := 6000; beginfig(fignumber);"
>>>gives me some errors. Is there any walkaround?
>>If you set
>>        warningcheck := 0;
>>(like the message proposed) you can go up to 32767, but then metapost
>>no longer reports on some of the overflow checks, so you have to be
>>sure that your figures are not so large they produce wrong results.
> Is there a way to increase the limit?

Not in the currently released version, sorry.

The next version allows user-defined output filename templates, and
there you can get around the limitation by using two counters instead
of just the one that is built-in, but that does not work yet.

Greetings, Taco

More information about the metapost mailing list