summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex')
-rw-r--r--Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex51
1 files changed, 47 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex b/Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex
index c29448d04b5..9ad80b2a5c5 100644
--- a/Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex
+++ b/Master/texmf-dist/doc/latex/skeyval/skeyval-view-pokayoke1.tex
@@ -1,17 +1,22 @@
\documentclass{skeyval-testclass}
\usepackage[xcolor-options=dvipsnames]{skeyval-view}
+\usetikzlibrary[topaths]
\makeatletter
\setupviewkeys{length of default=30}
\skvdefinekeys[KV]{fam1}[vhp@]{%
- .ord/keya/default-a,
+ .initialize after define,
+ .ord/{keya,keya2}/default-a,
.cmd/keyb,
.zcmd/key c/\def\cmdc##1{##1}/
\edef\y{\detokenize\expandafter{\vhp@keyc}}\def\x##1{#1*key c*##1},
- .choice/keyd/center/
- {center.do=\def\x##1{#1*##1},left.do={\def\ans{#1}},right},
+ % No default for keyd:
+ .choice/keyd/.na
+ /{center.do=\def\x##1{#1*##1},left.do={\def\ans{#1}},right}
+ /\def\z##1{#1*##1}
+ /\@warning{Invalid value for keyd},
.bool/show shadow/true,
.zbool/show center/true/\edef\cmd{\ifvhp@showcenter Yes\else No\fi},
.ord/keye,
@@ -44,7 +49,7 @@
\begin{document}
\title{The \texttt{\textcolor{blue}{skeyval-view}} Package\\[.25ex]
- Version 1.1\\[1ex]
+ Version 1.1a\\[1ex]
\textsf{Test document}}
\author{Ahmed Musa}
\maketitle
@@ -89,6 +94,44 @@
}
\newpage
+
+\skvtestcnt0\relax
+\skvrecurse
+ \advance\skvtestcnt1\relax
+ \vskip\baselineskip\noindent
+ \textcolor{blue!\the\numexpr10*\skvtestcnt!red!%
+ \the\numexpr100/\skvtestcnt}{%
+ The play was a great success, but the audience was a disaster.
+ \endgraf{\small Oscar Wilde, 1854--1900}
+ }%
+\while
+ \ifnum\skvtestcnt<8\relax
+\fi
+
+% Credit: Quintin Jean-Noël
+\newcount\mycount
+\begin{center}
+\begin{tikzpicture}[scale=.5,transform shape]
+\newforeach \nr in {1,...,8}{
+ \mycount=\numexpr(\nr-1)*45\relax
+ \node[draw,circle,inner sep=0.25cm] (N-\nr) at (\the\mycount:5.4cm) {};
+}
+\newforeach \nr in {9,...,16}{
+ \mycount=\numexpr(\nr-1)*45+22\relax
+ \node[draw,circle,inner sep=0.25cm] (N-\nr) at (\the\mycount:5.4cm) {};
+}
+\newforeach \nr in {1,...,15}{
+ \mycount=\numexpr\nr+1\relax
+ \newforeach \nra in {\the\mycount,...,16}{
+ \path (N-\nr) edge[->,bend right=3] (N-\nra) edge[<-,bend left=3]
+ (N-\nra);
+ }
+}
+\end{tikzpicture}
+\end{center}
+
+
+\bigskip
Find more information about the \textcolor{red}{\texttt{show shadow}} option on page~\pageref{KV/fam1/show shadow}.
\end{document}