summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex')
-rw-r--r--Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex91
1 files changed, 91 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex b/Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex
new file mode 100644
index 00000000000..98ef65248af
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onedown/examples/bidNS.tex
@@ -0,0 +1,91 @@
+\documentclass[onedown-examples]{subfiles}
+
+\makeatletter
+\def\SW{\the\ODw@Skip@Width}
+\makeatletter
+\begin{document}
+\vfill
+We show a couple of diagram without comment, with the exception of
+number 4.
+\vfill
+\begin{HBox}{1: showNS pair\hfill File: \FileName}
+\newgame
+\northhand{KJ82}{KQ9}{J}{AQJT8}
+\southhand{AQT95}{A52}{864}{K6}
+\easthand{JT6}{764}{KT9}{JT32}
+\westhand{Q952}{K32}{765}{AQ7}
+\setdefaults{bidfirst=S}
+\begin{biddingpair}-(\explainit{splinter})
+1S & 4D\markit \\
+4H & 6S \\
+\end{biddingpair}
+\showNS+
+\end{HBox}
+\vfill
+\begin{HBox}{2: showNS pair centered\hfill File: \FileName}
+\begin{biddingpair}!-(\explainit{splinter})
+1S & 4D\markit \\
+4H & 6S \\
+\end{biddingpair}
+\showNS*+
+\end{HBox}
+\vfill
+\begin{HBox}{3: showNS\hfill File: \FileName}
+\begin{bidding}!-(\explainit{splinter}
+\explainit{control})
+1S & p & 4D\markit & p \\
+4H\markit & p & 6S & p \\
+\end{bidding}
+\showNS+
+\end{HBox}
+\vfill
+\needspace{8\baselineskip}
+\vfill
+Here we show the influence of command |\handskip|, that adds some extra
+space between the card diagram and the bidding diagram. In the 2nd diagram
+the negative value diminishes the distance. Because it is within braces,
+the length change is local and the normal value is automatically restored
+afterwards. In the 4th diagram we add |3em| extra space
+\vfill
+\begin{HBox}{4: showNS centered\hfill File: \FileName}
+\showNS*+
+{\handskip{-1em}\showNS*+}
+\showNS*+
+{\handskip{3em}\showNS*+}
+\end{HBox}
+\vfill
+\begin{HBox}{5: showNS pair\hfill File: \FileName}
+\gamefont{\sffamily\bfseries\scriptsize}
+\begin{biddingpair}!-
+1S & 4D \\
+4H & 6S \\
+\end{biddingpair}
+\showNS+
+\end{HBox}
+\vfill
+Because the previously saved bidding diagram is used, setting |bidfirst|
+has no influence on the output\ldots
+\vfill
+\begin{HBox}{6: showNS pair centered\hfill File: \FileName}
+\setdefaults{bidfirst=W}
+\showNS*+
+\end{HBox}
+\vfill
+\ldots But when setting the next bidding diagram, it has!
+\vfill
+\begin{HBox}{7: showNS\hfill File: \FileName}
+\begin{bidding}-(\explainit{splinter}
+\explainit{control})
+1S & p & 4D\markit & p \\
+4H\markit & p & 6S & p \\
+\end{bidding}
+\showNS+
+\end{HBox}
+\vfill
+\begin{HBox}{8: showNS centered\hfill File: \FileName}
+\showNS*+
+\end{HBox}
+\vfill
+\end{document}
+\endinput
+