From 6ed4823433d313b1af7c118d704d971281700cdc Mon Sep 17 00:00:00 2001 From: David Carlisle Date: Sat, 9 Dec 2023 21:34:32 +0000 Subject: [PATCH] etex, named model not passing --- dvips.def | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dvips.def b/dvips.def index f5ba5bf..49ae6cd 100644 --- a/dvips.def +++ b/dvips.def @@ -1,6 +1,6 @@ %% dvips.def Copyright (C) 1994 David Carlisle Sebastian Rahtz %% Copyright (C) 1995-1999 David Carlisle -%% Copyright (C) 2000-2022 David Carlisle, LaTeX3 Project +%% Copyright (C) 2000-2023 David Carlisle, LaTeX3 Project %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c @@ -17,8 +17,11 @@ %% https://github.com/latex3/graphics-def/issues %% \ProvidesFile{dvips.def} - [2022/09/22 v3.1e Graphics/color driver for dvips] + [2023/12/09 v3.2a Graphics/color driver for dvips] \def\GPT@space{ } +\ifx\xcolor@\@undefined + \protected\def\xcolor@#1#2#3#4{#2} +\fi \def\c@lor@arg#1{% \dimen@#1\p@ \ifdim\dimen@<\z@\dimen@\maxdimen\fi @@ -27,7 +30,7 @@ \fi} \def\color@gray#1#2{% \c@lor@arg{#2}% - \edef#1{gray #2}% + \edef#1{\xcolor@{}{gray #2}{\detokenize{gray}}{#2}}% } \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1} \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{% @@ -35,14 +38,14 @@ \c@lor@arg{#1}% \c@lor@arg{#2}% \c@lor@arg{#3}% - \edef#5{cmyk #1 #2 #3 #4}% + \edef#5{\xcolor@{}{cmyk #1 #2 #3 #4}{\detokenize{cmyk}}{#1,#2,#3,#4}}% } \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1} \def\c@lor@@rgb#1,#2,#3\@@#4{% \c@lor@arg{#1}% \c@lor@arg{#2}% \c@lor@arg{#3}% - \edef#4{rgb #1 #2 #3}% + \edef#4{\xcolor@{}{rgb #1 #2 #3}{\detokenize{rgb}}{#1,#2,#3}}% } \def\color@RGB#1#2{\c@lor@@RGB#2\@@#1} \def\c@lor@@RGB#1,#2,#3\@@#4{% @@ -60,7 +63,7 @@ \c@lor@arg{#1}% \c@lor@arg{#2}% \c@lor@arg{#3}% - \edef#4{hsb #1 #2 #3}% + \edef#4{\xcolor@{}{hsb #1 #2 #3}{\detokenize{hsb}}{#1,#2,#3}}% } \def\color@named#1#2{\c@lor@@named#2,,\@@#1} \def\c@lor@@named#1,#2,#3\@@#4{%