summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorReinhard Kotucha <reinhard.kotucha@web.de>2006-11-25 04:22:50 +0000
committerReinhard Kotucha <reinhard.kotucha@web.de>2006-11-25 04:22:50 +0000
commitec573a613cbc9a1c6d7f9d9497a8b9dcd5312b42 (patch)
tree4816b7177ba9a341ee3b4489c4b867e674140428 /Master/texmf-dist
parente4b8675cd28f8008d6a8930c58ddfc320250ee69 (diff)
updated spotcolor.
git-svn-id: svn://tug.org/texlive/trunk@2522 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/README34
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/readme.pdfbin282044 -> 386550 bytes
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/readme.tex18
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/spotcolor.sty (renamed from Master/texmf-dist/tex/latex/spotcolor/spotcolor.sty)20
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/spotcolorhks.tex (renamed from Master/texmf-dist/tex/latex/spotcolor/spotcolorhks.tex)0
-rw-r--r--Master/texmf-dist/doc/latex/spotcolor/spotcolorpantone.tex (renamed from Master/texmf-dist/tex/latex/spotcolor/spotcolorpantone.tex)0
-rw-r--r--Master/texmf-dist/tpm/spotcolor.tpm14
7 files changed, 57 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/spotcolor/README b/Master/texmf-dist/doc/latex/spotcolor/README
index 904736ec61b..cca267ec0e8 100644
--- a/Master/texmf-dist/doc/latex/spotcolor/README
+++ b/Master/texmf-dist/doc/latex/spotcolor/README
@@ -1,17 +1,17 @@
-This is the package spotcolor for pdfLaTeX.
-It provides procedures for using spot colors in LaTeX documents
-and the generated pdf files. Predefined templates for PANTONE and
-HKS color spaces are included but new ones can easily be defined.
-
-For detailed usage information please refer to readme.pdf.
-
-If you have any suggestions, bug reports, modifications or enhancements,
-please let me know:
-
-Jens Elstner
-jens.elstner@gmx.net
-
-This work is published under the LaTeX Project Public License.
-See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
-for the details of that license.
-
+This is the package spotcolor for pdfLaTeX.
+It provides procedures for using spot colors in LaTeX documents
+and the generated pdf files. Predefined templates for PANTONE and
+HKS color spaces are included but new ones can easily be defined.
+
+For detailed usage information please refer to readme.pdf.
+
+If you have any suggestions, bug reports, modifications or enhancements,
+please let me know:
+
+Jens Elstner
+jens.elstner@gmx.net
+
+This work is published under the LaTeX Project Public License.
+See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
+for the details of that license.
+
diff --git a/Master/texmf-dist/doc/latex/spotcolor/readme.pdf b/Master/texmf-dist/doc/latex/spotcolor/readme.pdf
index 127417a1822..2cde45e8aa9 100644
--- a/Master/texmf-dist/doc/latex/spotcolor/readme.pdf
+++ b/Master/texmf-dist/doc/latex/spotcolor/readme.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/spotcolor/readme.tex b/Master/texmf-dist/doc/latex/spotcolor/readme.tex
index 7979077c6f9..01827cb29bd 100644
--- a/Master/texmf-dist/doc/latex/spotcolor/readme.tex
+++ b/Master/texmf-dist/doc/latex/spotcolor/readme.tex
@@ -1,7 +1,7 @@
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
-\usepackage[pantone,hks]{spotcolor}
+\usepackage[hks,pantone]{spotcolor}
\usepackage{calc}
\usepackage{color}
\usepackage{times}
@@ -31,10 +31,13 @@
\{Spot\string\SpotSpace\ Color\string\SpotSpace\ Name\string\SpotSpace\ in\string\SpotSpace\ PDF\}\\
\{1.0\ 0.0\ 0.51\ 0.0\}}\\
The first parameter denotes the color space to which the color should be added, the second parameter is the name of the color under which it should be accessible by LaTeX. The third parameter is the name that appears in the pdf file. Because I am not incredibly familiar with handling space characters in LaTeX I had to implement spaces that have to appear in the spot color name with \textbf{\string\SpotSpace} so you have to use it whenever you want a space to appear in the name. If you should happen to know a better way please let me know. The last parameter is the cmyk representation of the color that is used when viewing the file in Acrobat. I don't know exactly what the format specifications for this field are but safest should be to use space seperated values (like above). The dot can be omitted though. (ie. '0.0' would give the same result as '0')\\
+ To be able to use all the color capabilities of LaTeX there is also a new colorspace called "spotcolor" being defined. When colors have been made known to pdf via "\string\AddSpotColor", new colors can be defined:\\
+ \textbf{definecolor\{<NAME>\}\{spotcolor\}\{<SPOTCOLORNAME>,<TINT>\}} where <TINT> is a value in the range 0.0 to 1.0.
+
This is everything you have to do to make your colors known to LaTeX. If you want something to appear in one of the colors you have to use\\
\textbf{\string\SetPageColorSpace\{SOMECOLORSPACE\}}\\
once for the first page and it will be set for all subsequent pages.\\
- \textbf{\string\SpotColor\{SOMECOLOR\}}\\
+ \textbf{\string\SpotColor\{SOMECOLOR\}\{1.0\}}\\
will then set the color of any object like the usual color directive from the color package. Because colorspaces have to be set for the entire page you can only use one per page. Therefore, if you want to use colors from the Pantone system together with colors from HKS for example you would have to add them to the same color space and activate that for the page.\\
I have added many of the colors from these two systems already as presets. They can be used by including spotcolor with the option \textbf{PANTONE} and/or the option \textbf{HKS}. The color spaces are named correspondingly. For a complete list of the colors I have included already please refer to spotcolorpantone.tex and spotcolorhks.tex.\\
Last but not least, some examples.\\
@@ -58,6 +61,8 @@
\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:\\
@@ -72,4 +77,13 @@
\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}
\end{document}
diff --git a/Master/texmf-dist/tex/latex/spotcolor/spotcolor.sty b/Master/texmf-dist/doc/latex/spotcolor/spotcolor.sty
index 3fc275b0e3b..9783dca37fc 100644
--- a/Master/texmf-dist/tex/latex/spotcolor/spotcolor.sty
+++ b/Master/texmf-dist/doc/latex/spotcolor/spotcolor.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{spotcolor}
- [2006/05/26 v1.0 Package for adding Spot Color support to pdfLaTeX.]
+ [2006/11/15 v1.2 Package for adding Spot Color support to pdfLaTeX.]
\newif\ifhks\hksfalse
\newif\ifpantone\pantonefalse
@@ -44,7 +44,10 @@
%
% Sets a color space for the current page
%
-\def\SetPageColorResource#1{\pdfpageresources{/ColorSpace<<#1>>}}
+\def\SetPageColorResource#1{%
+ \edef\act{\noexpand\pdfpageresources={\the\pdfpageresources\space
+ /ColorSpace<<#1>>}}
+ \act}
\newcommand\SetPageColorSpace[1]{%
\expandafter\SetPageColorResource\expandafter{\the\csname #1\endcsname}%
}%
@@ -60,6 +63,19 @@
}%
%
+% Defines a new color space called spotcolor
+% The spotcolor has to be set first by using AddSpotColor
+% The code is taken and modified from color.sty's pdftex.def
+%
+\makeatletter
+\def\color@spotcolor#1#2{\c@lor@@spotcolor#2\@@#1}
+\def\c@lor@@spotcolor#1,#2\@@#3{%
+ \c@lor@arg{#2}%
+ \edef#3{/#1 cs /#1 CS #2 sc #2 SC}%
+}
+\makeatother
+
+%
% If pantone or hks option specified then load corresponding color tables
%
\ifhks\input{spotcolorhks}\fi
diff --git a/Master/texmf-dist/tex/latex/spotcolor/spotcolorhks.tex b/Master/texmf-dist/doc/latex/spotcolor/spotcolorhks.tex
index 837d1cd5595..837d1cd5595 100644
--- a/Master/texmf-dist/tex/latex/spotcolor/spotcolorhks.tex
+++ b/Master/texmf-dist/doc/latex/spotcolor/spotcolorhks.tex
diff --git a/Master/texmf-dist/tex/latex/spotcolor/spotcolorpantone.tex b/Master/texmf-dist/doc/latex/spotcolor/spotcolorpantone.tex
index caaedd21050..caaedd21050 100644
--- a/Master/texmf-dist/tex/latex/spotcolor/spotcolorpantone.tex
+++ b/Master/texmf-dist/doc/latex/spotcolor/spotcolorpantone.tex
diff --git a/Master/texmf-dist/tpm/spotcolor.tpm b/Master/texmf-dist/tpm/spotcolor.tpm
index ce3f4dc9d4b..2538b8276a0 100644
--- a/Master/texmf-dist/tpm/spotcolor.tpm
+++ b/Master/texmf-dist/tpm/spotcolor.tpm
@@ -3,7 +3,7 @@
<rdf:Description about="http://texlive.dante.de/texlive/Package/spotcolor.zip">
<TPM:Name>spotcolor</TPM:Name>
<TPM:Type>Package</TPM:Type>
- <TPM:Date>2006/05/29 22:35:46</TPM:Date>
+ <TPM:Date>2006/11/15 14:07:30</TPM:Date>
<TPM:Version></TPM:Version>
<TPM:Creator>karl</TPM:Creator>
<TPM:Title>The spotcolor package.</TPM:Title>
@@ -11,17 +11,15 @@
<TPM:Author></TPM:Author>
<TPM:Size>393455</TPM:Size>
<TPM:Build/>
- <TPM:RunFiles size="105246">
-texmf-dist/tex/latex/spotcolor/spotcolor.sty
-texmf-dist/tex/latex/spotcolor/spotcolorhks.tex
-texmf-dist/tex/latex/spotcolor/spotcolorpantone.tex
-texmf-dist/tpm/spotcolor.tpm
- </TPM:RunFiles>
- <TPM:DocFiles size="288209">
+ <TPM:RunFiles size="1113">texmf-dist/tpm/spotcolor.tpm</TPM:RunFiles>
+ <TPM:DocFiles size="497777">
texmf-dist/doc/latex/spotcolor/README
texmf-dist/doc/latex/spotcolor/readme.pdf
texmf-dist/doc/latex/spotcolor/readme.tcp
texmf-dist/doc/latex/spotcolor/readme.tex
+texmf-dist/doc/latex/spotcolor/spotcolor.sty
+texmf-dist/doc/latex/spotcolor/spotcolorhks.tex
+texmf-dist/doc/latex/spotcolor/spotcolorpantone.tex
</TPM:DocFiles>
<TPM:Provides>Package/spotcolor</TPM:Provides>
</rdf:Description>