[XeTeX] Colour specials for XeTeX

morris roger golierdesoimeme at gmail.com
Fri Aug 7 17:43:40 CEST 2020


There are much simpler ways of adding colour; see
https://ctan.org/pkg/do-it-yourself-tex
where I include examples using opmac
Roger H-F,
Ottawa


Le sam. 6 juin 2020, à 07 h 41, Philip Taylor <
P.Taylor at hellenic-institute.uk> a écrit :

> In his 2005 /XeTeX notes/ <
> http://mirror.las.iastate.edu/tex-archive/systems/doc/xetex/XeTeX-notes.pdf>,
> Jonathan Kew writes :
>
> > 4.1 \special commands
> >
> > 4.1.1 Color
> >
> > The xdv2pdf driver supports several \specials to allow color to be used
> in
> > XeTeX documents. These are:
> >
> > \special {x:textcolor=color}
> > \special {x:textcolorpush}
> > \special {x:textcolorpop}
> > \special {x:rulecolor=color}
> > \special {x:rulecolorpush}
> > \special {x:rulecolorpop}
> >
> > where color is an RGB color value expressed as 6 hexadecimal digits.
>
> However, using this with today's DVIPDFMX driver, I obtain only a black
> rule.  I can obtained the desired effect using :
>
> > \special {color push}%
> >
> > \special {color cmyk 0.17 0.18 0.79 0.0}%
> >
> > \vrule
> >
> > \special {color pop}%
> >
>
> but would be interested to know if (and why) Jonathan's x:textcolor /
> x:rulecolor specials are no longer supported.
>
> /Philip Taylor/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20200807/bff27b3b/attachment.html>


More information about the XeTeX mailing list.