Skip to content

Doesn't work with \usepackage[cmyk]{xcolor} #1

@dcpurton

Description

@dcpurton

See https://tex.stackexchange.com/q/435909/87678 for the question that precipitates this bug report.

Spot colours do not work if xcolor is loaded with the cmyk option. When you try and use a spot colour under these circumstances an error is produce:

! Argument of \c@lor@@cmyk has an extra }.
<inserted text> 
                \par 
l.9 \textcolor{registration}{Registration colour}

MWE

In this MWE, my test colour is RGB red and CMYK cyan, so you easily see which colour is in use.

\documentclass{article}
\usepackage[cmyk]{xcolor}
\usepackage{colorspace}
\definecolor{testcolour}{RGB/cmyk}{255,0,0/1,0,0,0}
\definespotcolor{registration}{All}{1,1,1,1}
\begin{document}
\textcolor{testcolour}{Test Colour}

\textcolor{registration}{Registration colour}
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions