| 1 |
\documentclass[onedown-examples]{subfiles} |
| 2 |
|
| 3 |
\begin{document} |
| 4 |
% |
| 5 |
The first diagram reflects the default: the first column is for \west, |
| 6 |
full names are shown, the alignment is \textbf{c} and the long form is |
| 7 |
used: The lowercase |p| yields \Xfer{p} and an uppercase |P| yields |
| 8 |
\Xfer{P}. |X| yields \Xfer{X} and |R| yields \Xfer{R}. One can use |
| 9 |
'mixed-mode' for the entries in the table: both the abreviation |C| or the |
| 10 |
command |\Cl| for clubs are possible. \OneDown takes care of the spacing |
| 11 |
between the rank and the nomination, so you do not have to fiddle around |
| 12 |
with |\thinspace|, |\,| or the like. |
| 13 |
|
| 14 |
In the second diagram we use the short form of the non-bid calls, by |
| 15 |
calling |\setdefaults{bidlong=off}|. |
| 16 |
The alignment is \textbf{t} and we have put \north in the first column. |
| 17 |
Please observe that the change to |bidfirst=N| is made local by the |
| 18 |
surrounding |{...}| |
| 19 |
|
| 20 |
In the third diagram we also use the short form for the table header by |
| 21 |
calling the bidding table with the token |!|. The alignment is \textbf{b}. |
| 22 |
|
| 23 |
In the first example we also added an |\alert| and an |\announce|, just to |
| 24 |
show their layout. |
| 25 |
\vfill |
| 26 |
% |
| 27 |
\begin{HBox}{{bidding, alignment and long/short forms}\hfill File: \FileName} |
| 28 |
%\gamefont{\smaller\smaller} |
| 29 |
A |
| 30 |
\begin{bidding}% default= [c] |
| 31 |
1\Cl\announce & 1D & 1H & 1S\alert \\ |
| 32 |
1N & X & p & p \\ |
| 33 |
R & P \\ |
| 34 |
\end{bidding} |
| 35 |
B |
| 36 |
\\[2\baselineskip] |
| 37 |
A |
| 38 |
{ |
| 39 |
\setdefaults{bidlong=off,bidfirst=N} |
| 40 |
\begin{bidding}[t] |
| 41 |
1C & 1D & 1H & 1S \\ |
| 42 |
1N & X & p & p \\ |
| 43 |
R & P \\ |
| 44 |
\end{bidding} |
| 45 |
}B |
| 46 |
\\[2\baselineskip] |
| 47 |
A |
| 48 |
%\setdefaults{bidlong=off} |
| 49 |
\begin{bidding}![b] |
| 50 |
1C & 1D & 1H & 1S \\ |
| 51 |
1N & X & p & p \\ |
| 52 |
R & p & p & p \\ |
| 53 |
\end{bidding} |
| 54 |
B |
| 55 |
\end{HBox} |
| 56 |
\vfill |
| 57 |
\needspace{8\baselineskip} |
| 58 |
We now show bidding diagrams with the real names of the players. In every |
| 59 |
of the four diagrams we have a different first column. Please observe that |
| 60 |
the association of the individuals with the \north, \east etc.\ |
| 61 |
direction is preserved. |
| 62 |
\vfill |
| 63 |
\begin{HBox}{{bidding, names and first column}\hfill File: \FileName} |
| 64 |
\namesNS{Jan}{Joris} |
| 65 |
\namesEW{Piet}{Corneel} |
| 66 |
\setdefaults{bidfirst=N} |
| 67 |
\begin{bidding} |
| 68 |
1S & p & 3C & p\\ |
| 69 |
3D & p & 3H & p\\ |
| 70 |
3S & p & p & p\\ |
| 71 |
\end{bidding} |
| 72 |
\par\hrulefill\par |
| 73 |
\setdefaults{bidfirst=E} |
| 74 |
\begin{bidding} |
| 75 |
1S & p & 3C & p\\ |
| 76 |
3D & p & 3H & p\\ |
| 77 |
3S & p & p & p\\ |
| 78 |
\end{bidding} |
| 79 |
\par\hrulefill\par |
| 80 |
\setdefaults{bidfirst=S} |
| 81 |
\begin{bidding} |
| 82 |
1S & p & 3C & p\\ |
| 83 |
3D & p & 3H & p\\ |
| 84 |
3S & p & p & p\\ |
| 85 |
\end{bidding} |
| 86 |
\par\hrulefill\par |
| 87 |
\setdefaults{bidfirst=W} |
| 88 |
\begin{bidding} |
| 89 |
1S & p & 3C & p\\ |
| 90 |
3D & p & 3H & p\\ |
| 91 |
3S & p & p & p\\ |
| 92 |
\end{bidding} |
| 93 |
\end{HBox} |
| 94 |
\vfill |
| 95 |
\needspace{8\baselineskip} |
| 96 |
Here we show the bidding diagram for only 2 bidders, with 4 different first |
| 97 |
columns. Observe that also here the real names stay in connection with |
| 98 |
their directions. |
| 99 |
\vfill |
| 100 |
\begin{HBox}{{biddingpairs, names and first column}\hfill File: \FileName} |
| 101 |
\namesNS{Jan}{Piet} |
| 102 |
\namesEW{Joris}{Corneel} |
| 103 |
\setdefaults{bidfirst=N} |
| 104 |
\begin{biddingpair} |
| 105 |
1S & 3C \\ |
| 106 |
3D & 3H \\ |
| 107 |
3S & p \\ |
| 108 |
\end{biddingpair} |
| 109 |
\par\hrulefill\par |
| 110 |
\setdefaults{bidfirst=E} |
| 111 |
\begin{biddingpair} |
| 112 |
1S & 3C \\ |
| 113 |
3D & 3H \\ |
| 114 |
3S & p \\ |
| 115 |
\end{biddingpair} |
| 116 |
\par\hrulefill\par |
| 117 |
\setdefaults{bidfirst=S} |
| 118 |
\begin{biddingpair} |
| 119 |
1S & 3C \\ |
| 120 |
3D & 3H \\ |
| 121 |
3S & p \\ |
| 122 |
\end{biddingpair} |
| 123 |
\par\hrulefill\par |
| 124 |
\setdefaults{bidfirst=W} |
| 125 |
\begin{biddingpair} |
| 126 |
1S & 3C \\ |
| 127 |
3D & 3H \\ |
| 128 |
3S & p \\ |
| 129 |
\end{biddingpair} |
| 130 |
\end{HBox} |
| 131 |
% |
| 132 |
\vfill |
| 133 |
\needspace{8\baselineskip} |
| 134 |
The next example shows how one can put a marker to a call with |\markit| |
| 135 |
and refer to it with by calling |\explainit|. |
| 136 |
These explanations must appear in the |
| 137 |
optional argument of the bidding table. You yourself are responsible that |
| 138 |
the order in which they appear corresponds with the order of the markers. |
| 139 |
The explanations are typeset like a footnote mechanism below the table and |
| 140 |
they will never extend beyond the right edge of the table, as you can see |
| 141 |
in the 2nd diagram. The width in a biddingpair table is even more limited, |
| 142 |
that's the reason why we use raggedright to obtain a result that is |
| 143 |
typographically acceptable. The last diagram shows that we can get an |
| 144 |
annotation without the need for |\markit| or |\explainit|. |
| 145 |
|
| 146 |
\vfill |
| 147 |
\begin{HBox}{bidding with (very long) annotation\hfill File: \FileName} |
| 148 |
\begin{bidding}(% |
| 149 |
\explainit{Bergen} |
| 150 |
\explainit{How strong?} |
| 151 |
\explainit{Minimum hand}) |
| 152 |
1\Sp & p & 3C\markit & p\\ |
| 153 |
3D\markit & p & 3H\markit & p\\ |
| 154 |
3S & p & p & p\\ |
| 155 |
\end{bidding} |
| 156 |
\par\vspace{2\baselineskip}\noindent |
| 157 |
\begin{bidding}(% |
| 158 |
\explainit{Here we have a very very |
| 159 |
long annotation that does |
| 160 |
not fit on one line}) |
| 161 |
1\Sp & p & 3C\markit & p\\ |
| 162 |
\end{bidding} |
| 163 |
\par\vspace{2\baselineskip}\noindent |
| 164 |
\begin{biddingpair}(% |
| 165 |
\explainit{Here we have a very very |
| 166 |
long annotation that does |
| 167 |
not fit on one line}) |
| 168 |
1S & 3C\markit \\ |
| 169 |
\end{biddingpair} |
| 170 |
\qquad |
| 171 |
\begin{biddingpair}(% |
| 172 |
no explain/markit here but still an annotation) |
| 173 |
1S & 3C \\ |
| 174 |
\end{biddingpair} |
| 175 |
|
| 176 |
\end{HBox} |
| 177 |
\vfill |
| 178 |
\needspace{8\baselineskip} |
| 179 |
In this examples we'll change some fonts to see what it accomplishes.\\ |
| 180 |
By default the bidderfont is |\mdseries\sffamily| and the namefont is |
| 181 |
|\mdseries\slshape|, as you can clearly see in the header of the bidding |
| 182 |
diagram. |
| 183 |
\begin{itemize}[itemsep=0em] |
| 184 |
\item |\gamefont{...\Large}| enlarges everything, also where other fonts are |
| 185 |
active, e.g.\ in the header. (1st diagram) |
| 186 |
\item |\scalefont| scales all fonts, not only the |\gamefont| |
| 187 |
controlled stuff. (2nd diagram) |
| 188 |
\item If you change only the \emph{size} of e.g.\ the |\namefont|, |
| 189 |
without giving a font description, you 'lose the font' and the current font |
| 190 |
will be used instead of |namefont|. In diagrams most of the time this will |
| 191 |
be the |gamefont|. (3rd diagram) |
| 192 |
\end{itemize} |
| 193 |
We also used |\setdefaults{bidline=1}| to separate the header of the |
| 194 |
bidding table from the bidding sequence with a |\hline|. |
| 195 |
% |
| 196 |
\vfill |
| 197 |
\begin{HBox}{Same but with changed font\hfill File: \FileName} |
| 198 |
\gamefont{\sffamily\bfseries\Large} |
| 199 |
\setdefaults{bidline=1} |
| 200 |
\begin{bidding}[c](\explainit{Bergen}) |
| 201 |
1S & p & 3C\markit & p\\ |
| 202 |
3D & p & 3H & p\\ |
| 203 |
3S & p & p & p\\ |
| 204 |
\end{bidding} |
| 205 |
|
| 206 |
\gamefont{\sffamily\bfseries\normalsize} |
| 207 |
\gamefont{\sffamily\scalefont{2}} |
| 208 |
\begin{biddingpair}[c]% |
| 209 |
(\explainit{Bergen}) |
| 210 |
1S & 3C\markit \\ |
| 211 |
3D & 3H \\ |
| 212 |
3S & p \\ |
| 213 |
\end{biddingpair} |
| 214 |
|
| 215 |
\gamefont{\sffamily\bfseries\normalsize} |
| 216 |
\namefont{\smaller} |
| 217 |
\begin{bidding}(\explainit{Bergen}) |
| 218 |
1S & p & 3C\markit & p\\ |
| 219 |
3D & p & 3H & p\\ |
| 220 |
3S & p & p & p\\ |
| 221 |
\end{bidding} |
| 222 |
\setdefaults{bidline=off} |
| 223 |
\end{HBox} |
| 224 |
\vfill |
| 225 |
Normally one uses shorthands in bidding tables. We already showed that one |
| 226 |
can use macros calls like |\Cl|. If a macro uses tokens, or if a shorthand |
| 227 |
appears as argument of another macro, one has to be careful. Note that the |
| 228 |
first entry (|\frame{2H}|) of row 2 does not produce the correct result, |
| 229 |
but |{\frame{2\He}}| does: We have to enclose these specials in braces |
| 230 |
(|{...}|) and not use the shorthand notation. |
| 231 |
\vfill |
| 232 |
\begin{HBox}{Special effects\hfill File: \FileName} |
| 233 |
\namesNS{}{}\namesEW{}{} |
| 234 |
\begin{bidding} |
| 235 |
p & X & R & P \\ |
| 236 |
{\frame{2H}} & {\frame{2\He}} & |
| 237 |
{\textit{R}} & {\textit{\redouble}} \\ |
| 238 |
{\Pass*!} & {\Redouble*!} & \Allpass\\ |
| 239 |
\end{bidding} |
| 240 |
\end{HBox} |
| 241 |
\vfill |
| 242 |
\end{document} |
| 243 |
\endinput |
| 244 |
|