summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/xespotcolor/spotcolor-test.tex
diff options
context:
space:
mode:
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}