summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-11-14 22:47:57 +0000
committerKarl Berry <karl@freefriends.org>2014-11-14 22:47:57 +0000
commit249e552ebd09e227a51ac95098b1fe42d1ab3cff (patch)
tree38a334f66e37f15d8fe22c9634f4bb2e3d3b292e /Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
parenta609091c33fb354c7f50ff5d39124b03bae91fbd (diff)
xespotcolor (14nov14)
git-svn-id: svn://tug.org/texlive/trunk@35585 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex')
-rw-r--r--Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex50
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
new file mode 100644
index 00000000000..9538301241e
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
@@ -0,0 +1,50 @@
+\documentclass{article}
+\usepackage[hks,pantone]{xespotcolor}
+\usepackage{xltxtra}
+\setmainfont[Mapping=tex-text]{Minion Pro}
+\begin{document}
+ \color{blue}
+ \bf\Huge Blue text color using 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}
+\end{document}