summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples/Suits.tex
blob: 457ab2733205bde44443212d685bce65afb265bf (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
\documentclass[onedown-examples]{subfiles}

\begin{document}

Here we show a single suit, with and without a suit symbol. You can observe
the influence of changing the |gamefont|.
In the 1st suit, card 4 occurs $2\times$ and an error message is printed.
In the last suit the same happens for card 5 but now the suit is known and
is named in the error message.
\vfill
\begin{HBox}{suit and errors I\hfill File: \FileName}
\suit{AKT544}\hspace{1cm}
\suit[\He]{AKT54}
\gamefont{\sffamily\bfseries\Large}
\par\vspace{1\baselineskip}\noindent
\suit{AKT54}\hspace{1cm}
\suit[\He]{AKT54}
\par\vspace{1\baselineskip}\noindent
\suit[\He]{AKT554}
\end{HBox}
\vfill
\noindent
In the 3rd diagram card 8 occurs $2\times$. In the 4th diagram card 4 is
missing and a warning is raised. Card 5, which occurs $2\times$, raises an
error. Errors are shown by default, warnings must be activated first. These
consistency checks make it easy to spot typos in your diagrams.
\vfill
\begin{HBox}{suits and errors II\hfill File: \FileName}
\resetfonts
\onesuitNS{AK53}{JT6}
\qquad
\onesuitEW{87}{Q952}
\qquad
\onesuitEW{87}{Q852}
\par\vspace{0.5\baselineskip}\noindent
\setdefaults{warn=on}
\onesuitAll{AK53}{JT6}{87}{Q952}
\end{HBox}
\vfill
The other 'onesuit' diagrams, using a small box.
\vfill
\begin{HBox}{onesuitXX with box\hfill File: \FileName}
\setdefaults{warn=off}
\onesuitNE{AK43}{87}
\qquad
\onesuitNE{AK43}{Q952}
\end{HBox}
\vfill
Next we show how to use a compass instead of a small box by using token |!|.
\vfill
\begin{HBox}{onesuitXX with compass\hfill File: \FileName}
\onesuitNS!{AK53}{JT6}
\quad
\onesuitEW!{87}{Q952}
\quad
\onesuitNE!{AK43}{87}
\quad
\onesuitNE!{AK43}{Q952}
\quad
\onesuitAll!{AK43}{JT6}{87}{Q952}
\end{HBox}
\needspace{8\baselineskip}
\vfill
\end{document}