[metapost] color stack overflow

Akira Kakuto kakuto at fuk.kindai.ac.jp
Mon Apr 10 10:04:06 CEST 2017


> 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.

Best,
Akira
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mptextmp.txt
URL: <http://tug.org/pipermail/metapost/attachments/20170410/78f71663/attachment.txt>


More information about the metapost mailing list