texlive[49053] Master/texmf-dist: onedown (2nov18)

commits+karl at tug.org commits+karl at tug.org
Fri Nov 2 21:53:02 CET 2018


Revision: 49053
          http://tug.org/svn/texlive?view=revision&revision=49053
Author:   karl
Date:     2018-11-02 21:53:02 +0100 (Fri, 02 Nov 2018)
Log Message:
-----------
onedown (2nov18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/onedown/README
    trunk/Master/texmf-dist/doc/latex/onedown/examples/Bidding.tex
    trunk/Master/texmf-dist/doc/latex/onedown/examples/bidEW.tex
    trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.pdf
    trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.tex
    trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.pdf
    trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.tex
    trunk/Master/texmf-dist/doc/latex/onedown/onedown.pdf
    trunk/Master/texmf-dist/source/latex/onedown/onedown.dtx
    trunk/Master/texmf-dist/tex/latex/onedown/onedown.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/onedown/examples/Select-Hands.tex

Modified: trunk/Master/texmf-dist/doc/latex/onedown/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/README	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/doc/latex/onedown/README	2018-11-02 20:53:02 UTC (rev 49053)
@@ -1,5 +1,5 @@
 --------------------------------------------------------------------------
-The OneDown package v1.0 - 2018/05/23
+The OneDown package v1.2 - 2018/10/31
 A package to typeset diagrams for the game of bridge
 
 --------------------------------------------------------------------------

Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/Bidding.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/examples/Bidding.tex	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/doc/latex/onedown/examples/Bidding.tex	2018-11-02 20:53:02 UTC (rev 49053)
@@ -14,9 +14,14 @@
 In the second diagram we use the short form of the non-bid calls, by
 calling |\setdefaults{bidlong=off}|.
 The alignment is \textbf{t} and we have put \north in the first column.
+Please observe that the change to |bidfirst=N| is made local by the
+surrounding |{...}|
 
 In the third diagram we also use the short form for the table header by
 calling the bidding table with the token |!|. The alignment is \textbf{b}.
+
+In the first example we also added an |\alert| and an |\announce|, just to
+show their layout.
 \vfill
 %
 \begin{HBox}{{bidding, alignment and long/short forms}\hfill File: \FileName}
@@ -23,13 +28,14 @@
 %\gamefont{\smaller\smaller}
 A
 \begin{bidding}% default= [c]
-1\Cl & 1D & 1H & 1S \\
-1N & X  & p  & p \\
-R  & P   \\
+1\Cl\announce & 1D & 1H & 1S\alert \\
+1N            & X  & p  & p \\
+R             & P   \\
 \end{bidding}
 B
 \\[2\baselineskip]
 A
+{
 \setdefaults{bidlong=off,bidfirst=N}
 \begin{bidding}[t]
 1C & 1D & 1H & 1S \\
@@ -36,10 +42,10 @@
 1N & X  & p  & p \\
 R  & P \\
 \end{bidding}
-B
+}B
 \\[2\baselineskip]
 A
-\setdefaults{bidlong=off}
+%\setdefaults{bidlong=off}
 \begin{bidding}![b]
 1C & 1D & 1H & 1S \\
 1N & X  & p  & p \\

Added: trunk/Master/texmf-dist/doc/latex/onedown/examples/Select-Hands.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/examples/Select-Hands.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/onedown/examples/Select-Hands.tex	2018-11-02 20:53:02 UTC (rev 49053)
@@ -0,0 +1,56 @@
+\documentclass[onedown-examples]{subfiles}
+
+\begin{document}
+\vfill
+Both the |\showNS| and |\showEW| have and extra optional parameter that
+controls which of the two hands will be printed and suppresses the other
+hand.
+\vfill
+\begin{HBox}{Select only one hand\hfill File: \FileName}
+\northhand{AK43}{AQJ83}{AJ98}{-}
+\southhand{87}{T5}{QT5}{K98654}
+\easthand{JT6}{764}{K43}{JT32}
+\westhand{Q952}{K92}{762}{AQ7}
+A \showNS(N) \quad B \showNS(S)
+
+C \showEW(E) \quad D \showEW(W)
+
+\end{HBox}
+\vfill
+The same, but here the compass is suppressed, showing only the selected hand
+\vfill
+\begin{HBox}{{Only hand, compass suppressed}\hfill File: \FileName}
+\setdefaults{compshow=off}
+\northhand{AK43}{AQJ83}{AJ98}{-}
+\southhand{87}{T5}{QT5}{K98654}
+\easthand{JT6}{764}{K43}{JT32}
+\westhand{Q952}{K92}{762}{AQ7}
+A \showNS(N) \quad B \showNS(S)
+
+C \showEW(E) \quad D \showEW(W)
+
+\end{HBox}
+
+\begin{HBox}{{Only \North*!-hands}\hfill File: \FileName}
+\newgame
+\setdefaults{compshow=on}
+\northhand{AK43}{AQJ83}{AJ98}{-} \showNS(N) 
+\northhand{87}{T5}{QT5}{K98654}  \showNS(N)\quad 
+\northhand{JT6}{764}{K43}{JT32}  \showNS(N) 
+\northhand{Q952}{K92}{762}{AQ7}  \showNS(N) 
+\end{HBox}
+
+\begin{HBox}{{Only \North*!-hands, compass suppressed}\hfill File:
+\FileName}
+\newgame
+\setdefaults{compshow=off}
+\northhand{AK43}{AQJ83}{AJ98}{-} \showNS(N) 
+\northhand{87}{T5}{QT5}{K98654}  \showNS(N)\quad
+\northhand{JT6}{764}{K43}{JT32}  \showNS(N)
+\northhand{Q952}{K92}{762}{AQ7}  \showNS(N)
+\end{HBox}
+
+\end{document}
+\endinput
+
+


Property changes on: trunk/Master/texmf-dist/doc/latex/onedown/examples/Select-Hands.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/bidEW.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/examples/bidEW.tex	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/doc/latex/onedown/examples/bidEW.tex	2018-11-02 20:53:02 UTC (rev 49053)
@@ -21,7 +21,7 @@
 \southhand{AQT95}{A52}{864}{K6}
 \easthand{63}{J764}{KQT9}{953}
 \westhand{74}{T83}{A7532}{742}
-\setdefaults{bidfirst=S,bidlong=off}
+\setdefaults{bidfirst=S}
 \begin{biddingpair}!-(\explainit{splinter}
   \explainit{control})
 1S        & 4D\markit \\

Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.tex	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-examples.tex	2018-11-02 20:53:02 UTC (rev 49053)
@@ -155,6 +155,7 @@
 \SubFile{showNS-warn-II}
 \SubFile{showNS-align}
 \SubFile{showAll}
+\SubFile{Select-Hands}
 \SubFile{Bidding}
 \SubFile{bidAll}
 \SubFile{bidNS}

Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.tex	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/doc/latex/onedown/examples/onedown-ref.tex	2018-11-02 20:53:02 UTC (rev 49053)
@@ -17,29 +17,11 @@
 \renewcommand\item[1][\relax]{\olditem\textbf{\bs#1}}
 %\def\Item{\olditem[\bs]}
 %
+\definecolor{optbackgr}{named}{lightgray}
+\newcommand\Oarg[1]{\colorbox{optbackgr}{\texttt{#1}}}
+
 \begin{document}
-\iffalse
-Word1 \onesuitEW{K98}{A65} word2
-%
-\onesuitNE{K}{A65} word3
-%
-\onesuitNS{K98}{A65} word4
-%
-\onesuitNW{K98}{A65} word5
 
-Word1 \onesuitEW!{K98}{A65} word2
-%
-\onesuitNE!{K98}{A65} word3
-%
-\onesuitNS!{K98}{A65} word4
-%
-\onesuitNW!{K98}{A65} word5
-
-Word1 \onesuitAll{K}{A}{QT7}{J432} word2
-%
-\onesuitAll!{K98}{A65}{QT7}{J432} word3
-\fi
-
 \larger
 \newgeometry{total={150mm, 265mm},left=25mm,top=15mm}
 \pagestyle{empty}
@@ -50,23 +32,25 @@
 order. If we only show the ouput that a command produces, then this output
 is shown directly behind the command on the same line. If a description of
 the command is given, then this description starts on a new line. Optional
-parameters of a command (including tokens) appear in brackets
-|[...]|. Output of a tokenized |\macro*!| is shown as:
-\qquad|\macro[*!]: \macro, \macro*, \macro!, \macro*!|\\
+parameters of a command appear in brackets |[...]|, parenthesis |(...)| or
+angles |<...>|. Optional tokens of a command appear with a different
+background color, like \Oarg{*!}. Output of a tokenized |\macro*!| is shown
+as:
+\quad|\macro|\Oarg{*!}|: \macro, \macro*, \macro!, \macro*!|\\
 All output is shown for the English language.
 
 \begin{description}[itemsep=-0.3em]
 \item[ace]: \ace
-\item[Ace\Q{[*!]}]: \Ace, \Ace*, \Ace!, \Ace*!
+\item[Ace\Oarg{*!}]: \Ace, \Ace*, \Ace!, \Ace*!
 
 \item[alert]: |2\NT\alert| typesets 2\NT\alert and |2\Cl\alert| typesets
 2\Cl\alert
 
 \item[all]: \all
-\item[All\Q{[*!]}]: \All, \All*, \All!, \All*! 
+\item[All\Oarg{*!}]: \All, \All*, \All!, \All*! 
 
 \item[allpass]: \allpass 
-\item[Allpass\Q{[*!]}]: \Allpass, \Allpass*, \Allpass!, \Allpass*! 
+\item[Allpass\Oarg{*!}]: \Allpass, \Allpass*, \Allpass!, \Allpass*! 
 
 \item[announce]: |2\He\announce| typesets 2\He\announce
 
@@ -77,7 +61,7 @@
 or |\sffamily\scalefont{3}|.
 
 \item[board]: \board
-\item[Board\Q{[*!]}]: \Board, \Board*, \Board!, \Board*! 
+\item[Board\Oarg{*!}]: \Board, \Board*, \Board!, \Board*! 
 
 \item[boardnr\Q{{Nr} }]\\
 Calculates (and stores) the dealership and vulnerability if |Nr|
@@ -84,7 +68,7 @@
 is a number. If it is just a text it is stored to be used instead of a
 board number.
 
-\item[boardtext\Q{[*]}]\\
+\item[boardtext\Oarg{*}]\\
 Typesets the value that is stored with |\boardnr|.
 The star version writes the text \textbf{\boardtext*} in front of it.
 
@@ -96,10 +80,10 @@
 Defines the font for the compass.
 
 \item[contract]: \contract
-\item[Contract\Q{[*!]}]: \Contract, \Contract*, \Contract!, \Contract*!
+\item[Contract\Oarg{*!}]: \Contract, \Contract*, \Contract!, \Contract*!
 
 \item[deal]: \deal
-\item[Deal\Q{[*!]}]: \Deal, \Deal*, \Deal!, \Deal*! 
+\item[Deal\Oarg{*!}]: \Deal, \Deal*, \Deal!, \Deal*! 
 
 \item[dealer\Q{[text]}]\\
 Typeset the defined dealer. With the optional
@@ -111,18 +95,18 @@
 the |text| to be printed \emph{as is}.
 
 \item[declarer]: \declarer
-\item[Declarer\Q{[*!]}]: \Declarer, \Declarer*, \Declarer!, \Declarer*! 
+\item[Declarer\Oarg{*!}]: \Declarer, \Declarer*, \Declarer!, \Declarer*! 
 
 \item[Di]: \Di
 
 \item[double]: \double
-\item[Double\Q{[*!]}]: \Double, \Double*, \Double!, \Double*!
+\item[Double\Oarg{*!}]: \Double, \Double*, \Double!, \Double*!
 
 \item[DP]: \DP
-\item[dpts\Q{[*!]}]: \dpts, \dpts*, \dpts!, \dpts*!
+\item[dpts\Oarg{*!}]: \dpts, \dpts*, \dpts!, \dpts*!
 
 \item[east]: \east
-\item[East\Q{[*!]}]: \East, \East*, \East!, \East*!
+\item[East\Oarg{*!}]: \East, \East*, \East!, \East*!
 
 \item[easthand\Q{[h-offset]{Sp}{He}{Di}{Cl}}]\\
 Defines the cards for the
@@ -129,12 +113,12 @@
 \East*!-player. With the optional parameter |h-offset| one can adapt the
 (\emph{horizontal}) distance between hand and compass (default
 \textbf{0pt}). The 4 mandatory parameters define the cards for the 4 suits.
-To denote the rank \suit{T}, one has to use uppercase letter |T|.
+To denote the rank \suit{T}, one has to use the uppercase letter |T|.
 
 \item[eastwest]: \eastwest
-\item[Eastwest\Q{[*!]}]: \EastWest, \EastWest*, \EastWest!, \EastWest*!
+\item[Eastwest\Oarg{*!}]: \EastWest, \EastWest*, \EastWest!, \EastWest*!
 
-\item[expertquiz\Q{[*!][comment]{award}}]\\
+\item[expertquiz\Oarg{*!}\Q{[comment]}{award}]\\
 Typesets a quiz, showing a
 predefined hand and a predefined bidding diagram. The star version centers
 the output. The token |!| forces a newline between hand and bidding
@@ -148,15 +132,15 @@
 Typeset the text below the card diagram.
 
 \item[FSF]: \FSF
-\item[fsforce\Q{[*!]}]: \fsforce, \fsforce*, \fsforce!, \fsforce*!
+\item[fsforce\Oarg{*!}]: \fsforce, \fsforce*, \fsforce!, \fsforce*!
 
 \item[gamefont\Q{{font} }]\\
 Defines the font for card diagrams, hands and suits.
 
 \item[GF]: \GF
-\item[gforce\Q{[*!]}]: \gforce, \gforce*, \gforce!, \gforce*!
+\item[gforce\Oarg{*!}]: \gforce, \gforce*, \gforce!, \gforce*!
 
-\item[hand\Q{[*!-][pos]{Sp}{He}{Di}{Cl}}]\\
+\item[hand\Oarg{*!-}\Q{[pos]{Sp}{He}{Di}{Cl}}]\\
 Typesets the cards of 1 single hand,
 normally horizontally, left aligned. The star version centers the output.
 The token |!| typesets the hand vertically, left aligned. With both |*!|
@@ -165,7 +149,7 @@
 The third token |-| suppresses all output, which is then only saved for
 later use (in e.g.\ |\expertquiz|). The 4
 mandatory parameters define the cards for the 4 suits. To denote the rank
-\suit{T}, one has to use uppercase letter |T|.
+\suit{T}, one has to use the uppercase letter |T|.
 
 \item[handskip\Q{{length description} }]\\
 Adds |length| to the distance (default |1em|) between the rightmost hand
@@ -178,16 +162,16 @@
 
 \item[He]: \He
 
-\item[hpts\Q{[*!]}]: \hpts, \hpts*, \hpts!, \hpts*!
+\item[hpts\Oarg{*!}]: \hpts, \hpts*, \hpts!, \hpts*!
 
 \item[jack]: \jack
-\item[Jack\Q{[*!]}]: \Jack. \Jack*, \Jack!, \Jack*!
+\item[Jack\Oarg{*!}]: \Jack. \Jack*, \Jack!, \Jack*!
  
 \item[king]: \king
-\item[King\Q{[*!]}]: \King, \King*, \King!, \King*!
+\item[King\Oarg{*!}]: \King, \King*, \King!, \King*!
 
 \item[lead]: \lead
-\item[Lead\Q{[*!]}]: \Lead, \Lead*, \Lead!, \Lead*!
+\item[Lead\Oarg{*!}]: \Lead, \Lead*, \Lead!, \Lead*!
 
 \item[leftlower\Q{[h-offset]{line1}{line2}{line3}}]
 
@@ -200,7 +184,7 @@
 Defines the font for annotations in card diagrams.
 
 \item[LP]: \LP
-\item[lpts\Q{[*!]}]: \lpts, \lpts*, \lpts!, \lpts*!
+\item[lpts\Oarg{*!}]: \lpts, \lpts*, \lpts!, \lpts*!
 
 \item[markit]\\
 sets a footnote-like marker in a bidding diagram.
@@ -221,13 +205,13 @@
 Resets some stored data 
 
 \item[NMF]: \NMF
-\item[nmforce\Q{[*!]}]: \nmforce, \nmforce*, \nmforce!, \nmforce*!
+\item[nmforce\Oarg{*!}]: \nmforce, \nmforce*, \nmforce!, \nmforce*!
 
 \item[none]: \none
-\item[None\Q{[*!]}]: \None, \None*, \None!, \None*! 
+\item[None\Oarg{*!}]: \None, \None*, \None!, \None*! 
 
 \item[north]: \north 
-\item[North\Q{[*!]}]: \North, \North*, \North!, \North*! 
+\item[North\Oarg{*!}]: \North, \North*, \North!, \North*! 
 
 \item[northhand\Q{[v-offset]{Sp}{He}{Di}{Cl}}]\\
 Defines the cards for the
@@ -234,30 +218,30 @@
 \North*!-player. With the optional parameter |v-offset| one can adapt the
 (\emph{vertical}) distance between hand and compass (default \textbf{0pt}).
 The 4 mandatory parameters define the cards for the 4 suits. To denote the
-rank \suit{T}, one has to use uppercase letter |T|.
+rank \suit{T}, one has to use the uppercase letter |T|.
 
 \item[northsouth]: \northsouth 
-\item[NorthSouth\Q{[*!]}]: \NorthSouth, \NorthSouth*, \NorthSouth!, \NorthSouth*! 
+\item[NorthSouth\Oarg{*!}]: \NorthSouth, \NorthSouth*, \NorthSouth!, \NorthSouth*! 
 
-\item[nt\Q{[*!]}]: \nt, \nt*, \nt!, \nt*! 
+\item[nt\Oarg{*!}]: \nt, \nt*, \nt!, \nt*! 
 \item[NT]: \NT 
 
-\item[onesuitAll\Q{[*!]{N}{S}{E}{W}}]\\
+\item[onesuitAll\Oarg{*!}\Q{{N}{S}{E}{W}}]\\
 Typesets the cards of 1 suit for all
 players. The star version centers the output. The token |!| prints a small
 box rather than the compass. The 4 mandatory parameters denote the cards
 for the \North*!-, the \South*!-, the \East*!- and the \West*!-player.
 
-\item[onesuitEW\Q{[*!]{E}{W}}]\\
+\item[onesuitEW\Oarg{*!}\Q{{E}{W}}]\\
 Same as |onesuitAll|, but only for the \East*!- and the \West*!-player.
 
-\item[onesuitNE\Q{[*!]{N}{E}}]\\
+\item[onesuitNE\Oarg{*!}\Q{{N}{E}}]\\
 Same as |onesuitAll|, but only for the \North*!- and the \East*!-player.
 
-\item[onesuitNS\Q{[*!]{N}{S}}]\\
+\item[onesuitNS\Oarg{*!}\Q{{N}{S}}]\\
 Same as |onesuitAll|, but only for the \North*!- and the \South*!-player.
 
-\item[onesuitNW\Q{[*!]{N}{W}}]\\
+\item[onesuitNW\Oarg{*!}\Q{{N}{W}}]\\
 Same as |onesuitAll|, but only for the \North*!- and the \West*!-player.
 
 \item[otherfont\Q{{font} }]\\
@@ -264,13 +248,13 @@
 Defines the font for other items.
 
 \item[pass]: \pass 
-\item[Pass\Q{[*!]}]: \Pass, \Pass*, \Pass!, \Pass*! 
+\item[Pass\Oarg{*!}]: \Pass, \Pass*, \Pass!, \Pass*! 
 
 \item[queen]: \queen
-\item[Queen\Q{[*!]}]: \Queen, \Queen*, \Queen!, \Queen*!
+\item[Queen\Oarg{*!}]: \Queen, \Queen*, \Queen!, \Queen*!
 
 \item[redouble]: \redouble 
-\item[Redouble\Q{[*!]}]: \Redouble, \Redouble*, \Redouble!, \Redouble*! 
+\item[Redouble\Oarg{*!}]: \Redouble, \Redouble*, \Redouble!, \Redouble*! 
 
 \item[resetfonts]\\
 Sets all fonts back to their default value.
@@ -281,19 +265,20 @@
 card diagram. With the optional parameter one can add some extra horizontal
 space between hand and annotation.
 
-\item[setdefaults\Q{[*]}\string{key1=val1,key2=val2,\ldots\string}]\\
-With the key |bidder|, |compass|, |game|, |legend|, |name| or |other| one
-can set the default font for the respective items. With the key |compline|,
-|compshow|, |compsize| or |compturn| on can set the look of the compass.
-With the key |bidders|
-|bidfirst|, |bidline| or |bidlong| one can fine-tune the bidding diagram.
+\item[setdefaults\Oarg{*}\string{key1=val1,key2=val2,\ldots\string}]\\
+With the keys |bidder|, |compass|, |game|, |legend|, |name| or |other| one
+can set the default font for the respective items. With the keys
+|compline|, |compmid|, |compshow|, |compsize| or |compturn| on can set the
+look of the compass. With the keys |bidders|, |bidfirst|, |bidline| or
+|bidlong| one can fine-tune the bidding diagram. The keys that can be used
+as package options (|colors|, |err| and |warn|) can also be set here.
 The star form also calls |\resetfonts| which effectuates any font change
 immediately.
 
 \item[SF]: \SF
-\item[sforce\Q{[*!]}]: \sforce, \sforce*, \sforce!, \sforce*!
+\item[sforce\Oarg{*!}]: \sforce, \sforce*, \sforce!, \sforce*!
 
-\item[showAll\Q{[*+][pos]}]\\
+\item[showAll\Oarg{*+}\Q{[pos]}]\\
 Typesets a card diagram with 4 (previously
 defined, i.e.\ with |\northhand| etc.) hands. The star version centers the
 output. The token |+| adds a bidding table to the diagram, that has to be
@@ -301,20 +286,25 @@
 |\begin{bidding}-|\ldots|\end{bidding}|. The optional parameter |pos|
 (default~\textbf{c}) aligns the diagram.
 
-\item[showEW\Q{[*+][pos]}]\\
-Same as showAll, but for the \East*!- and the \West*!-hand.
+\DeleteShortVerb{\|}
+\item[showEW\Oarg{*+}\Q{[pos]}(E|W)]\\
+\MakeShortVerb{\|}
+Same as |\showAll|, but for the \East*!- and the \West*!-hand. |\showEW(E)|
+prints only the \East*!-hand
 
-\item[showNE\Q{[*+][pos]}]\\
-Same as showAll, but for the \North*!- and the \East*!-hand.
+\item[showNE\Oarg{*+}\Q{[pos]}]\\
+Same as |\showAll|, but for the \North*!- and the \East*!-hand.
 
-\item[showNS\Q{[*+][pos]}]\\
-Same as showAll, but for the \North*!- and the \South*!-hand.
+\DeleteShortVerb{\|}
+\item[showNS\Oarg{*+}\Q{[pos]}(N|S)]\\
+\MakeShortVerb{\|}
+Same as |\showAll|, but for the \North*!- and the \South*!-hand. |\showNS(S)|
+prints only the \South*!-hand
+\item[showNW\Oarg{*+}\Q{[pos]}]\\
+Same as |\showAll|, but for the \North*!- and the \West*!-hand.
 
-\item[showNW\Q{[*+][pos]}]\\
-Same as showAll, but for the \North*!- and the \West*!-hand.
-
 \item[south]: \south
-\item[South\Q{[*!]}]: \South, \South*, \South!, \South*!
+\item[South\Oarg{*!}]: \South, \South*, \South!, \South*!
 
 \item[southhand\Q{[v-offset]{Sp}{He}{Di}{Cl}}]\\
 Defines the cards for the
@@ -321,7 +311,7 @@
 \South*!-player. With the optional parameter |v-offset| one can adapt the
 (\emph{vertical}) distance between hand and compass (default \textbf{0pt}).
 The 4 mandatory parameters define the cards for the 4 suits. To denote the
-rank \suit{T}, one has to use uppercase letter |T|.
+rank \suit{T}, one has to use the uppercase letter |T|.
 
 \item[Sp]: \Sp
 
@@ -332,10 +322,10 @@
 denote the rank \suit{T}, one has to use the letter |T|.
 
 \item[TP]: \TP
-\item[tpts\Q{[*!]}]: \tpts, \tpts*, \tpts!, \tpts*!
+\item[tpts\Oarg{*!}]: \tpts, \tpts*, \tpts!, \tpts*!
 
 \item[TSF]: \TSF
-\item[tsforce\Q{[*!]}]: \tsforce, \tsforce*, \tsforce!, \tsforce*!
+\item[tsforce\Oarg{*!}]: \tsforce, \tsforce*, \tsforce!, \tsforce*!
 
 \item[vulner\Q{[text]}]\\
 Typeset the user-defined vulnerability. With the optional parameter one can
@@ -347,7 +337,7 @@
 define the |text| to be printed \emph{as is}.
 
 \item[west]: \west 
-\item[West\Q{[*!]}]: \West, \West*, \West!, \West*! 
+\item[West\Oarg{*!}]: \West, \West*, \West!, \West*! 
 
 \item[westhand\Q{[h-offset]{Sp}{He}{Di}{Cl}}]\\
 Defines the cards for the
@@ -354,9 +344,9 @@
 \West*!-player. With the optional parameter |h-offset| one can adapt the
 (\emph{horizontal}) distance between hand and compass (default
 \textbf{0pt}). The 4 mandatory parameters define the cards for the 4 suits.
-To denote the rank \suit{T}, one has to use uppercase letter |T|.
+To denote the rank \suit{T}, one has to use the uppercase letter |T|.
 
-\olditem[\string\begin\string{bidding\string}\Q{[*!-][pos](description)}\ldots\string\end\string{bidding\string}]~\\
+\olditem[\string\begin\string{bidding\string}\Oarg{*!-}\Q{[pos](description)}\ldots\string\end\string{bidding\string}]~\\
 Typesets a bidding diagram. The star version centers the output. The
 token~|!| forces a short form (\North*!) rather than the long form
 (\North*) in the table header. The token~|-| suppresses all output, but the
@@ -372,10 +362,10 @@
 look of the bidding diagram. If the real world names of the players are
 defined (e.g.\ with |\namesNS|, then they also appear in the table header.
 
-\olditem[\string\begin\string{biddingpair\string}\Q{[*!-][pos](description)}\ldots\string\end\string{biddingpair\string}]~\\
+\olditem[\string\begin\string{biddingpair\string}\Oarg{*!-}\Q{[pos](description)}\ldots\string\end\string{biddingpair\string}]~\\
 Same as environment |bidding| but with only 2 columns.
 
-\olditem[\string\begin\string{play\string}\Q{[*]{lead}[trump]}\ldots\string\end\string{play\string}]~\\
+\olditem[\string\begin\string{play\string}\Oarg{*}\Q{{lead}[trump]}\ldots\string\end\string{play\string}]~\\
 Typesets a diagram with the playing tricks. The star version centers the
 output. The mandatory parameter defines the player who had the opening
 lead. The optional parameter defines the trump suit, the default is \NT.

Modified: trunk/Master/texmf-dist/doc/latex/onedown/onedown.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/onedown/onedown.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/onedown/onedown.dtx	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/source/latex/onedown/onedown.dtx	2018-11-02 20:53:02 UTC (rev 49053)
@@ -24,7 +24,7 @@
 \ProvidesFile{onedown.dtx}
 %</driver>
 %<package>\NeedsTeXFormat{LaTeX2e}[2014/05/01]
-%<package>\def\ODwstyleversion{1.1}\def\ODwstyledate{2018/09/23}
+%<package>\def\ODwstyleversion{1.2}\def\ODwstyledate{2018/10/31}
 %<package>\ProvidesPackage{onedown}
 %<package> [\ODwstyledate\space v\ODwstyleversion\space 
 %<package> Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2018]
@@ -37,7 +37,7 @@
 %
 \usepackage[T1]{fontenc}
 \usepackage[german,dutch,french,swedish,english,shorthands=]{babel}
-\usepackage{onedown}[2018/09/23]
+\usepackage{onedown}[2018/10/31]
 \usepackage[normalem]{ulem}%   for strikeout todos that are done
 \usepackage{needspace}%        keep contiguous lines on one page
 \usepackage[inline]{enumitem}% Control various parameters of lists
@@ -62,13 +62,15 @@
 
 \AtBeginDocument{%
 \ifNoColor
-  \setdefaults{colors=1}
+  \setdefaults{colors=b+w}
   \hypersetup{linkcolor=black,urlcolor=black}
   \def\ODwcolor{black}
   \definecolor{defbackgr}{rgb}{1,1,1}
+  \definecolor{optbackgr}{named}{lightgray}
 \else
   \def\ODwcolor{red}
   \definecolor{defbackgr}{rgb}{1,1,0.75}
+  \definecolor{optbackgr}{named}{lime}
 \fi
 }%
 %
@@ -75,7 +77,8 @@
 \newlength\defwidth
 %
 % We need to typeset optional args without \meta too!
-\newcommand\Oarg[1]{{\ttfamily[}#1{\ttfamily]}}
+%\newcommand\Oarg[1]{{\ttfamily[}#1{\ttfamily]}}
+\newcommand\Oarg[1]{\colorbox{optbackgr}{\textbf{#1}}}
 %
 \NewDocumentCommand\MacroDef{st+mO{}}{%
 % \MacroDef* + {macroname}[args]
@@ -206,8 +209,8 @@
 %</driver>
 % \fi
 %
-% ^^A \CheckSum{3693}
-% \CheckSum{3693}
+% ^^A \CheckSum{3733}
+% \CheckSum{3723}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -235,82 +238,126 @@
 %
 % ^^A We are onedown now with new versioning!
 %
-% \changes{v0.1}{2018/01/28}{Reorganized the bzr versioning. bzr will
-% contain only onedown, the former bidnplay stuff is archived. The ToDo and
-% Known-Bugs lists are cleaned. We are version 0.1 now, trying to keep the
-% bzr version number equal to the changes minor number.}
+% \changes{v0.1}{2018/01/28}{\\
+% - Reorganized the bzr versioning. bzr will contain only onedown, the
+% former bidnplay stuff is archived. The ToDo and Known-Bugs lists are
+% cleaned. \\
+% - We are version 0.1 now, trying to keep the bzr version number equal to
+% the changes minor number.}
 %
-% \changes{v0.2}{2018/02/12}{We finally have a List of User Commands. In
-% the compass we can print vulner in red and mark the dealer. We have a
-% hook \cmd{\CompassMid} to write something in the middle of the compass.
-% Added several macros to auto-translate common stuff like 'lead'. Added
-% the danish language. Corrected a bug in \cmd{\dealer} and \cmd{\vulner}.
-% Removed pgf-key 'lang': we now load the needed languages on the fly.
-% Finally we revised the documentation.}
+% \changes{v0.2}{2018/02/12}{\\
+% - We finally have a List of User Commands. \\
+% - In the compass we can print vulner in red and mark the dealer. We have
+% a hook \cmd{\CompassMid} to write something in the middle of the
+% compass.\\
+% - Added several macros to auto-translate common stuff like 'lead' etc.\\
+% - Added the danish language. \\
+% - Corrected a bug in \cmd{\dealer} and \cmd{\vulner}.\\
+% - Removed pgf-key 'lang': we now load the needed languages on the fly.\\
+% - Finally we revised the documentation.}
 %
-% \changes{v0.4}{2018/03/09}{Major change in playtricks: the winner is now
-% determined by the cards played, and code is added to check consistency.
-% Dirty coded macros like \cmd{\ODw at symbol} and \cmd{\ODw@(@)Card(s)} are
-% displaced by neat expl3 code. We load necesary dictionaries automatically
-% on the fly and enhanced the colors options. Corrected some minor bugs and
-% reorganized the documentation. One can now generate the documentation
-% without the list of user commands}
+% \changes{v0.4}{2018/03/09}{\\
+% - Major change in playtricks: the winner is now determined by the cards
+% played, and code is added to check consistency.\\
+% - Dirty coded macros like \cmd{\ODw at symbol} and \cmd{\ODw@(@)Card(s)} are
+% replaced by neat expl3 code.\\
+% - We load necesary dictionaries automatically on the fly and enhanced the
+% colors options.\\
+% - Corrected some minor bugs and reorganized the documentation. \\
+% - One can now also generate the documentation without the list of user
+% commands}
 %
-% \changes{v0.5}{2018/03/14}{Associated the names and bidders in a fixed
-% way. Added checks to onesuitNS/EW. Made ODw at OtherFont local where
-% necessary. Redefine columntypes. Made 'T' a code for '10'. Adapted the
-% translate macro to enable both 1H and 1\cmd{\He} etc. Enhanced the
-% documentation.}
+% \changes{v0.5}{2018/03/14}{\\
+% - Associated the names and bidders in a fixed way.\\
+% - Added checks to onesuitNS/EW.\\
+% - Made ODw at OtherFont local where necessary.\\
+% - Redefined columntypes.\\
+% - Made 'T' a code for '10'.\\
+% - Adapted the translate macro to enable both 1H and 1\cmd{\He} etc. \\
+% - Enhanced the documentation.}
 %
-% \changes{v0.6}{2018/03/14}{Made all internal names hidden by adding
-% 'ODw@' to it. Changed \cmd{\ODw at AccTricksN} in \cmd{\ODw at AccTricks}. Some
-% minor adaptions of the documentation}
+% \changes{v0.6}{2018/03/14}{\\
+% - Made all internal names hidden by adding 'ODw@' to it.\\
+% - Changed \cmd{\ODw at AccTricksN} in \cmd{\ODw at AccTricks}.\\
+% - Some minor adaptions of the documentation}
 %
-% \changes{v0.7}{2018/03/20}{Final edits of the documentation: Consequent
-% use of 'card diagram', 'bidding' diagram and 'play diagram'. Corrected
-% some minor bugs. Changed the name of the 'playtricks' environment into
-% 'play'. Can disable all colors in the manual for monochrome printing.
-% Changed signature of \cmd{\expertquiz} and \cmd{\boardtext}.}
+% \changes{v0.7}{2018/03/20}{\\
+% - Final(?) edits of the documentation: Consequent use of 'card diagram',
+% 'bidding' diagram and 'play diagram'. \\
+% - Corrected some minor bugs. \\
+% - Changed the name of the 'playtricks' environment into 'play'.\\
+% - Can now disable all colors in the manual for monochrome printing.\\
+% - Changed signature of \cmd{\expertquiz} and \cmd{\boardtext}.}
 %
-% \changes{v0.7a}{2018/03/24}{Major change: Removed all \cmd{\bidXX} an
-% \cmd{\bidXXpair} commands. The biddings can now be shown with the
-% \cmd{\showXX+} (with token '+'). The macros \cmd{\hand-} and the bidding
-% environments suppress their output with token '-'}
+% \changes{v0.7a}{2018/03/24}{\\
+% - Major change: Removed all \cmd{\bidXX} and \cmd{\bidXXpair} commands.\\
+% - The biddings can now be shown with \cmd{\showXX+} (with token '+').\\
+% - The macros \cmd{\hand-} and the bidding environments suppress their
+% output with token '-'}
 %
-% \changes{v0.8}{2018/04/11}{Added package \packname{verbatimbox} to adjust
-% verbatim font easily. Added \cmd{\setdefaults} with keys for fonts,
-% compass and bidding diagram. Made \cmd{\FirstBidCol} internally hidden.
-% Removed \cmd{longcalls}, \cmd{\CompassMid}, added \cmd{compassfont}.
-% Changed the order of the hands in \cmd{\onesuitAll}. Renewed the
-% implementation of the compass and add extra features.}
+% \changes{v0.8}{2018/04/11}{\\
+% - Added package \packname{verbatimbox} to adjust verbatim font easily.\\
+% - Added \cmd{\setdefaults} with keys for fonts, compass and bidding
+% diagrams.\\
+% - Made \cmd{\FirstBidCol} internally hidden.\\
+% - Removed \cmd{\longcalls}, \cmd{\CompassMid}, added \cmd{\compassfont}.\\
+% - Changed the order of the hands in \cmd{\onesuitAll}.\\
+% - Renewed the implementation of the compass and added extra features.}
 %
-% \changes{v0.9}{2018/04/15}{Adapted \cmd{\ODwset} and \cmd{\setdefaults}.
-% Separated key \emph{messages} into keys \emph{warn} and \emph{err}.
-% Adapted \cmd{\ODw at Compass}. Removed legends from \cmd{\showNS}. Added
-% \cmd{\sbox1} to all \cmd{\showXX} macros with a N-hand. Changed
-% ODw@[No]Warnings and ODw@[No]Errors. Corrected some minor bugs and
-% adapted the documentation accordingly.}
+% \changes{v0.9}{2018/04/15}{\\
+% - Adapted \cmd{\ODwset} and \cmd{\setdefaults}.\\
+% - Separated key \emph{messages} into keys \emph{warn} and \emph{err}.\\
+% - Adapted \cmd{\ODw at Compass}. \\
+% - Removed legends from \cmd{\showNS}.\\
+% - Added \cmd{\sbox1} to all \cmd{\showXX} macros with a N-hand.\\
+% - Changed ODw@[No]Warnings and ODw@[No]Errors.\\
+% - Corrected some minor bugs and adapted the documentation accordingly.}
 %
-% \changes{v1.0}{2018/05/23}{Adapted the urls, the directories and some
-% filenames to conform to the CTAN-standard and made the bundle ready for
-% upload. Corrected a small bug in \cmd{\ODw at Compass} that was introduced
-% in v0.9. Made all relevant text writing macros in 4 versions with/without
-% tokens * and ^^21. Corrected a sizing/font bug. Added 4 variants of many
-% text macros, onesuit-NE/NW/. Adapted \cmd{\handskip}. Added code to work
-% around a \packname{babel}-\packname{translations} inconsistency w.r.t.
-% norsk/norwegian.}
+% \changes{v1.0}{2018/05/23}{\\
+% - Adapted the urls, the directories and some filenames to conform to the
+% CTAN-standard and made the bundle ready for upload. \\
+% - Corrected a small bug in \cmd{\ODw at Compass} that was introduced in
+% v0.9.\\
+% - Made all relevant text-writing macros in 4 versions with/without tokens
+% '*' and '^^21'.\\
+% - Corrected a sizing/font bug.\\
+% - Added 4 variants of many other text-writing macros, onesuit-NE/NW/.\\
+% - Adapted \cmd{\handskip}. \\
+% - Added code to work-around a \packname{babel}-\packname{translations}
+% inconsistency w.r.t.  norsk/norwegian.}
 %
-% \changes{v1.1}{2018/09/22}{%
-% - Corrected onedown-ref.tex
-%    Added the missing rows in lines 419-422.
-%    and the explanational text on line 457.
-% - Changed in all ODw+.trsl files:
-%    Translation of 'pass!' into 'p' and 'Pass!' into 'P'.
-% - Corrected some typos in ShowAll.tex:
-%    \cmd{\contract*} into \cmd{\contract},
-%    \cmd{\declarer*} into \cmd{\declarer} and
-%    \cmd{\lead*} into \cmd{\lead}.
-% - Removed some illegal chars from changes entries }
+% \changes{v1.1}{2018/09/22}{\\
+% - Corrected onedown-ref.tex\\
+%    . Added the missing rows in lines 419-422.\\
+%    . and the explanational text on line 457.\\
+% - Changed in all ODw*.trsl files: The translation of 'pass!' into 'p' and
+% 'Pass!' into 'P'.\\
+% - Corrected some typos in ShowAll.tex:\\
+%    . \cmd{\contract*} into \cmd{\contract},\\
+%    . \cmd{\declarer*} into \cmd{\declarer} and\\
+%    . \cmd{\lead*} into \cmd{\lead}.\\
+% - Removed some illegal chars from changes entries.}
+% \changes{v1.2a}{2018/10/10}{\\
+% - Enhanced the documention (both onedown.dtx and onedown-ref.tex: The
+%   command tokens are no longer shown as '[*^^21]', but as '*^^21' with a
+%   different background color.\\
+% - Added a thinspace ('\cmd{\,}') before all points counts (HCP, LP, DP
+% and TP)\\
+% - Improved \cmd{\alert} by using \cmd{\textasteriskcentered} rather than
+% just a '*'\\
+% - The changes history has a better layout now \\
+% - \cmd{\showNS} and \cmd{\showEW} now can selectively display only the N-
+% or S-hand, resp the E- or W-hand.}
+% \changes{v1.2b}{2018/10/31}{\\
+% - Corrected a bug: Added \cmd{\ODw at monochromefalse} in all
+% initializations of multi colors in \cmd{\ODw at set}\\
+% - Made all relevant setdefaults settings (like bidfirst) non-global\\
+% - Made all \cmd{\ODw at BidderX} and \cmd{\ODw at NameX} non-global\\
+% - Removed '\cmd{\global}' from \cmd{\ODw at CompShow} (false and true),
+% \cmd{\ODw at CompTurn}, \cmd{\ODw at Bidders}, \cmd{\ODw at BidLine} and
+% \cmd{\ODw at LongCalls}\\
+% - In command \cmd{\suit} changed 'JW   \cmd{\ODw at GameSize}' into
+% '\cmd{\ODw at GameSize}'}
 %
 % ^^A Note: ^^21 denotes the exclamation mark (!)
 %
@@ -734,8 +781,10 @@
 % giving us \textcolor{black}{black} and \textcolor{red}{red}. Furthermore,
 % when we descibe macros, we use a colored frame that also shows the output
 % of the commend. Some commands have optional tokens that produce an output
-% that differs from the naked version. The output of tokenized calls in the
-% command overview is shown in parenthesis.
+% that differs from the naked version. These optional tokens appear in a
+% different background color like \Oarg{*!}. If an output of a macro is
+% shown, then the output of tokenized calls is shown in parenthesis to
+% demonstrate the difference.
 %
 % \subsubsection{The Compass}
 %
@@ -960,9 +1009,11 @@
 % \noindent
 % \DescribeMacro{\showAll}\MacroDef+{showAll}[\Oarg{*+}\oarg{pos}]
 % \par\noindent
-% \DescribeMacro{\showNS}\MacroDef+{showNS}[\Oarg{*+}\oarg{pos}]
+% \DeleteShortVerb{\|}
+% \DescribeMacro{\showNS}\MacroDef+{showNS}[\Oarg{*+}\oarg{pos}\parg{N|S}]
 % \par\noindent
-% \DescribeMacro{\showEW}\MacroDef+{showEW}[\Oarg{*+}\oarg{pos}]
+% \DescribeMacro{\showEW}\MacroDef+{showEW}[\Oarg{*+}\oarg{pos}\parg{E|W}]
+% \MakeShortVerb{\|}
 % \par\noindent
 % \DescribeMacro{\showNE}\MacroDef+{showNE}[\Oarg{*+}\oarg{pos}]
 % \par\noindent
@@ -987,6 +1038,10 @@
 % The other commands are similar to |\showAll| but typeset only the hands
 % of the players that are represented in the name of the command:
 % \NorthSouth*!, \EastWest*!,  \North*!--\East*! and \North*!--\West*!.
+%
+% The commands |\showNS| and |\showEW| have an extra optional argument with
+% which selectively only one of the two hands can be displayed. E.g.\ 
+% |\showNS(S)| will display only the \South*-hand.
 % \needspace{6\baselineskip}\noindent
 %
 % \subsubsection{Showing Card Diagrams with Bidding}\label{PlayCommands}
@@ -2117,12 +2172,8 @@
 % define the suits with a |renewrobustcommand|. So we must |\def| them
 % first.
 %
-% \changes{v0.6a}{2018/03/15}{In order to test which suit (\cmd{\Cl},\ldots)
-% was encountered in \cmd{\ODw at translate} (see page \pageref{Translate}) we
-% \emph{must} define the suits as a \emph{renewrobustcommand}. So we 
-% \cmd{\def}ine them first! The idea was given on LaTeX StackExchange by
-% egreg, see
-% \url{https://tex.stackexchange.com/questions/420257/test-which-macro-is-called-in-tabular/420258#420258}
+% \changes{v0.6a}{2018/03/15}{\\
+% - In order to test which suit (\cmd{\Cl},\ldots) was encountered in \cmd{\ODw at translate} (see page \pageref{Translate}) we \emph{must} define the suits as a \emph{renewrobustcommand}. So we \cmd{\def}ine them first! The idea was given on LaTeX StackExchange by egreg, see \url{https://tex.stackexchange.com/questions/420257/test-which-macro-is-called-in-tabular/420258#420258}
 % }
 %
 %    \begin{macrocode}
@@ -2159,6 +2210,7 @@
 %
 \ODw at set{%
  colors/2/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{black}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{red}%
@@ -2173,6 +2225,7 @@
 %
 \ODw at set{%
  colors/4A/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{green}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{orange}%
@@ -2188,6 +2241,7 @@
 %
 \ODw at set{%
  colors/4B/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{black}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{orange}%
@@ -2202,11 +2256,6 @@
 \ODw at set{colors/4b/.code={\pgfkeys{/ODw/colors=4B}}}
 %    \end{macrocode}
 %
-% Set default coloring to black and red
-%    \begin{macrocode}
-\ODw at set{colors=2}
-%    \end{macrocode}
-%
 % \begin{macro}{\nt}
 % \begin{macro}{\NT}
 % Because some languages use a different symbol for \NT{} (\nt*) we must
@@ -2812,44 +2861,44 @@
 \newcommand\ODw at FirstBidCol[1]{%
  \IfEqCase{#1}{%
   {N}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at NameI{\ODw at North@Name}%
-   \gdef\ODw at NameII{\ODw at East@Name}%
-   \gdef\ODw at NameIII{\ODw at South@Name}%
-   \gdef\ODw at NameIV{\ODw at West@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at NameI{\ODw at North@Name}%
+   \def\ODw at NameII{\ODw at East@Name}%
+   \def\ODw at NameIII{\ODw at South@Name}%
+   \def\ODw at NameIV{\ODw at West@Name}%
   }%
   {E}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at NameI{\ODw at East@Name}%
-   \gdef\ODw at NameII{\ODw at South@Name}%
-   \gdef\ODw at NameIII{\ODw at West@Name}%
-   \gdef\ODw at NameIV{\ODw at North@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at NameI{\ODw at East@Name}%
+   \def\ODw at NameII{\ODw at South@Name}%
+   \def\ODw at NameIII{\ODw at West@Name}%
+   \def\ODw at NameIV{\ODw at North@Name}%
   }%
   {S}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at NameI{\ODw at South@Name}%
-   \gdef\ODw at NameII{\ODw at West@Name}%
-   \gdef\ODw at NameIII{\ODw at North@Name}%
-   \gdef\ODw at NameIV{\ODw at East@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at NameI{\ODw at South@Name}%
+   \def\ODw at NameII{\ODw at West@Name}%
+   \def\ODw at NameIII{\ODw at North@Name}%
+   \def\ODw at NameIV{\ODw at East@Name}%
   }%
   {W}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at NameI{\ODw at West@Name}%
-   \gdef\ODw at NameII{\ODw at North@Name}%
-   \gdef\ODw at NameIII{\ODw at East@Name}%
-   \gdef\ODw at NameIV{\ODw at South@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at NameI{\ODw at West@Name}%
+   \def\ODw at NameII{\ODw at North@Name}%
+   \def\ODw at NameIII{\ODw at East@Name}%
+   \def\ODw at NameIV{\ODw at South@Name}%
   }%
  }% IfEqCase
 }% ODw at FirstBidCol
@@ -3273,7 +3322,8 @@
   \ODw at ChkNrOfCards{#2}{suit}%
   \ODw at ChkSameCards{#2}{#1}%
   \bgroup% keep font change local
-%JW    \ODw at GameSize%
+%JW
+    \ODw at GameSize%
     #1\ODw at Cards{#2}%
   \egroup%
   \xspace%
@@ -3391,18 +3441,21 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\showNS}\MacroDef{showNS}[\Oarg{*+}\oarg{pos}]
+% \DeleteShortVerb{\|}
+% \begin{macro}{\showNS}\MacroDef{showNS}[\Oarg{*+}\oarg{pos}\parg{N|S}]
+% \MakeShortVerb{\|}
 % Define the diagram, showing the cards for the \NorthSouth*! hands.
 %
 %    \begin{macrocode}
-\NewDocumentCommand\showNS{s t+ O{c}}{%
+\NewDocumentCommand\showNS{s t+ O{c} d()}{%
 %    \end{macrocode}
-% |showNS* +[pos]|\\
-% |      1 2  3|\\
+% |showNS* +[pos] (N/S)|\\
+% |      1 2  3     4|\\
 % |Display the NS diagram, defined by \northhand, etc|\\
 % |* Version: Display the diagram centered|\\
 % |+ Version: Also display a bidding diagram|\\
 % |pos: aligning, default c|\\
+% |N/S: only N-hand (or S-hand) is to be displayed|\\
 % \par\noindent
 % Description: similar to |\showAll|
 %    \begin{macrocode}
@@ -3429,17 +3482,21 @@
     \sbox1{\ODw at Compass}%
     \sbox0{%
   \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
-     & \ODw at Nhand & \\
+% Display the N-hand only with token 'N', or no token at all
+     & \IfNoValueTF{#4}{\ODw at Nhand}{\ifthenelse{\equal{#4}{N}}{\ODw at Nhand}{}} & \\
      & \usebox{1} & \\
-     & \ODw at Shand & \\
+% Display the S-hand only with token 'S', or no token at all
+     & \IfNoValueTF{#4}{\ODw at Shand}{\ifthenelse{\equal{#4}{S}}{\ODw at Shand}{}} & \\
   \end{tabular}%
     }% sbox0
   \ODw at gsetlength\ODw at Diagram@Width{\wd0}%
   \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
     \ODw at ProcessHeader{3}% span 3 columns
-     & \ODw at Nhand & \\
+% Display the N-hand only with token 'N', or no token at all
+     & \IfNoValueTF{#4}{\ODw at Nhand}{\ifthenelse{\equal{#4}{N}}{\ODw at Nhand}{}} & \\
      & \usebox{1} & \\
-     & \ODw at Shand & \\
+% Display the S-hand only with token 'S', or no token at all
+     & \IfNoValueTF{#4}{\ODw at Shand}{\ifthenelse{\equal{#4}{S}}{\ODw at Shand}{}} & \\
     \ODw at ProcessFooter{3}% span 3 columns
   \end{tabular}%
    \IfBooleanTF#2{%
@@ -3454,17 +3511,20 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\showEW}\MacroDef{showEW}[\Oarg{*+}\oarg{pos}]
+% \DeleteShortVerb{\|}
+% \begin{macro}{\showEW}\MacroDef{showEW}[\Oarg{*+}\oarg{pos}\parg{E|W}]
+% \MakeShortVerb{\|}
 % Define the diagram, showing the cards for the \EastWest*! hands.
 %    \begin{macrocode}
-\NewDocumentCommand\showEW{s t+ O{c}}{%
+\NewDocumentCommand\showEW{s t+ O{c} d()}{%
 %    \end{macrocode}
-% |showEW* + [pos]|\\
-% |      1 2   3|\\
+% |showEW* + [pos] (E/W)|\\
+% |      1 2   3     4|\\
 % |Display the EW diagram, defined by \easthand, etc|\\
 % |* Version: Display the diagram centered|\\
 % |+ Version: Also display a bidding diagram|\\
 % |pos: aligning, default c|\\
+% |E/W: only E-hand (or W-hand) is to be displayed|\\
 % \par\noindent
 % Description: similar to |\showAll|
 %    \begin{macrocode}
@@ -3485,14 +3545,22 @@
     \ODw at TestIfEmpty{\ODw at FooterText}{ODw at EmptyFooter}%
     \sbox0{%
       \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
-        \ODw at Whand       & \ODw at Compass & \ODw at Ehand \\
+% Display the W-hand only with token 'W', or no token at all
+        \IfNoValueTF{#4}{\ODw at Whand}{\ifthenelse{\equal{#4}{W}}{\ODw at Whand}{}} 
+               & \ODw at Compass & 
+% Display the E-hand only with token 'E', or no token at all
+        \IfNoValueTF{#4}{\ODw at Ehand}{\ifthenelse{\equal{#4}{E}}{\ODw at Ehand}{}} \\
       \end{tabular}%
     }% sbox
     \ODw at gsetlength{\ODw at Diagram@Width}{\wd0}%
     \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
       \ODw at ProcessHeader{3}% span 3 columns
-                       &              & \\
-      \ODw at Whand       & \ODw at Compass & \ODw at Ehand \\
+               &              & \\
+% Display the W-hand only with token 'W', or no token at all
+      \IfNoValueTF{#4}{\ODw at Whand}{\ifthenelse{\equal{#4}{W}}{\ODw at Whand}{}} 
+               & \ODw at Compass & 
+% Display the E-hand only with token 'E', or no token at all
+      \IfNoValueTF{#4}{\ODw at Ehand}{\ifthenelse{\equal{#4}{E}}{\ODw at Ehand}{}} \\
       \ODw at ProcessFooter{3}% span 3 columns
     \end{tabular}%
    \IfBooleanTF#2{%
@@ -4230,7 +4298,7 @@
 %
 % \begin{macro}{\alert}
 %    \begin{macrocode}
-\newcommand{\alert}{{}\ensuremath{^\textbf{*}}}
+\newcommand{\alert}{{}\ensuremath{^\textbf{\textasteriskcentered}}}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -4665,12 +4733,13 @@
 %
 % \begin{environment}{play}\EnvDef{play}[*\marg{Lead}\oarg{Trump}]
 % \label{Play}
-% \changes{v0.3}{2018/02/24}{In order to avoid empty columns in environment
-% \texttt{playtricks} we reorganized it. Rather than just 1 table we use 3
-% tables. The middle one typesets the relevant tricks, stored in an
-% \texttt{lrbox}, while generating on the fly a string with the winning
-% tricks. Finally we put the running trick-number in TableI, we 'use'
-% TableII and contruct TableIII from the string with the winning tricks.}
+% \changes{v0.3}{2018/02/24}{\\
+% - In order to avoid empty columns in environment \texttt{playtricks} we
+% reorganized it. Rather than just 1 table we use 3 tables. The middle one
+% typesets the relevant tricks, stored in an \texttt{lrbox}, while
+% generating on the fly a string with the winning tricks. Finally we put
+% the running trick-number in TableI, we 'use' TableII and contruct
+% TableIII from the string with the winning tricks.}
 %
 % Finally we define environment |play|. It consists primarily of
 % these 3 tables, the middle one  with the special newcolumntype
@@ -4890,15 +4959,15 @@
 }
 % compass
   \ODw at set{compshow/.is choice}
-  \ODw at set{compshow/off/.code={\global\ODw at CompShowfalse}}
-  \ODw at set{compshow/on/.code={\global\ODw at CompShowtrue}}
+  \ODw at set{compshow/off/.code={\ODw at CompShowfalse}}
+  \ODw at set{compshow/on/.code={\ODw at CompShowtrue}}
   \ODw at set{compturn/.is choice}
-  \ODw at set{compturn/off/.code={\global\ODw at CompTurnfalse}}
-  \ODw at set{compturn/on/.code={\global\ODw at CompTurntrue}}
+  \ODw at set{compturn/off/.code={\ODw at CompTurnfalse}}
+  \ODw at set{compturn/on/.code={\ODw at CompTurntrue}}
 % bídding
   \ODw at set{bidders/.is choice}
-  \ODw at set{bidders/off/.code={\global\ODw at Biddersfalse}}
-  \ODw at set{bidders/on/.code={\global\ODw at Bidderstrue}}
+  \ODw at set{bidders/off/.code={\ODw at Biddersfalse}}
+  \ODw at set{bidders/on/.code={\ODw at Bidderstrue}}
   \ODw at set{bidfirst/.is choice}
   \ODw at set{bidfirst/N/.code=\ODw at FirstBidCol{N}}
   \ODw at set{bidfirst/E/.code=\ODw at FirstBidCol{E}}
@@ -4905,11 +4974,11 @@
   \ODw at set{bidfirst/S/.code=\ODw at FirstBidCol{S}}
   \ODw at set{bidfirst/W/.code=\ODw at FirstBidCol{W}}
   \ODw at set{bidline/.is choice}
-  \ODw at set{bidline/off/.code={\global\ODw at BidLinefalse}}
-  \ODw at set{bidline/on/.code={\global\ODw at BidLinetrue}}
+  \ODw at set{bidline/off/.code={\ODw at BidLinefalse}}
+  \ODw at set{bidline/on/.code={\ODw at BidLinetrue}}
   \ODw at set{bidlong/.is choice}
-  \ODw at set{bidlong/off/.code={\global\ODw at LongCallsfalse}}
-  \ODw at set{bidlong/on/.code={\global\ODw at LongCallstrue}}
+  \ODw at set{bidlong/off/.code={\ODw at LongCallsfalse}}
+  \ODw at set{bidlong/on/.code={\ODw at LongCallstrue}}
 % synonyms
   \ODw at set{compshow/1/.code={\pgfkeys{/ODw/compshow=on}}}
   \ODw at set{compshow/true/.code={\pgfkeys{/ODw/compshow=on}}}
@@ -4964,6 +5033,10 @@
 % bidder appears in the first column, draw a |\hline| below the header and
 % showing long calls.
 %
+% Furthermore defined elsewhere are the keys to control errors |err| and
+% warnings |warn|, as well as the key to control the color e.g. of the
+% symbols |colors|. Refer to section~\ref{Options}
+%
 %    \begin{macrocode}
 \NewDocumentCommand\setdefaults{s m}{%
   \pgfkeys{/ODw,#2}%
@@ -5505,7 +5578,7 @@
   \xspace%
 }% High Card Points
 %
-\def\HCP{\hpts*!}
+\def\HCP{\,\hpts*!}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -5529,7 +5602,7 @@
   \xspace%
 }% Length Points
 %
-\def\LP{\lpts*!}
+\def\LP{\,\lpts*!}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -5553,7 +5626,7 @@
   \xspace%
 }% Distribution Points
 %
-\def\DP{\dpts*!}
+\def\DP{\,\dpts*!}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -5577,7 +5650,7 @@
   \xspace%
 }% Total Points
 %
-\def\TP{\tpts*!}
+\def\TP{\,\tpts*!}
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -5722,6 +5795,12 @@
 \setdefaults{name=\mdseries\slshape}
 \setdefaults*{other=\bfseries\sffamily}
 %    \end{macrocode}
+%
+% Set default coloring to black and red
+%    \begin{macrocode}
+\setdefaults{colors=b+r}
+%    \end{macrocode}
+%
 % Set the compass
 %    \begin{macrocode}
 \setdefaults{compshow=on,compturn=off}

Modified: trunk/Master/texmf-dist/tex/latex/onedown/onedown.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/onedown/onedown.sty	2018-11-02 20:52:45 UTC (rev 49052)
+++ trunk/Master/texmf-dist/tex/latex/onedown/onedown.sty	2018-11-02 20:53:02 UTC (rev 49053)
@@ -21,7 +21,7 @@
 %% 2005/12/01 or later.
 %% 
 \NeedsTeXFormat{LaTeX2e}[2014/05/01]
-\def\ODwstyleversion{1.1}\def\ODwstyledate{2018/09/23}
+\def\ODwstyleversion{1.2}\def\ODwstyledate{2018/10/31}
 \ProvidesPackage{onedown}
  [\ODwstyledate\space v\ODwstyleversion\space
  Typeset Bridge Diagrams - Jacob Wiersma (C) 2016-2018]
@@ -172,6 +172,7 @@
 \ODw at set{colors/b+w/.code={\pgfkeys{/ODw/colors=1}}}
 \ODw at set{%
  colors/2/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{black}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{red}%
@@ -185,6 +186,7 @@
 \ODw at set{colors/b+r/.code={\pgfkeys{/ODw/colors=2}}}
 \ODw at set{%
  colors/4A/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{green}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{orange}%
@@ -199,6 +201,7 @@
 \ODw at set{colors/4a/.code={\pgfkeys{/ODw/colors=4A}}}
 \ODw at set{%
  colors/4B/.code={%
+  \ODw at monochromefalse%
   \renewrobustcmd\Cl{\textcolor{black}%
    {\,[0.3]\ensuremath{\ODw at clubsuit}}\xspace}%
   \renewrobustcmd\Di{\textcolor{orange}%
@@ -211,7 +214,6 @@
 }
 \ODw at set{colors/fourB/.code={\pgfkeys{/ODw/colors=4B}}}
 \ODw at set{colors/4b/.code={\pgfkeys{/ODw/colors=4B}}}
-\ODw at set{colors=2}
 \NewDocumentCommand\nt{s t!}{%
   \bgroup%
     \ODw at OtherFont%
@@ -552,44 +554,44 @@
 \newcommand\ODw at FirstBidCol[1]{%
  \IfEqCase{#1}{%
   {N}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at NameI{\ODw at North@Name}%
-   \gdef\ODw at NameII{\ODw at East@Name}%
-   \gdef\ODw at NameIII{\ODw at South@Name}%
-   \gdef\ODw at NameIV{\ODw at West@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at NameI{\ODw at North@Name}%
+   \def\ODw at NameII{\ODw at East@Name}%
+   \def\ODw at NameIII{\ODw at South@Name}%
+   \def\ODw at NameIV{\ODw at West@Name}%
   }%
   {E}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at NameI{\ODw at East@Name}%
-   \gdef\ODw at NameII{\ODw at South@Name}%
-   \gdef\ODw at NameIII{\ODw at West@Name}%
-   \gdef\ODw at NameIV{\ODw at North@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at NameI{\ODw at East@Name}%
+   \def\ODw at NameII{\ODw at South@Name}%
+   \def\ODw at NameIII{\ODw at West@Name}%
+   \def\ODw at NameIV{\ODw at North@Name}%
   }%
   {S}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at NameI{\ODw at South@Name}%
-   \gdef\ODw at NameII{\ODw at West@Name}%
-   \gdef\ODw at NameIII{\ODw at North@Name}%
-   \gdef\ODw at NameIV{\ODw at East@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at NameI{\ODw at South@Name}%
+   \def\ODw at NameII{\ODw at West@Name}%
+   \def\ODw at NameIII{\ODw at North@Name}%
+   \def\ODw at NameIV{\ODw at East@Name}%
   }%
   {W}{%
-   \gdef\ODw at BidderI{\@ifstar{\ODw at West*}{\ODw at W*}}%
-   \gdef\ODw at BidderII{\@ifstar{\ODw at North*}{\ODw at N*}}%
-   \gdef\ODw at BidderIII{\@ifstar{\ODw at East*}{\ODw at E*}}%
-   \gdef\ODw at BidderIV{\@ifstar{\ODw at South*}{\ODw at S*}}%
-   \gdef\ODw at NameI{\ODw at West@Name}%
-   \gdef\ODw at NameII{\ODw at North@Name}%
-   \gdef\ODw at NameIII{\ODw at East@Name}%
-   \gdef\ODw at NameIV{\ODw at South@Name}%
+   \def\ODw at BidderI{\@ifstar{\ODw at West*}{\ODw at W*}}%
+   \def\ODw at BidderII{\@ifstar{\ODw at North*}{\ODw at N*}}%
+   \def\ODw at BidderIII{\@ifstar{\ODw at East*}{\ODw at E*}}%
+   \def\ODw at BidderIV{\@ifstar{\ODw at South*}{\ODw at S*}}%
+   \def\ODw at NameI{\ODw at West@Name}%
+   \def\ODw at NameII{\ODw at North@Name}%
+   \def\ODw at NameIII{\ODw at East@Name}%
+   \def\ODw at NameIV{\ODw at South@Name}%
   }%
  }% IfEqCase
 }% ODw at FirstBidCol
@@ -775,6 +777,7 @@
   \ODw at ChkNrOfCards{#2}{suit}%
   \ODw at ChkSameCards{#2}{#1}%
   \bgroup% keep font change local
+    \ODw at GameSize%
     #1\ODw at Cards{#2}%
   \egroup%
   \xspace%
@@ -837,7 +840,7 @@
   \egroup%
   \IfBooleanTF#1{\end{center}}{}%
 }% showAll
-\NewDocumentCommand\showNS{s t+ O{c}}{%
+\NewDocumentCommand\showNS{s t+ O{c} d()}{%
   \gdef\ODw at Spades{\ODw at NSpades\ODw at SSpades}%
   \gdef\ODw at Hearts{\ODw at NHearts\ODw at SHearts}%
   \gdef\ODw at Diamonds{\ODw at NDiamonds\ODw at SDiamonds}%
@@ -856,17 +859,17 @@
     \sbox1{\ODw at Compass}%
     \sbox0{%
   \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
-     & \ODw at Nhand & \\
+     & \IfNoValueTF{#4}{\ODw at Nhand}{\ifthenelse{\equal{#4}{N}}{\ODw at Nhand}{}} & \\
      & \usebox{1} & \\
-     & \ODw at Shand & \\
+     & \IfNoValueTF{#4}{\ODw at Shand}{\ifthenelse{\equal{#4}{S}}{\ODw at Shand}{}} & \\
   \end{tabular}%
     }% sbox0
   \ODw at gsetlength\ODw at Diagram@Width{\wd0}%
   \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
     \ODw at ProcessHeader{3}% span 3 columns
-     & \ODw at Nhand & \\
+     & \IfNoValueTF{#4}{\ODw at Nhand}{\ifthenelse{\equal{#4}{N}}{\ODw at Nhand}{}} & \\
      & \usebox{1} & \\
-     & \ODw at Shand & \\
+     & \IfNoValueTF{#4}{\ODw at Shand}{\ifthenelse{\equal{#4}{S}}{\ODw at Shand}{}} & \\
     \ODw at ProcessFooter{3}% span 3 columns
   \end{tabular}%
    \IfBooleanTF#2{%
@@ -878,7 +881,7 @@
  \egroup%
  \IfBooleanTF#1{\end{center}}{}%
 }% showNS
-\NewDocumentCommand\showEW{s t+ O{c}}{%
+\NewDocumentCommand\showEW{s t+ O{c} d()}{%
   \gdef\ODw at Spades{\ODw at ESpades\ODw at WSpades}%
   \gdef\ODw at Hearts{\ODw at EHearts\ODw at WHearts}%
   \gdef\ODw at Diamonds{\ODw at EDiamonds\ODw at WDiamonds}%
@@ -895,14 +898,18 @@
     \ODw at TestIfEmpty{\ODw at FooterText}{ODw at EmptyFooter}%
     \sbox0{%
       \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
-        \ODw at Whand       & \ODw at Compass & \ODw at Ehand \\
+        \IfNoValueTF{#4}{\ODw at Whand}{\ifthenelse{\equal{#4}{W}}{\ODw at Whand}{}}
+               & \ODw at Compass &
+        \IfNoValueTF{#4}{\ODw at Ehand}{\ifthenelse{\equal{#4}{E}}{\ODw at Ehand}{}} \\
       \end{tabular}%
     }% sbox
     \ODw at gsetlength{\ODw at Diagram@Width}{\wd0}%
     \begin{tabular}[#3]{@{}r@{}c@{}l@{}}%
       \ODw at ProcessHeader{3}% span 3 columns
-                       &              & \\
-      \ODw at Whand       & \ODw at Compass & \ODw at Ehand \\
+               &              & \\
+      \IfNoValueTF{#4}{\ODw at Whand}{\ifthenelse{\equal{#4}{W}}{\ODw at Whand}{}}
+               & \ODw at Compass &
+      \IfNoValueTF{#4}{\ODw at Ehand}{\ifthenelse{\equal{#4}{E}}{\ODw at Ehand}{}} \\
       \ODw at ProcessFooter{3}% span 3 columns
     \end{tabular}%
    \IfBooleanTF#2{%
@@ -1292,7 +1299,7 @@
   \fi%
   :\,#1%
 }
-\newcommand{\alert}{{}\ensuremath{^\textbf{*}}}
+\newcommand{\alert}{{}\ensuremath{^\textbf{\textasteriskcentered}}}
 \newcommand{\announce}{{}\ensuremath{^\textbf{\smaller A}}}
 \newcommand\markit{%
   \stepcounter{ODw at Nr}%
@@ -1655,14 +1662,14 @@
   compsize/.store in = \ODw at CompSize,
 }
   \ODw at set{compshow/.is choice}
-  \ODw at set{compshow/off/.code={\global\ODw at CompShowfalse}}
-  \ODw at set{compshow/on/.code={\global\ODw at CompShowtrue}}
+  \ODw at set{compshow/off/.code={\ODw at CompShowfalse}}
+  \ODw at set{compshow/on/.code={\ODw at CompShowtrue}}
   \ODw at set{compturn/.is choice}
-  \ODw at set{compturn/off/.code={\global\ODw at CompTurnfalse}}
-  \ODw at set{compturn/on/.code={\global\ODw at CompTurntrue}}
+  \ODw at set{compturn/off/.code={\ODw at CompTurnfalse}}
+  \ODw at set{compturn/on/.code={\ODw at CompTurntrue}}
   \ODw at set{bidders/.is choice}
-  \ODw at set{bidders/off/.code={\global\ODw at Biddersfalse}}
-  \ODw at set{bidders/on/.code={\global\ODw at Bidderstrue}}
+  \ODw at set{bidders/off/.code={\ODw at Biddersfalse}}
+  \ODw at set{bidders/on/.code={\ODw at Bidderstrue}}
   \ODw at set{bidfirst/.is choice}
   \ODw at set{bidfirst/N/.code=\ODw at FirstBidCol{N}}
   \ODw at set{bidfirst/E/.code=\ODw at FirstBidCol{E}}
@@ -1669,11 +1676,11 @@
   \ODw at set{bidfirst/S/.code=\ODw at FirstBidCol{S}}
   \ODw at set{bidfirst/W/.code=\ODw at FirstBidCol{W}}
   \ODw at set{bidline/.is choice}
-  \ODw at set{bidline/off/.code={\global\ODw at BidLinefalse}}
-  \ODw at set{bidline/on/.code={\global\ODw at BidLinetrue}}
+  \ODw at set{bidline/off/.code={\ODw at BidLinefalse}}
+  \ODw at set{bidline/on/.code={\ODw at BidLinetrue}}
   \ODw at set{bidlong/.is choice}
-  \ODw at set{bidlong/off/.code={\global\ODw at LongCallsfalse}}
-  \ODw at set{bidlong/on/.code={\global\ODw at LongCallstrue}}
+  \ODw at set{bidlong/off/.code={\ODw at LongCallsfalse}}
+  \ODw at set{bidlong/on/.code={\ODw at LongCallstrue}}
   \ODw at set{compshow/1/.code={\pgfkeys{/ODw/compshow=on}}}
   \ODw at set{compshow/true/.code={\pgfkeys{/ODw/compshow=on}}}
   \ODw at set{compturn/1/.code={\pgfkeys{/ODw/compturn=on}}}
@@ -2015,7 +2022,7 @@
   \egroup%
   \xspace%
 }% High Card Points
-\def\HCP{\hpts*!}
+\def\HCP{\,\hpts*!}
 \NewDocumentCommand{\lpts}{s t!}{%
   \bgroup%
     \ODw at OtherFont%
@@ -2031,7 +2038,7 @@
   \egroup%
   \xspace%
 }% Length Points
-\def\LP{\lpts*!}
+\def\LP{\,\lpts*!}
 \NewDocumentCommand{\dpts}{s t!}{%
   \bgroup%
     \ODw at OtherFont%
@@ -2047,7 +2054,7 @@
   \egroup%
   \xspace%
 }% Distribution Points
-\def\DP{\dpts*!}
+\def\DP{\,\dpts*!}
 \NewDocumentCommand{\tpts}{s t!}{%
   \bgroup%
     \ODw at OtherFont%
@@ -2063,7 +2070,7 @@
   \egroup%
   \xspace%
 }% Total Points
-\def\TP{\tpts*!}
+\def\TP{\,\tpts*!}
 \NewDocumentCommand{\gforce}{s t!}{%
   \bgroup%
     \ODw at OtherFont%
@@ -2151,6 +2158,7 @@
 \setdefaults{legend=\mdseries\rmfamily}
 \setdefaults{name=\mdseries\slshape}
 \setdefaults*{other=\bfseries\sffamily}
+\setdefaults{colors=b+r}
 \setdefaults{compshow=on,compturn=off}
 \setdefaults{bidfirst=W,bidders=on,bidlong=on}
 \AtBeginDocument{%



More information about the tex-live-commits mailing list