| 1 |
%% |
| 2 |
%% onedown-ref.tex |
| 3 |
%% Oct 04, 2019 |
| 4 |
%% Requires the onedown bundle |
| 5 |
%% Part of the OneDown bundle (mirror.ctan.org/onedown) |
| 6 |
%% author: J. Wiersma |
| 7 |
%%--------NOTE------------------------------------------- |
| 8 |
%% USAGE: (pdf)latex onedown-ref.tex |
| 9 |
%%------------------------------------------------------- |
| 10 |
|
| 11 |
\PassOptionsToPackage{shorthands=off}{babel} |
| 12 |
\documentclass[a4paper,fontsize=11pt,% |
| 13 |
danish,% |
| 14 |
dutch,% |
| 15 |
french,% |
| 16 |
german,% |
| 17 |
ngerman,% |
| 18 |
italian,% |
| 19 |
norsk,% |
| 20 |
spanish,% |
| 21 |
swedish,% |
| 22 |
turkish,% |
| 23 |
english,% this is the default language |
| 24 |
]{scrartcl} |
| 25 |
\usepackage{scrlayer-scrpage} |
| 26 |
% |
| 27 |
\usepackage[utf8]{inputenc} |
| 28 |
\usepackage[T1]{fontenc} |
| 29 |
% |
| 30 |
\usepackage{babel}% |
| 31 |
\usepackage{onedown}% our own style to set bridge stuff |
| 32 |
\usepackage[a4paper, total={185mm, 257mm},left=12mm,top=20mm]{geometry} |
| 33 |
\newcommand\OneDown{\textcolor{red}{\smaller\bfseries\textsc{OneDown}}\xspace} |
| 34 |
\usepackage{shortvrb} |
| 35 |
\MakeShortVerb{\|} |
| 36 |
\usepackage{enumitem}% |
| 37 |
\usepackage[pdfencoding=auto]{hyperref} |
| 38 |
\hypersetup{% |
| 39 |
pdftitle={onedown-ref.pdf}, |
| 40 |
pdfsubject={Bridge Diagrams, OneDown bundle}, |
| 41 |
pdfkeywords={OneDown Bridge LaTeX}, |
| 42 |
colorlinks, |
| 43 |
linkcolor=red, |
| 44 |
} |
| 45 |
% |
| 46 |
\usepackage[Q=yes]{examplep} |
| 47 |
\makeatletter |
| 48 |
\def\verbatim@font{\ttfamily\bfseries |
| 49 |
\hyphenchar\font\m@ne |
| 50 |
\@noligs} |
| 51 |
\makeatother |
| 52 |
% |
| 53 |
\newcommand\bs{% |
| 54 |
\texttt{% |
| 55 |
\upshape% the itshape of meta screws the backslash |
| 56 |
\textbackslash% |
| 57 |
}% |
| 58 |
}% bs |
| 59 |
% |
| 60 |
\let\olditem\item |
| 61 |
\renewcommand\item[1][\relax]{\olditem\textbf{\bs#1}} |
| 62 |
%\def\Item{\olditem[\bs]} |
| 63 |
% |
| 64 |
\definecolor{optbackgr}{named}{lightgray} |
| 65 |
\newcommand\Oarg[1]{\colorbox{optbackgr}{\texttt{#1}}} |
| 66 |
% default language to show the onedown command |
| 67 |
\def\RefLang{english} |
| 68 |
\begin{document} |
| 69 |
% when compiled with: |
| 70 |
% pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}' |
| 71 |
% you'll get the onedown commands expansions in YourLanguage |
| 72 |
% YourLanguage can be any language out of: |
| 73 |
% english, danish, dutch, french, (n)german, italian, norsk, spanish, % swedish, |
| 74 |
% turkish. |
| 75 |
% |
| 76 |
\expandafter\selectlanguage\expandafter{\RefLang} |
| 77 |
% |
| 78 |
\larger |
| 79 |
\newgeometry{total={150mm, 265mm},left=25mm,top=15mm} |
| 80 |
\pagestyle{empty} |
| 81 |
% |
| 82 |
\title{Reference Guide for the\\\OneDown package% |
| 83 |
\footnote{This file is part of the \OneDown bundle. To generate this file, |
| 84 |
use the following command: \newline \texttt{\$ pdflatex \jobname.tex}} |
| 85 |
\\[1em] |
| 86 |
\normalsize\url{www.ctan.org/pkg/onedown} |
| 87 |
} |
| 88 |
\author{J.\,Wiersma\footnote{email: \textsf{[email protected]}}} |
| 89 |
\date{07 December 2023 (v0.6)} |
| 90 |
\maketitle |
| 91 |
% |
| 92 |
\par\vspace{1\baselineskip}\noindent |
| 93 |
Here we show all \textbf{user commands} of the package |onedown| in alphabetical |
| 94 |
order. If we only show the ouput that a command produces, then this output |
| 95 |
is shown directly behind the command on the same line. If a description of |
| 96 |
the command is given, then this description starts on a new line. Optional |
| 97 |
parameters of a command appear in brackets |[...]|, parenthesis |(...)| or |
| 98 |
angles |<...>|. Optional tokens of a command appear with a different |
| 99 |
background color, like \Oarg{*!}. Output of a tokenized |\macro*!| is shown |
| 100 |
as: |
| 101 |
\quad|\macro|\Oarg{*!}|: \macro, \macro*, \macro!, \macro*!|\\ |
| 102 |
The explanatory text is always in the English language. But you can show the output of all commands |
| 103 |
in any of the supported languages.\\ |
| 104 |
These are: english, danish, dutch, french, (n)german, italian, norsk, spanish, |
| 105 |
swedish, turkish. \\ |
| 106 |
You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with: \\[0.5em] |
| 107 |
% |
| 108 |
\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}'|\\ |
| 109 |
Beware: Copy\&Paste may use wrong quotes! Replace them by the right ones from your keybord. |
| 110 |
\\[0.7em] |
| 111 |
\centerline{\textbf{This document shows the commands for the \emph{\languagename}\ language}} |
| 112 |
\begin{description}[itemsep=-0.3em] |
| 113 |
\item[ace]: \ace |
| 114 |
\item[Ace\Oarg{*!}]: \Ace, \Ace*, \Ace!, \Ace*! |
| 115 |
|
| 116 |
\item[alert]: |2\NT\alert| typesets 2\NT\alert and |2\Cl\alert| typesets |
| 117 |
2\Cl\alert |
| 118 |
|
| 119 |
\item[all]: \all |
| 120 |
\item[All\Oarg{*!}]: \All, \All*, \All!, \All*! |
| 121 |
|
| 122 |
\item[allpass]: \allpass |
| 123 |
\item[Allpass\Oarg{*!}]: \Allpass, \Allpass*, \Allpass!, \Allpass*! |
| 124 |
|
| 125 |
\item[announce]: |2\He\announce| typesets 2\He\announce |
| 126 |
|
| 127 |
\item[bidderfont\Q{{font} }]\\ |
| 128 |
Defines the font for the names in |
| 129 |
bidding diagrams. The mandatory parameter for all font commands is a font |
| 130 |
description like |\sffamily\bfseries\HUGE| or |\mdseries\slshape\smaller| |
| 131 |
or |\sffamily\scalefont{3}|. |
| 132 |
|
| 133 |
\item[board]: \board |
| 134 |
\item[Board\Oarg{*!}]: \Board, \Board*, \Board!, \Board*! |
| 135 |
|
| 136 |
\item[boardnr\Q{{Nr} }]\\ |
| 137 |
Calculates (and stores) the dealership and vulnerability if |Nr| |
| 138 |
is a number. If it is just a text it is stored to be used instead of a |
| 139 |
board number. |
| 140 |
|
| 141 |
\item[boardtext\Oarg{*}]\\ |
| 142 |
Typesets the value that is stored with |\boardnr|. |
| 143 |
The star version writes the text \textbf{\boardtext*} in front of it. |
| 144 |
|
| 145 |
\item[by]: \by |
| 146 |
|
| 147 |
\item[Cl]: \Cl |
| 148 |
|
| 149 |
\item[compassfont\Q{{font} }]\\ |
| 150 |
Defines the font for the compass. |
| 151 |
|
| 152 |
\item[contract]: \contract |
| 153 |
\item[Contract\Oarg{*!}]: \Contract, \Contract*, \Contract!, \Contract*! |
| 154 |
|
| 155 |
\item[deal]: \deal |
| 156 |
\item[Deal\Oarg{*!}]: \Deal, \Deal*, \Deal!, \Deal*! |
| 157 |
|
| 158 |
\item[dealer\Q{[text]}]\\ |
| 159 |
Typeset the defined dealer. With the optional |
| 160 |
parameter one can define the dealer. |
| 161 |
|
| 162 |
\item[dealertext\Q{[text]}]\\ |
| 163 |
Typeset the user-defined value for the |\dealer|, |
| 164 |
e.g.\ \mbox{\dealertext[\east]}. With the optional parameter one can define |
| 165 |
the |text| to be printed \emph{as is}. |
| 166 |
|
| 167 |
\item[declarer]: \declarer |
| 168 |
\item[Declarer\Oarg{*!}]: \Declarer, \Declarer*, \Declarer!, \Declarer*! |
| 169 |
|
| 170 |
\item[Di]: \Di |
| 171 |
|
| 172 |
\item[double]: \double |
| 173 |
\item[Double\Oarg{*!}]: \Double, \Double*, \Double!, \Double*! |
| 174 |
|
| 175 |
\item[DP]: \DP |
| 176 |
\item[dpts\Oarg{*!}]: \dpts, \dpts*, \dpts!, \dpts*! |
| 177 |
|
| 178 |
\item[east]: \east |
| 179 |
\item[East\Oarg{*!}]: \East, \East*, \East!, \East*! |
| 180 |
|
| 181 |
\item[easthand\Q{[h-offset]{Sp}{He}{Di}{Cl}}]\\ |
| 182 |
Defines the cards for the |
| 183 |
\East*!-player. With the optional parameter |h-offset| one can adapt the |
| 184 |
(\emph{horizontal}) distance between hand and compass (default |
| 185 |
\textbf{0pt}). The 4 mandatory parameters define the cards for the 4 suits. |
| 186 |
To denote the rank \suit{T}, one has to use the uppercase letter |T|. |
| 187 |
|
| 188 |
\item[eastwest]: \eastwest |
| 189 |
\item[Eastwest\Oarg{*!}]: \EastWest, \EastWest*, \EastWest!, \EastWest*! |
| 190 |
|
| 191 |
\item[expertquiz\Oarg{*!}\Q{[comment]{award}}]\\ |
| 192 |
Typesets a quiz, showing a |
| 193 |
predefined hand and a predefined bidding diagram. The star version centers |
| 194 |
the output. The token |!| forces a newline between hand and bidding |
| 195 |
diagram. With the optional parameter one can add some comments. The |
| 196 |
mandatory parameter defines the award for the different solutions. |
| 197 |
|
| 198 |
\item[explainit\Q{{expl} }]\\ |
| 199 |
writes \emph{expl} below the bidding diagram in a footnote like way. |
| 200 |
|
| 201 |
\item[footlinetext\Q{{text} }]\\ |
| 202 |
Typeset the text below the card diagram. |
| 203 |
|
| 204 |
\item[FSF]: \FSF |
| 205 |
\item[fsforce\Oarg{*!}]: \fsforce, \fsforce*, \fsforce!, \fsforce*! |
| 206 |
|
| 207 |
\item[gamefont\Q{{font} }]\\ |
| 208 |
Defines the font for card diagrams, hands and suits. |
| 209 |
|
| 210 |
\item[GF]: \GF |
| 211 |
\item[gforce\Oarg{*!}]: \gforce, \gforce*, \gforce!, \gforce*! |
| 212 |
|
| 213 |
\item[hand\Oarg{*!-}\Q{[pos]{Sp}{He}{Di}{Cl}}]\\ |
| 214 |
Typesets the cards of 1 single hand, |
| 215 |
normally horizontally, left aligned. The star version centers the output. |
| 216 |
The token |!| typesets the hand vertically, left aligned. With both |*!| |
| 217 |
the hand is typeset vertically, centered. The optional argument |pos| |
| 218 |
(default \textbf{c}), controls the horizontal alignment. |
| 219 |
The third token |-| suppresses all output, which is then only saved for |
| 220 |
later use (in e.g.\ |\expertquiz|). The 4 |
| 221 |
mandatory parameters define the cards for the 4 suits. To denote the rank |
| 222 |
\suit{T}, one has to use the uppercase letter |T|. |
| 223 |
|
| 224 |
\item[handskip\Q{{length description} }]\\ |
| 225 |
Adds |length| to the distance (default |1em|) between the rightmost hand |
| 226 |
and the bidding diagram. |
| 227 |
|
| 228 |
\item[HCP]: \HCP |
| 229 |
|
| 230 |
\item[headlinetext\Q{{text} }]\\ |
| 231 |
Typeset the text above the card diagram. |
| 232 |
|
| 233 |
\item[He]: \He |
| 234 |
|
| 235 |
\item[HLP]: \HLP |
| 236 |
|
| 237 |
\item[hpts\Oarg{*!}]: \hpts, \hpts*, \hpts!, \hpts*! |
| 238 |
|
| 239 |
\item[jack]: \jack |
| 240 |
\item[Jack\Oarg{*!}]: \Jack. \Jack*, \Jack!, \Jack*! |
| 241 |
|
| 242 |
\item[king]: \king |
| 243 |
\item[King\Oarg{*!}]: \King, \King*, \King!, \King*! |
| 244 |
|
| 245 |
\item[lead]: \lead |
| 246 |
\item[Lead\Oarg{*!}]: \Lead, \Lead*, \Lead!, \Lead*! |
| 247 |
|
| 248 |
\item[leftlower\Q{[h-offset]{line1}{line2}{line3}}] |
| 249 |
|
| 250 |
\item[leftupper\Q{[h-offset]{line1}{line2}{line3}}]\\ |
| 251 |
Typesets an annotation of 3 lines in the left lower/upper corner of the |
| 252 |
card diagram. With the optional parameter one can add some extra horizontal |
| 253 |
space between hand and annotation. |
| 254 |
|
| 255 |
\item[legendfont\Q{{font} }]\\ |
| 256 |
Defines the font for annotations in card diagrams. |
| 257 |
|
| 258 |
\item[LP]: \LP |
| 259 |
\item[lpts\Oarg{*!}]: \lpts, \lpts*, \lpts!, \lpts*! |
| 260 |
|
| 261 |
\item[markit]\\ |
| 262 |
sets a footnote-like marker in a bidding diagram. |
| 263 |
|
| 264 |
\item[namefont\Q{{font} }]\\ |
| 265 |
Defines the font for the real world names in bidding diagrams. |
| 266 |
|
| 267 |
\item[namesEW\Q{{E-name}{W-name}}]\\ |
| 268 |
Defines the real world names for the \eastwest players, that will appear |
| 269 |
in the bidding diagram. |
| 270 |
|
| 271 |
\item[namesNS\Q{{N-name}{S-name}}]\\ |
| 272 |
Defines the real world names for the \northsouth players, that will appear |
| 273 |
in the bidding diagram. |
| 274 |
|
| 275 |
|
| 276 |
\item[newgame]\\ |
| 277 |
Resets some stored data |
| 278 |
|
| 279 |
\item[NMF]: \NMF |
| 280 |
\item[nmforce\Oarg{*!}]: \nmforce, \nmforce*, \nmforce!, \nmforce*! |
| 281 |
|
| 282 |
\item[none]: \none |
| 283 |
\item[None\Oarg{*!}]: \None, \None*, \None!, \None*! |
| 284 |
|
| 285 |
\item[north]: \north |
| 286 |
\item[North\Oarg{*!}]: \North, \North*, \North!, \North*! |
| 287 |
|
| 288 |
\item[northhand\Q{[v-offset]{Sp}{He}{Di}{Cl}}]\\ |
| 289 |
Defines the cards for the |
| 290 |
\North*!-player. With the optional parameter |v-offset| one can adapt the |
| 291 |
(\emph{vertical}) distance between hand and compass (default \textbf{0pt}). |
| 292 |
The 4 mandatory parameters define the cards for the 4 suits. To denote the |
| 293 |
rank \suit{T}, one has to use the uppercase letter |T|. |
| 294 |
|
| 295 |
\item[northsouth]: \northsouth |
| 296 |
\item[NorthSouth\Oarg{*!}]: \NorthSouth, \NorthSouth*, \NorthSouth!, \NorthSouth*! |
| 297 |
|
| 298 |
\item[nt\Oarg{*!}]: \nt, \nt*, \nt!, \nt*! |
| 299 |
\item[NT]: \NT |
| 300 |
|
| 301 |
\item[onesuitAll\Oarg{*!}\Q{{N}{S}{E}{W}}]\\ |
| 302 |
Typesets the cards of 1 suit for all |
| 303 |
players. The star version centers the output. The token |!| prints a small |
| 304 |
box rather than the compass. The 4 mandatory parameters denote the cards |
| 305 |
for the \North*!-, the \South*!-, the \East*!- and the \West*!-player. |
| 306 |
|
| 307 |
\item[onesuitEW\Oarg{*!}\Q{{E}{W}}]\\ |
| 308 |
Same as |onesuitAll|, but only for the \East*!- and the \West*!-player. |
| 309 |
|
| 310 |
\item[onesuitNE\Oarg{*!}\Q{{N}{E}}]\\ |
| 311 |
Same as |onesuitAll|, but only for the \North*!- and the \East*!-player. |
| 312 |
|
| 313 |
\item[onesuitNS\Oarg{*!}\Q{{N}{S}}]\\ |
| 314 |
Same as |onesuitAll|, but only for the \North*!- and the \South*!-player. |
| 315 |
|
| 316 |
\item[onesuitNW\Oarg{*!}\Q{{N}{W}}]\\ |
| 317 |
Same as |onesuitAll|, but only for the \North*!- and the \West*!-player. |
| 318 |
|
| 319 |
\item[otherfont\Q{{font} }]\\ |
| 320 |
Defines the font for other items. |
| 321 |
|
| 322 |
\item[pass]: \pass |
| 323 |
\item[Pass\Oarg{*!}]: \Pass, \Pass*, \Pass!, \Pass*! |
| 324 |
|
| 325 |
\item[queen]: \queen |
| 326 |
\item[Queen\Oarg{*!}]: \Queen, \Queen*, \Queen!, \Queen*! |
| 327 |
|
| 328 |
\item[redouble]: \redouble |
| 329 |
\item[Redouble\Oarg{*!}]: \Redouble, \Redouble*, \Redouble!, \Redouble*! |
| 330 |
|
| 331 |
\item[resetfonts]\\ |
| 332 |
Sets all fonts back to their default value. |
| 333 |
|
| 334 |
\item[rightlower\Q{[h-offset]{line1}{line2}{line3}}] |
| 335 |
\item[rightupper\Q{[h-offset]{line1}{line2}{line3}}]\\ |
| 336 |
Typesets an annotation of 3 lines in the right lower/upper corner of the |
| 337 |
card diagram. With the optional parameter one can add some extra horizontal |
| 338 |
space between hand and annotation. |
| 339 |
|
| 340 |
\item[setdefaults\Oarg{*}\string{key1=val1,key2=val2,\ldots\string}]\\ |
| 341 |
With the keys |bidder|, |compass|, |game|, |legend|, |name| or |other| one |
| 342 |
can set the default font for the respective items. With the keys |
| 343 |
|compline|, |compmid|, |compshow|, |compsize| or |compturn| on can set the |
| 344 |
look of the compass. With the keys |bidders|, |bidfirst|, |bidline| or |
| 345 |
|bidlong| one can fine-tune the bidding diagram. The keys that can be used |
| 346 |
as package options (|colors|, |err| and |warn|) can also be set here. |
| 347 |
The star form also calls |\resetfonts| which effectuates any font change |
| 348 |
immediately. |
| 349 |
|
| 350 |
\item[SF]: \SF |
| 351 |
\item[sforce\Oarg{*!}]: \sforce, \sforce*, \sforce!, \sforce*! |
| 352 |
|
| 353 |
\item[showAll\Oarg{*+}\Q{[pos]}]\\ |
| 354 |
Typesets a card diagram with 4 (previously |
| 355 |
defined, i.e.\ with |\northhand| etc.) hands. The star version centers the |
| 356 |
output. The token |+| adds a bidding table to the diagram, that has to be |
| 357 |
previously defined, i.e.\ with e.g:\\ |
| 358 |
|\begin{bidding}-|\ldots|\end{bidding}|. The optional parameter |pos| |
| 359 |
(default~\textbf{c}) aligns the diagram. |
| 360 |
|
| 361 |
\DeleteShortVerb{\|} |
| 362 |
\item[showEW\Oarg{*+}\Q{[pos]}(E|W)]\\ |
| 363 |
\MakeShortVerb{\|} |
| 364 |
Same as |\showAll|, but for the \East*!- and the \West*!-hand. |\showEW(E)| |
| 365 |
prints only the \East*!-hand |
| 366 |
|
| 367 |
\item[showNE\Oarg{*+}\Q{[pos]}]\\ |
| 368 |
Same as |\showAll|, but for the \North*!- and the \East*!-hand. |
| 369 |
|
| 370 |
\DeleteShortVerb{\|} |
| 371 |
\item[showNS\Oarg{*+}\Q{[pos]}(N|S)]\\ |
| 372 |
\MakeShortVerb{\|} |
| 373 |
Same as |\showAll|, but for the \North*!- and the \South*!-hand. |\showNS(S)| |
| 374 |
prints only the \South*!-hand |
| 375 |
\item[showNW\Oarg{*+}\Q{[pos]}]\\ |
| 376 |
Same as |\showAll|, but for the \North*!- and the \West*!-hand. |
| 377 |
|
| 378 |
\item[south]: \south |
| 379 |
\item[South\Oarg{*!}]: \South, \South*, \South!, \South*! |
| 380 |
|
| 381 |
\item[southhand\Q{[v-offset]{Sp}{He}{Di}{Cl}}]\\ |
| 382 |
Defines the cards for the |
| 383 |
\South*!-player. With the optional parameter |v-offset| one can adapt the |
| 384 |
(\emph{vertical}) distance between hand and compass (default \textbf{0pt}). |
| 385 |
The 4 mandatory parameters define the cards for the 4 suits. To denote the |
| 386 |
rank \suit{T}, one has to use the uppercase letter |T|. |
| 387 |
|
| 388 |
\item[Sp]: \Sp |
| 389 |
|
| 390 |
\item[suit\Q{[suit symbol]{cards}}]\\ |
| 391 |
Typesets the cards of 1 single suit. |
| 392 |
With the optional parameter one can add a suit symbol (e.g.\ \He) in front |
| 393 |
of the cards. The mandatory parameter defines the cards for the suit. To |
| 394 |
denote the rank \suit{T}, one has to use the letter |T|. |
| 395 |
|
| 396 |
\item[TP]: \TP |
| 397 |
\item[tpts\Oarg{*!}]: \tpts, \tpts*, \tpts!, \tpts*! |
| 398 |
|
| 399 |
\item[TSF]: \TSF |
| 400 |
\item[tsforce\Oarg{*!}]: \tsforce, \tsforce*, \tsforce!, \tsforce*! |
| 401 |
|
| 402 |
\item[vulner\Q{[text]}]\\ |
| 403 |
Typeset the user-defined vulnerability. With the optional parameter one can |
| 404 |
define the vulnerability. |
| 405 |
|
| 406 |
\item[vulnertext\Q{[text]}]\\ |
| 407 |
Typeset the defined value for the |\vulner|, e.g.\ |
| 408 |
\mbox{\vulnertext[\NorthSouth*]}. With the optional parameter one can |
| 409 |
define the |text| to be printed \emph{as is}. |
| 410 |
|
| 411 |
\item[west]: \west |
| 412 |
\item[West\Oarg{*!}]: \West, \West*, \West!, \West*! |
| 413 |
|
| 414 |
\item[westhand\Q{[h-offset]{Sp}{He}{Di}{Cl}}]\\ |
| 415 |
Defines the cards for the |
| 416 |
\West*!-player. With the optional parameter |h-offset| one can adapt the |
| 417 |
(\emph{horizontal}) distance between hand and compass (default |
| 418 |
\textbf{0pt}). The 4 mandatory parameters define the cards for the 4 suits. |
| 419 |
To denote the rank \suit{T}, one has to use the uppercase letter |T|. |
| 420 |
|
| 421 |
\olditem[\string\begin\string{bidding\string}\Oarg{*!-}\Q{[pos](description)}\ldots\string\end\string{bidding\string}]~\\ |
| 422 |
Typesets a bidding diagram. The star version centers the output. The |
| 423 |
token~|!| forces a short form (\North*!) rather than the long form |
| 424 |
(\North*) in the table header. The token~|-| suppresses all output, but the |
| 425 |
saved data can be used elsewhere. The optional paramater |pos| (default |
| 426 |
\textbf{c}) controls the alignment of the diagram. With the 2nd optional |
| 427 |
parameter |description| one can add annotations (see also |\markit| and |
| 428 |
|\explainit|) below the diagram. The bids in the bidding can both be |
| 429 |
shorthands like |3S| as well as |3\Sp|. The same goes for calls: both |p| |
| 430 |
and |\pass| are possible. For an overview of all possible shorthands, refer |
| 431 |
to the last page of this document. |
| 432 |
\par |
| 433 |
The command |\setdefaults| has some keys to fine tune the |
| 434 |
look of the bidding diagram. If the real world names of the players are |
| 435 |
defined (e.g.\ with |\namesNS|, then they also appear in the table header. |
| 436 |
|
| 437 |
\olditem[\string\begin\string{biddingpair\string}\Oarg{*!-}\Q{[pos](description)}\ldots\string\end\string{biddingpair\string}]~\\ |
| 438 |
Same as environment |bidding| but with only 2 columns. |
| 439 |
|
| 440 |
\olditem[\string\begin\string{play\string}\Oarg{*}\Q{{lead}[trump]}\ldots\string\end\string{play\string}]~\\ |
| 441 |
Typesets a diagram with the playing tricks. The star version centers the |
| 442 |
output. The mandatory parameter defines the player who had the opening |
| 443 |
lead. The optional parameter defines the trump suit, the default is \NT. |
| 444 |
This environment produces a table with 8 columns: the running number; the |
| 445 |
player who had had the lead; the 4 cards played in this trick and finally |
| 446 |
the 2 columns that show how many tricks \northsouth{} and \eastwest{} have |
| 447 |
won so far. The user has only to enter the 4 colums that denote the 4 cards |
| 448 |
played in each trick. The rest is handled by \OneDown. |
| 449 |
% |
| 450 |
\end{description} |
| 451 |
% |
| 452 |
% reset \item |
| 453 |
%\fi |
| 454 |
\let\item\olditem |
| 455 |
% |
| 456 |
\newpage |
| 457 |
\centerline{\larger\textbf{Shorthands/Specials in bidding diagrams}} |
| 458 |
\par\vspace{1\baselineskip}\noindent |
| 459 |
% |
| 460 |
\begin{minipage}{6cm} |
| 461 |
\begin{verbatim} |
| 462 |
\begin{bidding} |
| 463 |
p & X & R & P \\ |
| 464 |
\end{bidding} |
| 465 |
\end{verbatim} |
| 466 |
\end{minipage} |
| 467 |
% |
| 468 |
\begin{minipage}{7cm} |
| 469 |
\begin{bidding} |
| 470 |
p & X & R & P \\ |
| 471 |
\end{bidding} |
| 472 |
\end{minipage} |
| 473 |
% |
| 474 |
\\[1\baselineskip] |
| 475 |
% |
| 476 |
\begin{minipage}{6cm} |
| 477 |
\begin{verbatim} |
| 478 |
\setdefaults{bidlong=off} |
| 479 |
\begin{bidding} |
| 480 |
p & X & R & P \\ |
| 481 |
{\frame{2H}} & |
| 482 |
{\frame{2\He}} & |
| 483 |
{\textit{R}} & |
| 484 |
{\textit{\redouble}} \\ |
| 485 |
\end{bidding} |
| 486 |
\end{verbatim} |
| 487 |
\end{minipage} |
| 488 |
% |
| 489 |
\begin{minipage}{6cm} |
| 490 |
\setdefaults{bidlong=off} |
| 491 |
\begin{bidding} |
| 492 |
p & X & R & P \\ |
| 493 |
{\frame{2H}} & {\frame{2\He}} & {\textit{R}} & {\textit{\redouble}} \\ |
| 494 |
\end{bidding} |
| 495 |
\end{minipage} |
| 496 |
% |
| 497 |
\\[1\baselineskip] |
| 498 |
% |
| 499 |
\centerline{\larger\textbf{Macros in bidding diagrams}} |
| 500 |
\par\vspace{0.3\baselineskip}\noindent |
| 501 |
These macros, called in a bidding table\ldots |
| 502 |
\par\vspace{0.5\baselineskip}\noindent |
| 503 |
% |
| 504 |
\begin{verbatim} |
| 505 |
\begin{bidding} |
| 506 |
1 \Pass & \Double & \Redouble & \Allpass \\ |
| 507 |
2 \Pass* & \Double* & \Redouble* & \Allpass* \\ |
| 508 |
3 \Pass! & \Double! & \Redouble! & \Allpass! \\ |
| 509 |
4 \Pass*! & \Double*! & \Redouble*! & \Allpass*! \\ |
| 510 |
5 \pass & \double & \redouble & \allpass \\ |
| 511 |
6 {\Pass*} & {\Double*} & {\Redouble*} & {\Allpass*} \\ |
| 512 |
7 {\Pass!} & {\Double!} & {\Redouble!} & {\Allpass!} \\ |
| 513 |
8 {\Pass*!} & {\Double*!} & {\Redouble*!} & {\Allpass*!} \\ |
| 514 |
9 {\pass} & {\double} & {\redouble} & {\allpass} \\ |
| 515 |
\end{bidding} |
| 516 |
\end{verbatim} |
| 517 |
% |
| 518 |
|
| 519 |
\ldots produce this output. Please note that line 2--5 are peculiar. |
| 520 |
\par\vspace{0.3\baselineskip}\noindent |
| 521 |
\begin{tabular}{lBBBB} |
| 522 |
& {\west} & {\north} & {\east} & {\south} \\ |
| 523 |
1 & \Pass & \Double & \Redouble & \Allpass \\ |
| 524 |
2 & \Pass* & \Double* & \Redouble* & \Allpass* \\ |
| 525 |
3 & \Pass! & \Double! & \Redouble! & \Allpass! \\ |
| 526 |
4 & \Pass*! & \Double*! & \Redouble*! & \Allpass*! \\ |
| 527 |
5 & \pass & \double & \redouble & \allpass \\ |
| 528 |
6 & {\Pass*} & {\Double*} & {\Redouble*} & {\Allpass*} \\ |
| 529 |
7 & {\Pass!} & {\Double!} & {\Redouble!} & {\Allpass!} \\ |
| 530 |
8 & {\Pass*!} & {\Double*!} & {\Redouble*!} & {\Allpass*!} \\ |
| 531 |
9 & {\pass} & {\double} & {\redouble} & {\allpass} \\ |
| 532 |
\end{tabular}\\ |
| 533 |
|
| 534 |
\end{document} |
| 535 |
\endinput |
| 536 |
|