summaryrefslogtreecommitdiff
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
parentda3caec89e8d5b90807e5b6beb49a8e021aea73e (diff)
xespotcolor (24mar16)
git-svn-id: svn://tug.org/texlive/trunk@40118 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/xelatex/xespotcolor/README4
-rw-r--r--Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.pdfbin70357 -> 4841 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex78
-rw-r--r--Master/texmf-dist/doc/xelatex/xespotcolor/xespotcolor.pdfbin74284 -> 76507 bytes
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.dtx33
-rw-r--r--Master/texmf-dist/source/xelatex/xespotcolor/xespotcolor.ins2
-rw-r--r--Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty4
7 files changed, 63 insertions, 58 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xespotcolor/README b/Master/texmf-dist/doc/xelatex/xespotcolor/README
index 97caebfd91b..3b34d1e4776 100644
--- a/Master/texmf-dist/doc/xelatex/xespotcolor/README
+++ b/Master/texmf-dist/doc/xelatex/xespotcolor/README
@@ -5,9 +5,9 @@ by Jens Elstner is a first attempt to introduce the use of
spot colors with pdfLaTeX. The xespotcolor package is a
reimplementation of this package so to be usable with
XeLaTeX or LaTeX+dvipdfmx. As such, it has the same user
-interface and the same capabilities. Version 2.0 adds
+interface and the same capabilities. Version 2.0a adds
support for the xcolor package and so one can use
spotcolors in TikZ pictures.
Apostolos Syropoulos
-2016/01/02
+2016/03/22
diff --git a/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.pdf b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.pdf
index 07f8a255ba2..8e4de76e79f 100644
--- a/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.pdf
+++ b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
index d343d6bf575..8ae6277d3e5 100644
--- a/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
+++ b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
@@ -1,50 +1,32 @@
-\documentclass{article}
-\usepackage[hks,pantone]{xespotcolor}
-\usepackage{xltxtra}
-\setmainfont[Mapping=tex-text]{Minion Pro}
+\documentclass{minimal}
+\usepackage{tikz}
+\usepackage[xcolor]{xespotcolor}
\begin{document}
- \color{blue}
- \bf\Huge Blue text color using the color package
-
- \clearpage
- \pagecolor{white}
-
- \SetPageColorSpace{PANTONE}
- \SpotColor{PANTONEGreenPC}{1.0}
- \bf\Huge Pantone spot color
-
- \clearpage
- \SetPageColorSpace{HKS}
- \SpotColor{HKS68N}{1.0}
- \bf\Huge HKS spot color
-
- \clearpage
- \NewSpotColorSpace{SOMECOLORSPACE}
- \AddSpotColor{SOMECOLORSPACE} {SOMECOLOR} {Spot\SpotSpace Color\SpotSpace Name\SpotSpace in\SpotSpace PDF} {0.5 1.0 0.51 0}
- \SetPageColorSpace{SOMECOLORSPACE}
- \definecolor{Spots}{spotcolor}{SOMECOLOR,1.0}
-
- \SpotColor{SOMECOLOR}{1.0}
- \bf\Huge Self defined spot color\\
- Some shades are also possible:\\
- \SpotColor{SOMECOLOR}{1.0}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.9}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.8}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.7}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.6}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.5}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.4}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.3}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.2}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.1}\rule{1cm}{1cm}\\
- \SpotColor{SOMECOLOR}{0.0}\rule{1cm}{1cm}
-
- \clearpage
- \pagecolor{Spots}
- \SpotColor{SOMECOLOR}{0.1}
- A spotcolor as background color.
-
- \clearpage
- \pagecolor{white}
- \colorbox{Spots}{xxx}
+ % First define a new color space
+ \NewSpotColorSpace{MyPantone}
+ % Now define real colors using http://www.pantone.com/color-finder
+ % The numbers are the CMYK representation. For example, the CMYK
+ % representation of PANTONE 383 CP is 29 1 100 18 that translatex to
+ % 0.29 0.01 1 0.18
+ \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}
+ % Now we can define and use colors. Colors are defined as shades of a specific spot color.
+ \definecolor{AbsoluteBlue}{spotcolor}{Blue,1.0}
+ \pagecolor{AbsoluteBlue} %% Page color
+ \SpotColor{Green}{0.8} %% Color of letters
+ A spotcolor as background color.
+ \clearpage % Page 2
+ This is some more text. %Text appears in black.
+ \clearpage % Page 3
+ \pagecolor{white}
+ \colorbox{AbsoluteBlue}{Text in blue background}
+ \clearpage % Page 4 Tikz example
+ \definecolor{MyGreen}{spotcolor}{Green,0.5}
+ \definecolor{MyBlue}{spotcolor}{Blue,0.5}
+ \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{document}
diff --git a/Master/texmf-dist/doc/xelatex/xespotcolor/xespotcolor.pdf b/Master/texmf-dist/doc/xelatex/xespotcolor/xespotcolor.pdf
index 2d9dbee1100..6df553415ed 100644
--- a/Master/texmf-dist/doc/xelatex/xespotcolor/xespotcolor.pdf
+++ b/Master/texmf-dist/doc/xelatex/xespotcolor/xespotcolor.pdf
Binary files differ
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
diff --git a/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty b/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
index 384995054b3..8c9dbd472d9 100644
--- a/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
+++ b/Master/texmf-dist/tex/xelatex/xespotcolor/xespotcolor.sty
@@ -36,10 +36,10 @@
%% Right brace \} Tilde \~}
%%
\ProvidesFile{xesporcolor.sty}
- [2016/01/02 v2.0 Package `xespotcolor.sty']
+ [2016/03/22 v2.0a Package `xespotcolor.sty']
\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.]
\RequirePackage{ifxetex}
\RequirePackage{everypage}
\@ifpackageloaded{xcolor}{\let\use@xcolor\relax}{}