| 1 |
\documentclass[onedown-examples]{subfiles} |
| 2 |
%\usepackage{forloop} |
| 3 |
|
| 4 |
\gamefont{\larger\larger} |
| 5 |
\makeatletter |
| 6 |
\def\CP{\ODw@Compass} |
| 7 |
\makeatother |
| 8 |
|
| 9 |
\begin{document} |
| 10 |
\noindent |
| 11 |
Here we show the 16 possible combinations of dealership and vulnerability. |
| 12 |
We use the default |colors=2| (|black & red|) and so the vulners appear in |
| 13 |
red. The command |\CP| is to be defined in every V- or HBox. |
| 14 |
\par\vspace{1em}\noindent |
| 15 |
% |
| 16 |
|
| 17 |
\begin{VBox}{The 16 combinations of dealer/vulner\hfill File: \FileName} |
| 18 |
\newcounter{Nr} |
| 19 |
\newcounter{Tmp} |
| 20 |
\makeatletter |
| 21 |
\def\CP{\ODw@Compass} |
| 22 |
\makeatother |
| 23 |
\centering |
| 24 |
\setdefaults{compsize=1.3,compmid=\boardtext} |
| 25 |
\begin{tabular}{ll|ll} |
| 26 |
\forloop{Nr}{1}{\value{Nr} < 9}{% |
| 27 |
\boardnr{\theNr} \theNr: \dealertext\vulnertext & \CP &% |
| 28 |
\setcounter{Tmp}{8 + \theNr}% |
| 29 |
\boardnr{\theTmp} \theTmp: \dealertext\vulnertext & \CP \\ |
| 30 |
} |
| 31 |
\end{tabular} |
| 32 |
\end{VBox} |
| 33 |
\vfill |
| 34 |
\needspace{15\baselineskip} |
| 35 |
\vfill |
| 36 |
With |\setdefaults| we can influence the look of the compass in detail. The |
| 37 |
keys that control this are |compline| to set the thickness of the frame, |
| 38 |
|compshow| to hide/show the compass, |compsize| to multiply the compass |
| 39 |
size with a factor and |compturn| with which the letter 'E' and 'W' can be |
| 40 |
rotated over 90°. With the key |compass| one can set the font that is used |
| 41 |
for the letters in the compass. |
| 42 |
|
| 43 |
First we enlarge the compass 1.5$\times$. Note that this does influence |
| 44 |
neither the fontsize nor the frame thickness. Then we enlarge the fonsize. |
| 45 |
As you see, this does influence the size of the compass too. Finally |
| 46 |
we set the size factor back to 1. Notice the difference with the first |
| 47 |
compass. |
| 48 |
\vfill |
| 49 |
\begin{HBox}{controlling the compass I\hfill File: \FileName} |
| 50 |
\makeatletter |
| 51 |
\def\CP{\ODw@Compass} |
| 52 |
\makeatother |
| 53 |
\CP |
| 54 |
\setdefaults{compsize=1.5}\CP |
| 55 |
\setdefaults*{compass=\Large}\CP |
| 56 |
\setdefaults{compsize=1}\CP |
| 57 |
\end{HBox} |
| 58 |
\vfill |
| 59 |
As you see, we can make the frame very thick, very thin or let it |
| 60 |
disappear completely when we use factor 0. |
| 61 |
\vfill |
| 62 |
\begin{HBox}{controlling the compass II\hfill File: \FileName} |
| 63 |
\makeatletter |
| 64 |
\def\CP{\ODw@Compass} |
| 65 |
\makeatother |
| 66 |
\setdefaults{compsize=1.5}\CP |
| 67 |
\setdefaults{compline=3}\CP |
| 68 |
\setdefaults{compline=0.1}\CP |
| 69 |
\setdefaults{compline=0}\CP |
| 70 |
\end{HBox} |
| 71 |
\vfill |
| 72 |
If you watch the first compass carefully, you'll notice (maybe you must |
| 73 |
enlarge it to see what is meant) that the small |x| is exactly in the |
| 74 |
middle of the compass. Nevertheless the impressesion is that the |x| is |
| 75 |
closer to the '|W|'. This is because a '|W|' is wider than an '|E|'. |
| 76 |
It simply looks unbalanced. We can diminish this by enlarging the compass. |
| 77 |
Another trick is to rotate the |W| and |E| 90°, as shown in the third |
| 78 |
compass. In the second line we see a diagram with compass, but its |
| 79 |
frame is supressed. Finally we see a diagram where the total compass is |
| 80 |
suppressed. For clarity's sake we have added the \east and \west hand. |
| 81 |
\vfill |
| 82 |
\begin{HBox}{controlling the compass III\hfill File: \FileName} |
| 83 |
\makeatletter |
| 84 |
\def\CP{\ODw@Compass} |
| 85 |
\makeatother |
| 86 |
\boardnr{0} |
| 87 |
\setdefaults{compsize=1,compmid=x}\CP |
| 88 |
\setdefaults{compsize=1.5}\CP |
| 89 |
\setdefaults{compsize=1,compturn=on}\CP |
| 90 |
\setdefaults{compturn=off,compline=0} |
| 91 |
\gamefont{\footnotesize} |
| 92 |
\easthand{JT6}{764}{K43}{JT32} |
| 93 |
\westhand{Q952}{K92}{762}{AQ7} |
| 94 |
\showEW\hfill |
| 95 |
\setdefaults{compshow=off} |
| 96 |
\showEW |
| 97 |
\end{HBox} |
| 98 |
\vfill |
| 99 |
On the next page we show the compass for all available sizes. In order to |
| 100 |
get all diagrams in one color box, we combined the smallest with the |
| 101 |
largest etc. The first line gets out of the frame, but you'll get the idea |
| 102 |
all the same. Using |\scalefont| you can get even bigger diagrams. |
| 103 |
\vfill |
| 104 |
\begin{HBox}{onesuitAll for all sizes\hfill File: \FileName} |
| 105 |
\setdefaults{compshow=on} |
| 106 |
\gamefont{\sffamily\bfseries\tiny} |
| 107 |
\setdefaults{compmid=~t} |
| 108 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 109 |
\gamefont{\sffamily\bfseries\HUGE} |
| 110 |
\setdefaults{compmid=U} |
| 111 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 112 |
% |
| 113 |
\gamefont{\sffamily\bfseries\ssmall} |
| 114 |
\setdefaults{compmid=~s} |
| 115 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 116 |
\gamefont{\sffamily\bfseries\Huge} |
| 117 |
\setdefaults{compmid=H} |
| 118 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 119 |
% |
| 120 |
\gamefont{\sffamily\bfseries\scriptsize} |
| 121 |
\setdefaults{compmid=c} |
| 122 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 123 |
\gamefont{\sffamily\bfseries\huge} |
| 124 |
\setdefaults{compmid=h} |
| 125 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 126 |
% |
| 127 |
\gamefont{\sffamily\bfseries\footnotesize} |
| 128 |
\setdefaults{compmid=f} |
| 129 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 130 |
\gamefont{\sffamily\bfseries\LARGE} |
| 131 |
\setdefaults{compmid=A} |
| 132 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 133 |
% |
| 134 |
\gamefont{\sffamily\bfseries\small} |
| 135 |
\setdefaults{compmid=s} |
| 136 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 137 |
\gamefont{\sffamily\bfseries\Large} |
| 138 |
\setdefaults{compmid=L} |
| 139 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 140 |
% |
| 141 |
\gamefont{\sffamily\bfseries\normalsize} |
| 142 |
\setdefaults{compmid=n} |
| 143 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 144 |
\gamefont{\sffamily\bfseries\large} |
| 145 |
\setdefaults{compmid=l} |
| 146 |
\onesuitAll!{JT62}{AK53}{87}{Q94} |
| 147 |
\setdefaults{compmid=} |
| 148 |
\end{HBox} |
| 149 |
\vfill |
| 150 |
\end{document} |
| 151 |
\endinput |