summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex/xespotcolor
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-24 22:23:57 +0000
committerKarl Berry <karl@freefriends.org>2016-03-24 22:23:57 +0000
commit5649b3b81e1babdfd097085d8a541264f7b38b62 (patch)
tree3d40bcd6bafbb2bae3cff250a1a7e76e717097d4 /Master/texmf-dist/source/xelatex/xespotcolor
parentda3caec89e8d5b90807e5b6beb49a8e021aea73e (diff)
xespotcolor (24mar16)
git-svn-id: svn://tug.org/texlive/trunk@40118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex/xespotcolor')
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx33
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins2
2 files changed, 29 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
index 4844307a11c..88cf2450edf 100644
--- a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
+++ b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx
@@ -34,7 +34,7 @@
%
%<xespotcolor, >\ProvidesFile{xesporcolor.sty}
%
-%<xespotcolor, > [2016/01/02 v2.0 Package `xespotcolor.sty']
+%<xespotcolor, > [2016/03/22 v2.0a Package `xespotcolor.sty']
%
% \begin{macrocode}
%<*driver>
@@ -58,7 +58,7 @@
% (Apostolos Syropoulos)\\
% Xanthi, Greece\\
% \texttt{asyropoulos@yahoo.com}}
-% \date{2016/01/02}
+% \date{2016/03/22}
%\maketitle
% \begin{abstract}
% A spot color is one that is printed with its own ink. Typically, printers use spot colors
@@ -145,7 +145,7 @@
%<*xespotcolor>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xespotcolor}
- [2016/01/02 v.2.0, Package for adding Spot Color support to LaTeX/XeLaTeX.]
+ [2016/03/22 v.2.0a, Package for adding Spot Color support to LaTeX/XeLaTeX.]
% \end{macrocode}
% The package needs three packages in order to operate properly: the \textsf{graphics} package, the
% \textsf{everypage} package, and either the package \textsf{color} or the package \textsf{xcolor}.
@@ -214,8 +214,11 @@
% space, which has been declared with |\NewSpotColorSpace|, the name of a new color, a name which will be
% used internally, and a CMYK representation of the new color. For example, here is a typical use of this macro:
% \begin{center}
-%|\AddSpotColor{NEWCS}{NEWCOLOR}{Name\SpotSpace in\SpotSpace PDF}{0.5 1.0 0.51 0}|
+%|\AddSpotColor{NEWCS}{NEWCOLOR}{emerald\SpotSpace city}{0.83 0 0.04 30}|
% \end{center}
+% CMYK tables usually specify the four color components using percentages, which must be ``translated'' to
+% numbers between 0 and 1.
+%
% Macro |\SpotSpace| is used to introduce blanks in names. According to the PDF standard a blank is denoted
% by the character sequence |#20| and this is the reason why |\SpotSpace| is defined as follows:
% \begin{macrocode}
@@ -293,7 +296,7 @@
% \end{center}
% Note that the second argument of this command must always be |spotcolor|, since this is the color
% model we are using. In addition, this command is meaningful only when
-% one has defined a few things using commands like the following ones:
+% one has defined a new color space, a new spot color using commands like the following ones:
%\begin{center}
%\begin{tabular}{l}
%|\NewSpotColorSpace{SPCOLORSPACE}|\\
@@ -301,6 +304,7 @@
%|\SetPageColorSpace{SPCOLORSPACE}|\\
%\end{tabular}
%\end{center}
+% Note that we must set the page color space!
%
% Depending on which color package is in use, different low-level commands are executed in order to
% actually define the new color. These new commands are provided by this package. In particular, when the
@@ -359,6 +363,25 @@
%</xespotcolor>
% \end{macrocode}
% \Finale
+% \section{Simple Usage Example}
+% The code that follows shows how one should use the package to create color drawings using Tikz.
+% \begin{flushleft}
+% |% First define a new color space|\\
+% |\NewSpotColorSpace{MyPantone}|\\
+% |% Now define real colors|\\
+% |\AddSpotColor{MyPantone}{Blue}{Spot\SpotSpace Color\SpotSpace Blue}{0.92 0.24 0 0}|\\
+% |\AddSpotColor{MyPantone}{Green}{Spot\SpotSpace Color\SpotSpace Green} {0.65 0 0.96 0}|\\
+% |% Next we need to set the page color space|\\
+% |\SetPageColorSpace{MyPantone}|\\
+% |% Finally we can define colors!|\\
+% |\definecolor{MyGreen}{spotcolor}{Green,0.5}|\\
+% |\definecolor{MyBlue}{spotcolor}{Blue,0.5}|\\
+% |% And this how we use these colors in drawings.|\\
+% |\begin{tikzpicture}|\\
+% | \filldraw[color=MyGreen] (0.1,0.1) rectangle (1.9,0.9);|\\
+% | \draw[color=MyBlue, ultra thick] (0,0) rectangle (2,1);|\\
+% |\end{tikzpicture}|\\
+% \end{flushleft}
% \section*{Acknowledgements}
% I would like to thank Akira Kakuto for his comments and suggestions. Also, I would like to thank
% иеромонах Пантелеимон (Королев) [hieromonk Panteleimon] for his questions and testing.
diff --git a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
index a12d6f712f4..87a72bfb1f1 100644
--- a/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
+++ b/Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins
@@ -3,7 +3,7 @@
%% This file is part of the `xespotcolor' package.
%% You are not allowed to modify its contents.
%%
-\def\filedate{2016/01/02}
+\def\filedate{2016/03/22}
\def\batchfile{xespotcolor.ins}
\input docstrip.tex