[XeTeX] Grey fonts with XeTeX

Zdenek Wagner zdenek.wagner at gmail.com
Fri Jun 24 23:46:39 CEST 2016


Hi,

if you want to use the colour feature of the OpenType fonts, only RGB
is supported. The color package allows you to use both CMYK and
grayscale (both are allowed in the printing industry). You can, of
course, set the colour by promitives. You have to use both k and K for
CMYK and both g and G for grayscale (r and R are for RGB). We have a
nice article on simple graphics in CSTUG Bulletin, but only in Czech,
see http://bulletin.cstug.cz/doi.php/10.5300/2013-1/13
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz


2016-06-24 23:18 GMT+02:00 David Carlisle <d.p.carlisle at gmail.com>:
> see the color package documentation
>
> \color[cmyk]{0.1,0.2,0.3,0.4} hello
>
> On 24 June 2016 at 21:50, Philip Taylor <P.Taylor at rhul.ac.uk> wrote:
>> Although I normally work with full-colour projects, the financial constraints of a current project require me to avoid colour on any page on which it is not strictly necessary (that is, to avoid colour on any page that does not carry a coloured image or on which coloured text is essential).  I found by a process of experiment that I can achieve grey rules using a combination of "eplain" and the "color" package, as in (e.g.,) :  \headlinerule = {\color [gray] {0.85}\hrule height 0,95 pt depth 0,95 pt} but what if I want a grey font ?  The XeTeX documentation makes no mention of CMYK at all, and whilst I can achieve the /effect/ of gray by using a suitable admixture of RGB, the resulting text is reported by Adobe Acrobat pre-flight checks as "not black".  Is there any way of achieving /real/ grey text so that all non-coloured pages are black-only ?  I have tried playing with the "transparency" hex pair that can optionally follow the RGB specifier, but it appears to offer eit!
>  her
>> full transparency or none at all, with no intermediate possibilities.
>>
>> Philip Taylor
>>
>>
>> --------------------------------------------------
>> Subscriptions, Archive, and List information, etc.:
>>   http://tug.org/mailman/listinfo/xetex
>
>
>
> --
> http://dpcarlisle.blogspot.com/
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list