Debian Codegraph @

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

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \begin{document}
4 \setdefaults{bidfirst=S}
5
6 Here is a diagram with four hands. We get rid of the past by calling
7 |\newgame|. Then we define our hands and set the first bid column to
8 \south and we show only one pair of bidders. Because the bidding table
9 does not fit on the same line, it appears below the compass.
10 (In fact it actually would fit on the line. But to illustrate the point we
11 used |\handskip| to widen the diagram a bit).
12 Note that the token |-| in the |bidding| environment suppresses the output
13 of it. Only when calling |\showAll+| (with a |+| token), the saved bidding
14 diagram is printed together with the card diagram.
15
16 \vfill
17 \begin{HBox}{not fitting on the line\hfill File: \FileName}
18 \newgame
19 \handskip{2em}
20 \northhand{KJ82}{KQ9}{J32}{JT8}
21 \southhand{AQ953}{A85}{Q84}{K6}
22 \easthand{T6}{764}{KT9}{Q5432}
23 \westhand{74}{JT32}{A765}{A97}
24 \setdefaults{bidfirst=S}
25 \begin{biddingpair}-
26 1S & 4S \\
27 p & \\
28 \end{biddingpair}
29 \showAll+
30 \end{HBox}
31 \vfill
32 Here the hands and the bidding are the same as previous, but the complete diagram
33 (biddingtable inclusive) is centered and we use the short notation for the
34 players in the bidding table (by using the token |!|).
35 Being shorter now, the bidding table does fit on the same line.
36 \vfill
37 \begin{HBox}{centered and fitting\hfill File: \FileName}
38 \setdefaults{bidfirst=S}
39 \begin{biddingpair}!-
40 1S & 4S \\
41 p & \\
42 \end{biddingpair}
43 \showAll*+
44 \end{HBox}
45 \vfill
46 \needspace{8\baselineskip}
47 The same deal, but now we show all bidders in the bidding table with the long notation.
48 Again it is to wide to fit on the line.
49 \vfill
50 \begin{HBox}{left aligned\hfill File: \FileName}
51 \begin{bidding}-(\explainit{15-17\HLP})
52 p & p & P & 1S \\
53 p & 2C & {\Pass*!} & 2N\markit \\
54 p & 3N & {\Allpass!} \\
55 \end{bidding}
56 \showAll+
57 \end{HBox}
58 \vfill
59 Finally the same, but the diagram is centered. We also set the extra
60 handskip to 0 again.
61 \vfill
62 \begin{HBox}{centered\hfill File: \FileName}
63 \handskip{0em}
64 \showAll*+
65 \end{HBox}
66 \vfill
67 \end{document}
68 \endinput
69