File: 9-2-8.ltx

package info (click to toggle)
texlive-doc 2007.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 129,872 kB
  • ctags: 3,330
  • sloc: xml: 23,147; perl: 8,370; makefile: 843; sh: 352; lisp: 276; java: 159; python: 97; sed: 4
file content (26 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (12)
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}