summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-10-17 22:50:05 +0000
committerKarl Berry <karl@freefriends.org>2012-10-17 22:50:05 +0000
commitdf2ce83ed9a6a3beca08c07cc656611e26d220d7 (patch)
tree086e2f15b6585eb8151e83f7852eb858db2f4b80 /Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex
parent468e15f0c59bbedcccfaa606c1f72d3b6d3a8f9a (diff)
skeyval
git-svn-id: svn://tug.org/texlive/trunk@28005 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex')
-rw-r--r--Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex106
1 files changed, 106 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex b/Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex
new file mode 100644
index 00000000000..84696094258
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/skeyval/skeyval-pokayoke2.tex
@@ -0,0 +1,106 @@
+\documentclass[
+ insertwatermark,
+ firstpagenumber=2,
+ maketitlepage,
+ unknown-key
+]{skeyval-testclass}
+
+\setskeyvaltestclass{%
+ watermarktext={skeyval-test2\\[.25ex]Page~\thepage}
+}
+
+\usepackage{lipsum}
+\usepackage{xcolor}
+
+% If you try to load 'skeyval-testpkg' with options, the options
+% will all be zapped, unless you load 'skeyval-ltxpatch' on top of
+% \documentclass.
+
+\setuptextemphasis{usecolour=true,usebold,useitalics=true}
+
+\begin{document}
+
+\title{%
+ The \texttt{\textcolor{blue}{skeyval}} Package\\[2ex]
+ Version 1.1\\[1ex]
+ \textsf{Test document 2}
+ \footnote{Made by \texttt{skeyval-testclass, Version~1.1.}}%
+}
+\author{Ahmed Musa\footnote{\texttt{amusa22@gmail.com}.}}
+
+\maketitle
+
+\lipsum[1]
+
+\xem{\lipsum[1]}
+
+\setuptextemphasis{color=blue}
+
+\xem{\lipsum[1]}
+
+\setuptextemphasis{usecolor=false, usebold=false, useitalic=false}
+
+\xem{\lipsum[1]}
+
+\lipsum[1]
+
+\setuptextemphasis{make-textemphasis-inactive}
+
+\xem{\lipsum[1]}
+
+% This will raise an error: 'dummy-option' has been disabled
+% at begin document:
+% \setuptextemphasis{dummy-option}
+
+\begin{tikzpicture}[shading=ball]
+\newforeach \x/\cola in {0/red,1/green,2/blue,3/yellow} do {%
+ \newforeach \y/\colb in {0/red,1/green,2/blue,3/yellow} {%
+ \node[
+ circle,double,draw=-\cola!50!\colb,fill=\cola!50!\colb,
+ thick,inner sep=2pt,
+ minimum size=10mm,font=\bfseries\color{white}
+ ] at (\x*2,\y*2) {\x,\y};
+ }%
+}
+\end{tikzpicture}
+
+\bigskip
+\parindent-20pt
+\begin{tikzpicture}
+\draw[step=.5cm,blue!65,very thin] (0,0) grid (13,6);
+\newforeach \x in {1,2,...,5,7,8,...,12} {
+ \newforeach \y in {1,...,5} do {
+ \draw (\x,\y) +(-.5,-.5) rectangle ++(.5,.5);
+ \draw (\x,\y) node{\x,\y};
+ }
+}
+\end{tikzpicture}
+
+\bigskip
+\begingroup
+\catcode`\,=13
+\gdef\alist{1,2,...,5,7,8,...,12}
+\endgroup
+\parindent-20pt
+\begin{tikzpicture}
+\draw[step=.5cm,blue!65,very thin] (0,0) grid (13,6);
+\newforeach* \x [
+ count in=\xc all \x satisfying \ifnum\x>5\fi
+] in \alist {
+ \newforeach[
+ parser={;},
+ evaluate=\y as \ye using \numexpr\y*10
+ ]
+ \y:\z in {1:red; 2:green; 3:blue; 4:brown; 5:purple} do {
+ \draw [fill=\z\ifnum\x>5!\ye\fi](\x,\y) +(-.5,-.5) rectangle ++(.5,.5);
+ \draw (\x,\y) node {\x,\y};
+ }
+}
+\global\let\xc\xc
+\end{tikzpicture}
+%\show\xc
+
+
+\end{document}
+
+% End of file skeyval-pokayoke2.tex \ No newline at end of file