summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty b/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
index 8c9dbd472d9..78e179cf951 100644
--- a/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
+++ b/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
@@ -6,7 +6,7 @@
%%
%% xespotcolor.dtx (with options: `xespotcolor')
%%
-%% (c) Copyright 2014-2016 Apostolos Syropoulos
+%% (c) Copyright 2014-2021 Apostolos Syropoulos
%% This program can be redistributed and/or modified under the
%% terms of the LaTeX Project Public License Distributed from
%% http://www.latex-project.org/lppl.txt; either
@@ -36,12 +36,11 @@
%% Right brace \} Tilde \~}
%%
\ProvidesFile{xesporcolor.sty}
- [2016/03/22 v2.0a Package `xespotcolor.sty']
+ [2021/03/01 v2.1 Package `xespotcolor.sty']
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespotcolor}
- [2016/03/22 v.2.0a, Package for adding Spot Color support to LaTeX/XeLaTeX.]
-\RequirePackage{ifxetex}
-\RequirePackage{everypage}
+ [2021/03/01 v.2.1, Package for adding Spot Color support to LaTeX/XeLaTeX.]
+\RequirePackage{iftex}
\@ifpackageloaded{xcolor}{\let\use@xcolor\relax}{}
\DeclareOption{hks}{\let\use@hks\relax}
\DeclareOption{pantone}{\let\use@pantone\relax}
@@ -64,6 +63,7 @@
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}
\fi\fi
\@ifpackageloaded{tikz}{\global\pgf@sys@pdf@colorspaces@existsfalse}{}
+\@ifpackageloaded{tcolorbox}{\global\pgf@sys@pdf@colorspaces@existsfalse}{}
\def\NewSpotColorSpace#1{%
\expandafter\newtoks\csname #1\endcsname%
\csname #1\endcsname{}%
@@ -86,7 +86,8 @@
\advance\colorprofilecnt by1%
}
\def\SetPageColorResource#1{%
- \AddEverypageHook{\special{pdf:put @resources <</ColorSpace <<#1>>>>}}%
+ \AddToHook{shipout/background}{\put(1in,-1in){%
+ \special{pdf:put @resources <</ColorSpace <<#1>>>>}}}%
}%
\def\SetPageColorSpace#1{%
\expandafter\SetPageColorResource\expandafter{\the\csname #1\endcsname}%