| 1 |
\documentclass{minimal} |
| 2 |
\usepackage{tikz} |
| 3 |
\usepackage[xcolor]{xespotcolor} |
| 4 |
\begin{document} |
| 5 |
% First define a new color space |
| 6 |
\NewSpotColorSpace{MyPantone} |
| 7 |
% Now define real colors using http://www.pantone.com/color-finder |
| 8 |
% The numbers are the CMYK representation. For example, the CMYK |
| 9 |
% representation of PANTONE 383 CP is 29 1 100 18 that translatex to |
| 10 |
% 0.29 0.01 1 0.18 |
| 11 |
\AddSpotColor{MyPantone}{Blue}{Spot\SpotSpace Color\SpotSpace Blue}{0.92 0.24 0 0 } |
| 12 |
\AddSpotColor{MyPantone}{Green}{Spot\SpotSpace Color\SpotSpace Green} {0.65 0 0.96 0 } |
| 13 |
% Next we need to set the page color space |
| 14 |
\SetPageColorSpace{MyPantone} |
| 15 |
% Now we can define and use colors. Colors are defined as shades of a specific spot color. |
| 16 |
\definecolor{AbsoluteBlue}{spotcolor}{Blue,1.0} |
| 17 |
\pagecolor{AbsoluteBlue} %% Page color |
| 18 |
\SpotColor{Green}{0.8} %% Color of letters |
| 19 |
A spotcolor as background color. |
| 20 |
\clearpage % Page 2 |
| 21 |
This is some more text. %Text appears in black. |
| 22 |
\clearpage % Page 3 |
| 23 |
\pagecolor{white} |
| 24 |
\colorbox{AbsoluteBlue}{Text in blue background} |
| 25 |
\clearpage % Page 4 Tikz example |
| 26 |
\definecolor{MyGreen}{spotcolor}{Green,0.5} |
| 27 |
\definecolor{MyBlue}{spotcolor}{Blue,0.5} |
| 28 |
\begin{tikzpicture} |
| 29 |
\filldraw[color=MyGreen] (0.1,0.1) rectangle (1.9,0.9); |
| 30 |
\draw[color=MyBlue, ultra thick] (0,0) rectangle (2,1); |
| 31 |
\end{tikzpicture} |
| 32 |
\end{document} |