dvips named colors broken in XeLaTeX in tlpretest
Bruno Voisin
bvoisin at icloud.com
Mon Mar 1 16:48:22 CET 2021
The subject says it all.
The following LaTeX input gives NavyBlue color with pdfTeX, LuaLaTeX and XeLaTeX in tl2020, but only with pdfTeX and LuaLaTeX in tlpretest; with XeLaTeX in tlpretest, the text comes out black.
This is specific to named dvips colors: blue gives blue-colored text in all circumstances.
This seems linked with the "Updates for newer dvipdfmx versions" at the end of the new xetex.def in tlpretest. If, still using tlpretest, I copy xetex.def from tl2020 to the directory where the test file is, NavyBlue is back with XeLaTeX.
Bruno Voisin
\documentclass{article}
\usepackage[dvipsnames,usenames]{color}
\begin{document}
Some text in \textcolor{NavyBlue}{NavyBlue} based on the \verb+usenames+ package option.\par
More text in \textcolor[named]{NavyBlue}{NavyBlue} specifying explicitly the \verb+[named]+ model.\par
Finally text in \textcolor{blue}{blue}.
\end{document}
More information about the tex-live
mailing list.