Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color definition fails if a target model is set #1

Open
u-fischer opened this issue Sep 8, 2021 · 0 comments
Open

color definition fails if a target model is set #1

u-fischer opened this issue Sep 8, 2021 · 0 comments

Comments

@u-fischer
Copy link
Member

xcolor allows to define a color in one model with values from another model. This fails if a specific target model is set with a package option or with \selectcolormodel

\documentclass{article}
\usepackage{xcolor}
\makeatletter
%defines the equivalent rgb color to the Hsb values
\definecolor{red1}{rgb:Hsb}{0,0.67,0.26}
\expandafter\show\csname \string\color@red1\endcsname 

\selectcolormodel{cmyk}
%\def\XC@tgt@mod#1{#1} %reverts the model selections
\definecolor{red2}{rgb:Hsb}{0,0.67,0.26} % errors
\begin{document}
blub
\end{document}
! Package xcolor Error: Undefined color model `rgb:Hsb'.
u-fischer added a commit that referenced this issue Aug 16, 2022
u-fischer added a commit that referenced this issue Sep 17, 2024
u-fischer added a commit that referenced this issue Sep 28, 2024
* handle issue #1

* remove unneeded color group commands

* step version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant