I have been asked to produce a PDF file with PANTONE spot colors. I used the following code (from a previous post) in XeLaTeX:
\documentclass{article}
\usepackage[pantone]{xespotcolor}
\NewSpotColorSpace{PANTONE}
\AddSpotColor {PANTONE} {PANTONE293C} {PANTONE\SpotSpace 293\SpotSpace C} {1 0.68 0.0 0.02}
\AddSpotColor {PANTONE} {PANTONE485C} {PANTONE\SpotSpace 485\SpotSpace C} {0 0.93 0.95 0}
\SetPageColorSpace{PANTONE}
\definecolor{PANTONE293C} {spotcolor} {PANTONE293C,1.0}
\definecolor{PANTONE485C} {spotcolor} {PANTONE485C,1.0}
\begin{document}
\color{PANTONE293C}
Test (blue)
\color{PANTONE485C}
Test (red)
\end{document}
It works just fine. But now I need to mix the two spot colors. In the package colorspace I found the following code:
\definecolorspace{mymix}{mixed}{PANTONE293C,PANTONE485C}
which normally would allow me to use a 50%-50% mix as follows:
\color[mymix]{.5,.5}
But apparently xespotcolor and colorspace are not compatible, the command \definecolorspace is unknown to the former and when I load both I get error messages.
How can I mix spot colors in xespotcolor?
xepostcolorcan not do this. Soon (already?)l3colorwill be able to. Otherwise you will need to switch tocolorspaceand uselualatex(or code the PDF specials yourself). – David Purton Oct 11 '21 at 14:43