Sharpie / RTikZDevice

A R package for producing graphics output as PGF/TikZ code for use in TeX documents.
32 stars 36 forks source link

Use \definecolor ... {gray} ... rather than ... {rgb} ... whenever possible #48

Open zackw opened 12 years ago

zackw commented 12 years ago

Whenever a color to be used is a shade of gray (r=g=b), tikzDevice should define it with the {gray} model rather than the {rgb} model.

Sharpie commented 12 years ago

When compiled by TeX, TikZ converts everything to the CMKY color space. Because of this, I'm not sure what we would gain for the price of increased complexity in the code.

zackw commented 12 years ago

When compiled by TeX, TikZ converts everything to the CMKY color space.

That's not what it's doing for me. \definecolor in the RGB space produces a b c RG/rg commands in the PDF, whereas the gray space produces x G/g.

krlmlr commented 9 years ago

Fixed in https://github.com/yihui/tikzDevice/issues/70.