[metapost] color stack overflow

luigi scarso luigi.scarso at gmail.com
Mon Apr 10 10:08:36 CEST 2017


On Mon, Apr 10, 2017 at 10:04 AM, Akira Kakuto <kakuto at fuk.kindai.ac.jp> wrote:
>> ok, but before to patch the code I have  to see why we go beyond the
>> max_color_stack_depth.
>> Could be a problem of macro package.
>
>
> The example by Christophe seems to be correct.
>
> I show below results of my experiment (by using MetaPost 0.641).
>
> [1] change of dvitomp
> max_color_stack_depth = 11
>  color stack overflow occurs
> max_color_stack_depth = 12
>  There is no error. Resulting EssaiNew.1 is OK.
>
> [2] consistency of the example
> mpto -tex mptextmp.mp >mptextmp.tex
> latex mptextmp.tex
> dvitype mptextmp.dvi >mptextmp.txt
>
> The file mptextmp.txt shows:
>
> Number of 'color push' command = 16
> Number of 'color pop'  command = 16
>
> I attach the file mptextmp.txt.
yes, but the point is that perhaps I can find another
chain like
\opOp{\opSimple{\opMouv{\opAp
and have another stack overflow.
-- 
luigi


More information about the metapost mailing list