[XeTeX] colour \specials not working with xdvipdfmx driver?

caapv 208 caapv208 at yahoo.co.jp
Sat Sep 15 13:10:56 CEST 2007


--- Paul Howson <paul-lists at tdgq.com.au> wrote:

> >> I don't understand. If one is just switching
> colors
> >> with:
> >>
> >> \special{color rgb R G B}
> >>
> >> then why is anything being pushed onto a color
> >> stack? I would have
> >> thought it necessary to explicitly use
> >> \special{color push ... to get
> >> something pushed on a stack?
> >
> > Sorry, my mistake.  I will debug it later.
> 
> By using the correct syntax for pushing and popping
> of colors, the  
> error is avoided. However, it does still appear to
> be a bug to be  
> tracked down.

I hope this doesn't break anything.  IMHO the color
stack code in (x)dvipdfm(x) should be entirely revamped
to interact correctly with the graphic state stack,
though.

Index: spc_color.c
===================================================================
--- spc_color.c (リビジョン 94)
+++ spc_color.c (作業コピー)
@@ -112,7 +112,7 @@
     pdf_color_clear();
     pdf_dev_setcolor(&colorspec, 0);
     pdf_dev_setcolor(&colorspec, 1);
-    pdf_color_push(); /* save currentcolor */
+    pdf_color_set_default(&colorspec); /* save
currentcolor */
   }

   return  error;


> Thanks for the help.
> 
> Paul Howson.

Regards,
SMiyata

--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/



More information about the XeTeX mailing list