[metapost] Metapost: generisize() bug

Taco Hoekwater taco at elvenkind.com
Tue Mar 18 09:05:19 CET 2008


Hi Eddie,

Eddie Kohler wrote:
> Hi,
> 
> TeX Live 2007 appears to introduce a bug in the MetaPost boxes.mp 
> "generisize()" function, visible via generic_declare and generic_redeclare. 
> Suffixes like "[0]" are no longer accepted.

This may be a strange question, but: Do you know how to fix the
macro? Apparently it is broken now thanks to an earlier (wrong)
bugfix by me for a problem that happened with strings with "[["
in it (reported by Denis Roegel).

Best wishes,
Taco

> The following input file demonstrates the bug.
> 
> input boxes;
> beginfig(1)
>     _n_ := "blah[0]";
>     generic_declare(pair) _n;
> endfig;
> 
> The workaround is to use "blah0" instead of "blah[0]", but the bug should be fixed.
> 
> Thanks,
> Eddie Kohler
> UCLA
> --
> http://tug.org/metapost/



More information about the metapost mailing list