summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx37
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins6
2 files changed, 23 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
index 847374f9785..9dd7cd83c92 100644
--- a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
+++ b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
@@ -16,7 +16,7 @@
%%
%\iffalse
%
-% (c) Copyright 2014 Apostolos Syropoulos
+% (c) Copyright 2014-2015 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
@@ -34,7 +34,7 @@
%
%<xespotcolor, >\ProvidesFile{xesporcolor.sty}
%
-%<xespotcolor, > [2014/11/12 v1.0 Package `xespotcolor.sty']
+%<xespotcolor, > [2015/03/18 v1.1 Package `xespotcolor.sty' (bug fix release)]
%
% \begin{macrocode}
%<*driver>
@@ -57,7 +57,7 @@
%\author{Apostolos Syropoulos\\
% Xanthi, Greece\\
% \texttt{asyropoulos@yahoo.com}}
-% \date{2014/11/12}
+% \date{2015/03/18}
%\maketitle
% \begin{abstract}
% A spot color is one that is printed with its own ink. Typically, printers use spot colors
@@ -101,14 +101,14 @@
% used by the |\pdfrefobj| primitive. After some experimentation and some… Googling, I have found out that the following
% \XeTeX\ code is a reasonable translation of the previous code snipper:
% \begin{center}
-% |\newcount\CNT |\\
-% |\newtoks\TOK |\\
-% |\TOK={@TOK \the\CNT}% |\\
-% |\advance\CNT by1% |\\
-% |\edef\A{\the\TOK Raw PDF code 1}%|\\
-% |\edef\B{Raw PDF code \the\TOK}% |\\
-% |\special{pdf:obj \A}% |\\
-% |\special{pdf:obj \B}% |\\
+% |\newcount\CNT |\\
+% |\newtoks\TOK |\\
+% |\TOK={@TOK \the\CNT}% |\\
+% |\edef\A{\the\TOK Raw PDF code 1}% |\\
+% |\edef\B{Raw PDF code \the\TOK}% |\\
+% |\special{pdf:obj \A}% |\\
+% |\special{pdf:obj @TOKB\the\CNT \B}% |\\
+% |\advance\CNT by1% |\\
% \end{center}
% The two |\edef|initions are used to do the work done by |\pdfobj|. Note that here there I introduce only
% one unique object and the first two lines define a counter and a token variable. The token variable uses
@@ -142,7 +142,7 @@
%<*xespotcolor>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespotcolor}
- [2014/11/12 v.1.0, Package for adding Spot Color support to XeLaTeX.]
+ [2015/03/18 v.1.1, Package for adding Spot Color support to XeLaTeX.]
% \end{macrocode}
% The package needs three packages in to operate properly: \textsf{graphics}, \textsf{color}, and \textsf{everypage}.
% The first two packages must be loaded with the \texttt{xetex} option, since auto-detection does not work in this case.
@@ -199,12 +199,11 @@
\newtoks\mycolorprofilename
% \end{macrocode}
% Macro |\AddSpotColor| first defines a new color profile by assigning a value to |\mycolorprofilename|. The name
-% consists of the word |@mycolorprofile| followed by an integer. And since all names must be distinct
-% the macro increments the value of the |\colorprofilecnt| counter by one.
+% consists of the word |@mycolorprofile| followed by an integer. This name is used in the construction of the
+% corresponding PDF object.
% \begin{macrocode}
\def\AddSpotColor#1#2#3#4{%
\mycolorprofilename={@mycolorprofile\the\colorprofilecnt}%
- \advance\colorprofilecnt by1%
% \end{macrocode}
% The following two macros expand to PDF instructions that define the spot color. The PDF instructions are copied verbatim from
% the original \textsf{spotcolor} package.
@@ -219,10 +218,14 @@
\expandafter\csgrab\expandafter{\tempcs}{\csname #1\endcsname}%
% \end{macrocode}
% In the last part of the macro definition, the driver is instructed to build two objects which should contain the definition of
-% the new spot color.
+% the new spot color. Note that here the macro specifies explicitly the object reference for the second object.
% \begin{macrocode}
\special{pdf:obj \mycolorprofile}%
- \special{pdf:obj \mycolor}%
+ \special{pdf:obj @myowncolor\the\colorprofilecnt \mycolor}%
+% \end{macrocode}
+% Since all names must be distinct the macro increments the value of the |\colorprofilecnt| counter by one.
+% \begin{macrocode}
+ \advance\colorprofilecnt by1%
}
% \end{macrocode}
%
diff --git a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
index a801d2ddafb..c476fbfa99e 100644
--- a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
+++ b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
@@ -1,9 +1,9 @@
-%% Copyright 2014 Apostolos Syropoulos
+%% Copyright 2014-2015 Apostolos Syropoulos
%%
%% This file is part of the `decimal' package.
%% You are not allowed to modify its contents.
%%
-\def\filedate{2014/11/13}
+\def\filedate{2015/03/18}
\def\batchfile{xespotcolor.ins}
\input docstrip.tex
@@ -24,7 +24,7 @@
\preamble
- (c) Copyright 2007—2013 Apostolos Syropoulos
+ (c) Copyright 2014-2015 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