[latex3-commits] [git/LaTeX3-latex3-graphics-def] main: Support named colors in (x)dvipdfmx with new stack (85e5dd2)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Mar 2 10:14:40 CET 2021
Repository : https://github.com/latex3/graphics-def
On branch : main
Link : https://github.com/latex3/graphics-def/commit/85e5dd24992f9efa26029c00e8173a8077159f55
>---------------------------------------------------------------
commit 85e5dd24992f9efa26029c00e8173a8077159f55
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Mar 2 09:14:40 2021 +0000
Support named colors in (x)dvipdfmx with new stack
>---------------------------------------------------------------
85e5dd24992f9efa26029c00e8173a8077159f55
dvipdfmx.def | 2 ++
xetex.def | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dvipdfmx.def b/dvipdfmx.def
index 3059916..99ba13e 100644
--- a/dvipdfmx.def
+++ b/dvipdfmx.def
@@ -384,6 +384,8 @@
\def\convert at color@cmyk#1{#1 k #1 K}
\def\convert at color@gray#1{#1 g #1 G}
\def\convert at color@rgb#1{#1 rg #1 RG}
+% Deal with named colors
+\def\define at color@named#1#2{\expandafter\edef\csname col@#1\endcsname{#2}}
% Change the specials to use the stack
\chardef\main at pdfcolorstack=1 %
\ifx\AtBeginDvi\undefined
diff --git a/xetex.def b/xetex.def
index 6f37ccc..439b5cc 100644
--- a/xetex.def
+++ b/xetex.def
@@ -1,5 +1,5 @@
%% xetex.def
-%% Copyright (C) 2005-2020 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
+%% Copyright (C) 2005-2021 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
%% (with contributions from many others)
%%
%% This work may be distributed and/or modified under the
@@ -17,7 +17,7 @@
%% https://github.com/latex3/graphics-def/issues
%%
\ProvidesFile{xetex.def}
- [2020/08/26 v5.0i Graphics/color driver for xetex]
+ [2021/03/02 v5.0j Graphics/color driver for xetex]
\def\GPT at space{ }
\def\c at lor@arg#1{%
\dimen@#1\p@
@@ -483,6 +483,8 @@
\def\convert at color@cmyk#1{#1 k #1 K}
\def\convert at color@gray#1{#1 g #1 G}
\def\convert at color@rgb#1{#1 rg #1 RG}
+% Deal with named colors
+\def\define at color@named#1#2{\expandafter\edef\csname col@#1\endcsname{#2}}
% Change the specials to use the stack
\chardef\main at pdfcolorstack=1 %
\ifx\AtBeginDvi\undefined
More information about the latex3-commits
mailing list.