summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-02 21:56:29 +0000
committerKarl Berry <karl@freefriends.org>2021-03-02 21:56:29 +0000
commit3b43127feb7bc317c681fb515ba548e1377ffe8b (patch)
tree060df39579475a9a37e38c81dabcc6c4c4bd55ed /Master/texmf-dist/tex/xelatex
parent4d2d2811e5b4c7ab742a21f9a8cae379ec3d9a3e (diff)
xespotcolor (2mar21)
git-svn-id: svn://tug.org/texlive/trunk@58064 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex')
-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}%