[XeTeX] colour \specials not working with xdvipdfmx driver?
caapv 208
caapv208 at yahoo.co.jp
Wed Sep 12 02:51:08 CEST 2007
--- Paul Howson <paul-lists at tdgq.com.au> wrote:
> DISCOVERY 1
>
> These dvipdfm specials (examples straight from the
> dvipdfm manual) do
> not work:
>
> \special{ pdf: bc [ 1 0 0 ] }
> \special{ pdf: ec }
Here is a patch:
Index: src/spc_util.c
===================================================================
--- src/spc_util.c (リビジョン 94)
+++ src/spc_util.c (作業コピー)
@@ -238,6 +238,7 @@
else
error = spc_read_color_pdf(spe, colorspec, ap);
+ skip_blank(&ap->curptr, ap->endptr);
return error;
}
For a temporary workaround, use
\special{ pdf: bc [ 1 0 0 ]}
> DISCOVERY 2
>
> As you say, \special{color rgb R G B} DOES work.
> HOWEVER, these
> specials don't work:
>
> \special{color push}
> \special{color pop}
The syntax is wrong.
\special{color push [color specification]}
> DISCOVERY 3
>
> There is a very strange bug with \special{color rgb
> R G B}. On a long
> document, using this command inside macros to switch
> colours, we kept
> getting this error from xdvipdfmx:
>
> ** ERROR ** Only RGB/CMYK/Gray currently
> supported
[...]
> The only way to prevent it is to insert a color push
> before each
> colour change, like this:
>
> \special{color push}\special{color rgb R G B}
>
> Then it works for the long document. Crazy.
It is no wonder if you don't push/pop colors, then
the color stack will eventually overflow.
> Paul Howson
>
>
----------------------------------------------------------------
> Paul Howson
> The Design Group Qld, Warwick Qld Australia
> (www.tdgq.com.au)
> email: paul at tdgq.com.au blog:
> www.tdgq.com.au/blog
> GRAPHIC DESIGN WEB SITE DESIGN
Regards,
SMiyata
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
More information about the XeTeX
mailing list