Debian Codegraph @

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

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \begin{document}
4
5 Here we show a single suit, with and without a suit symbol. You can observe
6 the influence of changing the |gamefont|.
7 In the 1st suit, card 4 occurs $2\times$ and an error message is printed.
8 In the last suit the same happens for card 5 but now the suit is known and
9 is named in the error message.
10 \vfill
11 \begin{HBox}{suit and errors I\hfill File: \FileName}
12 \suit{AKT544}\hspace{1cm}
13 \suit[\He]{AKT54}
14 \gamefont{\sffamily\bfseries\Large}
15 \par\vspace{1\baselineskip}\noindent
16 \suit{AKT54}\hspace{1cm}
17 \suit[\He]{AKT54}
18 \par\vspace{1\baselineskip}\noindent
19 \suit[\He]{AKT554}
20 \end{HBox}
21 \vfill
22 \noindent
23 In the 3rd diagram card 8 occurs $2\times$. In the 4th diagram card 4 is
24 missing and a warning is raised. Card 5, which occurs $2\times$, raises an
25 error. Errors are shown by default, warnings must be activated first. These
26 consistency checks make it easy to spot typos in your diagrams.
27 \vfill
28 \begin{HBox}{suits and errors II\hfill File: \FileName}
29 \resetfonts
30 \onesuitNS{AK53}{JT6}
31 \qquad
32 \onesuitEW{87}{Q952}
33 \qquad
34 \onesuitEW{87}{Q852}
35 \par\vspace{0.5\baselineskip}\noindent
36 \setdefaults{warn=on}
37 \onesuitAll{AK53}{JT6}{87}{Q952}
38 \end{HBox}
39 \vfill
40 The other 'onesuit' diagrams, using a small box.
41 \vfill
42 \begin{HBox}{onesuitXX with box\hfill File: \FileName}
43 \setdefaults{warn=off}
44 \onesuitNE{AK43}{87}
45 \qquad
46 \onesuitNE{AK43}{Q952}
47 \end{HBox}
48 \vfill
49 Next we show how to use a compass instead of a small box by using token |!|.
50 \vfill
51 \begin{HBox}{onesuitXX with compass\hfill File: \FileName}
52 \onesuitNS!{AK53}{JT6}
53 \quad
54 \onesuitEW!{87}{Q952}
55 \quad
56 \onesuitNE!{AK43}{87}
57 \quad
58 \onesuitNE!{AK43}{Q952}
59 \quad
60 \onesuitAll!{AK43}{JT6}{87}{Q952}
61 \end{HBox}
62 \needspace{8\baselineskip}
63 \vfill
64 \end{document}
65