[dvipdfmx] black color lost

Ulrike Fischer news3 at nililand.de
Fri Aug 16 11:54:04 CEST 2019


On tex.sx a problem was reported that with xelatex  some color
settings are lost in a pgfplots

https://tex.stackexchange.com/questions/504279/xelatex-with-pgfplots-displays-wrong-color

In this example the axis is green despite the setting \pgfplotsset{axis line style=black}


I couldn't make a smaller example without pgfplots, but it could be
that is isn't a pgfplots problem but has someting to do with dvipdfmx:

If works if one use a gray color (\pgfplotsset{axis line
style=black!50}) instead:

\documentclass[]{article}
\special{dvipdfmx:config z 0}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{axis line style=black} %works with e.g. black!50
\color{green}
\begin{document}\showoutput

    \begin{tikzpicture}
        \begin{axis}
         \addplot {x*x};
        \end{axis}
    \end{tikzpicture}
\end{document}

The specials shown by showoutput are identical, only that the working
example uses

............\special{color push gray 0.5}
............\special{color push gray 0.5}

instead of

............\special{color push gray 0}
............\special{color push gray 0}


but the pdf stream shows 0.5 G 0.5 g in the working example with gray but
nothing in the failing.



-- 
Mit freundlichen Grüßen
Ulrike Fischer




More information about the dvipdfmx mailing list