Debian Codegraph @

texmf-dist/doc/latex/onedown/Examples/bidNS.tex

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \makeatletter
4 \def\SW{\the\ODw@Skip@Width}
5 \makeatletter
6 \begin{document}
7 \vfill
8 We show a couple of diagrams without comment, with the exception of
9 number 4.
10 % We must trick here because HBox makes the settings local
11 \setdefaults{bidfirst=S}
12 \vfill
13 \begin{HBox}{1: showNS pair\hfill File: \FileName}
14 \newgame
15 \northhand{KJ82}{KQ9}{J}{AQJT8}
16 \southhand{AQT95}{A52}{864}{K6}
17 \easthand{JT6}{764}{KT9}{JT32}
18 \westhand{Q952}{K32}{765}{AQ7}
19 \setdefaults{bidfirst=S}
20 \begin{biddingpair}-(\explainit{splinter})
21 1S & 4D\markit \\
22 4H & 6S \\
23 \end{biddingpair}
24 \showNS+
25 \end{HBox}
26 \vfill
27 \begin{HBox}{2: showNS pair centered\hfill File: \FileName}
28 \begin{biddingpair}!-(\explainit{splinter})
29 1S & 4D\markit \\
30 4H & 6S \\
31 \end{biddingpair}
32 \showNS*+
33 \end{HBox}
34 \vfill
35 \begin{HBox}{3: showNS\hfill File: \FileName}
36 \begin{bidding}!-(\explainit{splinter}
37 \explainit{control})
38 1S & p & 4D\markit & p \\
39 4H\markit & p & 6S & p \\
40 \end{bidding}
41 \showNS+
42 \end{HBox}
43 \vfill
44 \needspace{8\baselineskip}
45 \vfill
46 Here we show the influence of command |\handskip|, that adds some extra
47 space between the card diagram and the bidding diagram. In the 2nd diagram
48 the negative value diminishes the distance. Because it is within braces,
49 the length change is local and the normal value is automatically restored
50 afterwards. In the 4th diagram we add |3em| extra space
51 \vfill
52 \begin{HBox}{4: showNS centered\hfill File: \FileName}
53 \setdefaults{compmid=1} \showNS*+
54 {\handskip{-1em}\setdefaults{compmid=2} \showNS*+}
55 \setdefaults{compmid=3} \showNS*+
56 {\handskip{3em}\setdefaults{compmid=4} \showNS*+}
57 \end{HBox}
58 \vfill
59 \begin{HBox}{5: showNS pair\hfill File: \FileName}
60 \gamefont{\sffamily\bfseries\scriptsize}
61 \begin{biddingpair}!-
62 1S & 4D \\
63 4H & 6S \\
64 \end{biddingpair}
65 \showNS+
66 \end{HBox}
67 \vfill
68 Because the previously saved bidding diagram is used, setting |bidfirst|
69 has no influence on the output\ldots
70 \vfill
71 \begin{HBox}{6: showNS pair centered\hfill File: \FileName}
72 \setdefaults{bidfirst=W}
73 \showNS*+
74 \end{HBox}
75 \vfill
76 \ldots But when setting the next bidding diagram, it has!
77 % Need to trick here again
78 \setdefaults{bidfirst=W}
79 \vfill
80 \begin{HBox}{7: showNS\hfill File: \FileName}
81 \begin{bidding}-(\explainit{splinter}
82 \explainit{control})
83 1S & p & 4D\markit & p \\
84 4H\markit & p & 6S & p \\
85 \end{bidding}
86 \showNS+
87 \end{HBox}
88 \vfill
89 \begin{HBox}{8: showNS centered\hfill File: \FileName}
90 \showNS*+
91 \end{HBox}
92 \vfill
93 \end{document}
94 \endinput
95