ConTeXt MKIV Bug: transparent does not work as should in mplib's textext
![](https://secure.gravatar.com/avatar/435ac0d0ecd67394ae88a2020214d815.jpg?s=120&d=mm&r=g)
Hi Hans: It seems that \definecolor[ foobar][some transparent color] does not work in MKIV. I attach the test file and result pdf in the attachment. Can you take a look? thanks! Yue Wang
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 09.11.2008 um 13:27 schrieb Yue Wang:
Hi Hans:
It seems that \definecolor[ foobar][some transparent color] does not work in MKIV. I attach the test file and result pdf in the attachment. Can you take a look? thanks!
It works but in normal text but if you use MetaPost graphics only the first text is transparent. \setupcolors[state=start] \definecolor[tred][a=1,t=.5,r=1] \starttext \startluacode tex.sprint("\\startMPcode") for i=1,5 do tex.sprint('label(textext("\\definedfont[Sans sa ' .. math.random(1,4) .. ']%') tex.sprint('\\color[tred]{1}"),(10*' .. i .. ',0)) ;') end tex.sprint("\\stopMPcode") \stopluacode \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Yue Wang wrote:
Hi Hans:
It seems that \definecolor[ foobar][some transparent color] does not work in MKIV. I attach the test file and result pdf in the attachment. Can you take a look? thanks!
it's some tricky interference between graphic states in the pdf code so i now opt for a more robust but redundant approach (more color code in the pdf stream but who cares) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Wolfgang Schuster
-
Yue Wang