summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-graphics-companion/9-2-8.ltx
blob: 426c4a8e8e7de503bc9da1e9e3d085c35d9615c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\documentclass{ppex}
\nonstopmode
\usepackage {ifthen,color}
\pagestyle{empty}

\begin{document}
\ResetPreambleCommands
\ReadyForTheFray
\usepackage {ifthen,color}
\newcounter{Colr}
\setlength{\fboxsep}{2mm}
\begin{flushleft}
  \newcommand{\CBox}[1]{\colorbox[cmyk]{.#1,0.,0.,0.}{.#1}}
  \makebox[30mm][l]{cyan (C):}%
    \whiledo{\value{Colr}<10}{\CBox{\theColr}\stepcounter{Colr}}\\
  \renewcommand{\CBox}[1]{\colorbox[cmyk]{0.,.#1,0.,0.}{.#1}}
  \setcounter{Colr}{0}\makebox[30mm][l]{magenta (M):}%
    \whiledo{\value{Colr}<10}{\CBox{\theColr}\stepcounter{Colr}}\\
  \renewcommand{\CBox}[1]{\colorbox[cmyk]{0.,0.,.#1,0.}{.#1}}
  \setcounter{Colr}{0}\makebox[30mm][l]{yellow (Y):}%
    \whiledo{\value{Colr}<10}{\CBox{\theColr}\stepcounter{Colr}}\\
  \renewcommand{\CBox}[1]{\colorbox[cmyk]{0.,0.,0.,.#1}{.#1}}
  \setcounter{Colr}{0}\makebox[30mm][l]{black (K):}%
    \whiledo{\value{Colr}<10}{\CBox{\theColr}\stepcounter{Colr}}
\end{flushleft}
\end{document}