summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples/bidNS.tex
blob: ca00038328e7453f16a37b62a16bf6b75da6ae2a (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
\documentclass[onedown-examples]{subfiles}

\makeatletter
\def\SW{\the\ODw@Skip@Width}
\makeatletter
\begin{document}
\vfill
We show a couple of diagrams without comment, with the exception of
number 4.
% We must trick here because HBox makes the settings local
\setdefaults{bidfirst=S}
\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}
\setdefaults{compmid=1} \showNS*+
{\handskip{-1em}\setdefaults{compmid=2} \showNS*+}
\setdefaults{compmid=3} \showNS*+
{\handskip{3em}\setdefaults{compmid=4} \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!
% Need to trick here again
\setdefaults{bidfirst=W}
\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