Menu

#349 Fill label doesn't respect colormodel

v1.0 (example)
closed-fixed
nobody
None
5
2018-12-29
2015-01-28
No

When using \selectcolormodel{gray}, sometimes the "fill" label still uses color instead of grayscale.
For instance, the example below prints two boxes: the first one has an orange background, while the second has a light gray background, as expected.

\documentclass[tikz]{standalone}
\selectcolormodel{gray}
\begin{document}
\tikz{\node[draw, color=orange, fill=orange] {Hello}}
\tikz{\node[draw, color=orange, fill=orange!50] {Hello}}
\end{document}
1 Attachments

Discussion

  • Kpym

    Kpym - 2015-08-08

    In a strange way if you pass the gray option to xcolor directly there is no problem anymore :

    \documentclass{standalone}
    \PassOptionsToPackage{gray}{xcolor}
    \usepackage{tikz}
    \begin{document}
        \tikz{\node[draw, color=orange, fill=orange] {Hello}}
        \tikz{\node[draw, color=orange, fill=orange!50] {Hello}}
    \end{document}
    

    Is this a tikz bug or xcolor one ?

     
  • samcarter

    samcarter - 2017-08-07

    related question on TeX.Stackexchange: https://tex.stackexchange.com/q/272222/36296

     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-29
    • status: open --> closed-fixed
     
  • Stefan Pinnow

    Stefan Pinnow - 2018-12-29

    Thank you for reporting. This is fixed now.