Debian Codegraph @

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

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \begin{document}
4 Here we show the playing tricks diagram. For the user, the environment |play| is like a 4
5 column table. Its mandatory argument denotes the player with the opening
6 lead. With the optional argument the user can specify the trump suit. The
7 default is |N| for \NT. All leads must have a suit, although this is not
8 checked by \OneDown. If a suit is
9 followed, you don't have to repeat the suit: a rank suffices to specify the
10 card. Of course at discards or when ruffed, the suit must be entered too.
11
12 The |play| diagram has a special feature: it knows which player wins the
13 trick and thus 1) you do not have to specify who has the lead, except of
14 course the opening lead, and 2) it calculates (and displays) the tricks won
15 by each side.
16 \vfill
17 \begin{HBox}{{Playing tricks table. Trump is \Cl\hfill File: \FileName}}
18 \newgame\resetfonts
19 \begin{play}{W}[C]
20 H3 & 4 & K & 6 \\
21 C3 & 5 & Q & 2 \\
22 H5 & 2 & A & 8 \\
23 C7 & D9 & J & K \\
24 S3 & 4 & Q & 6 \\
25 SA & C4 & 2 & T \\
26 \end{play}
27 \end{HBox}
28 \vfill
29 It is posible to use either the shorthands (|C, D, H, S|) for the suits as
30 well as the code (e.g.\ |\Cl| itself, as you can see here. Refer to Bidding
31 examples for further details.
32
33 In the environment |play| the consistency of the cards played is checked. As
34 an example the error about card \He\,5 (ocurring $2\times$ in the same trick)
35 is reported.
36 \vfill
37 \begin{HBox}{{Same, but with suit commands\hfill File: \FileName}}
38 \begin{play}{W}[C]
39 \He3 & 4 & K & 6 \\
40 \Cl3 & 5 & Q & 2 \\
41 \He5 & 5 & A & 8 \\
42 \Cl7 & \Di9 & J & K \\
43 \Sp3 & 4 & Q & 6 \\
44 \Sp A & K & 2 & T \\
45 \end{play}
46 \end{HBox}
47 \vfill
48 In the next example for a \NT contract, we have changed the language. Here
49 the double occurence of \Cl\,6 in two different tricks is shown.
50 \vfill
51 \begin{HBox}{Playing tricks table for \NT in Dutch\hfill File: \FileName}
52 \begin{otherlanguage}{dutch}
53 \begin{play}{W}
54 C3 & Q & K & 2 \\
55 SJ & A & 4 & 2 \\
56 C4 & 6 & T & 5 \\
57 CA & ST & 6 & 9 \\
58 C7 & HT & D5 & S5 \\
59 D2 & T & 3 & 4 \\
60 \end{play}
61 \end{otherlanguage}
62 \end{HBox}
63 \vfill
64 \vfill
65 \begin{HBox}{The same table in German\hfill File: \FileName}
66 \begin{otherlanguage}{german}
67 \begin{play}{W}
68 C3 & Q & K & 2 \\
69 SJ & A & 4 & 2 \\
70 C4 & 6 & T & 5 \\
71 CA & ST & 6 & 9 \\
72 C7 & HT & D5 & S5 \\
73 D2 & T & 3 & 4 \\
74 \end{play}
75 \end{otherlanguage}
76 \end{HBox}
77 \vfill
78 \end{document}
79 \endinput
80