summaryrefslogtreecommitdiff
path: root/info/examples/lgc/9-2-8.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/lgc/9-2-8.ltx')
-rw-r--r--info/examples/lgc/9-2-8.ltx26
1 files changed, 26 insertions, 0 deletions
diff --git a/info/examples/lgc/9-2-8.ltx b/info/examples/lgc/9-2-8.ltx
new file mode 100644
index 0000000000..426c4a8e8e
--- /dev/null
+++ b/info/examples/lgc/9-2-8.ltx
@@ -0,0 +1,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}