diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/onedown/examples/Hands.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/onedown/examples/Hands.tex')
-rw-r--r-- | macros/latex/contrib/onedown/examples/Hands.tex | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/macros/latex/contrib/onedown/examples/Hands.tex b/macros/latex/contrib/onedown/examples/Hands.tex new file mode 100644 index 0000000000..f40721a3a0 --- /dev/null +++ b/macros/latex/contrib/onedown/examples/Hands.tex @@ -0,0 +1,41 @@ +\documentclass[onedown-examples]{subfiles} +\newgame +\begin{document} +~ +\vfill +In the first example we show how the cards of a hand are entered. The hand +can be displayed horizontally or vertically. It can also be centered. In +general the token |*| will center the diagram, whereas the token |!| does +something special. With the command |\hand| the token |*| switches between +the horizontal and vertical mode. In other situations the token |*| can +force the output of a short notation. With non-diagram commands the token +|*| prints the full expression rather than an abreviation. The token |!| outputs the hand +vertically. Please note that we enter a |T| to get e.g.\ \suit{JT9}. +Entering |10| would yield \suit{J109}, which looks really awful. +\vfill +\begin{HBox}{{single hand (hor/vert)+(left/centered) + \hfill File: \FileName}} + + horizontal \par\noindent +\hand{AQT2}{KQ3}{J98}{T98} + + horizontal centered \par\noindent +\hand*{AQT2}{KQ3}{J98}{T98} + + vertical \par\noindent +\hand!{AQT2}{KQ3}{J98}{T98} + + vertical centered \par\noindent +\hand*!{AQT2}{KQ3}{J98}{T98} + +\end{HBox} +% +\vfill +This example shows how a mistake in entering the cards is detected. +\vfill +\begin{HBox}{{single hand with error\hfill File: \FileName}} +\hand!{AQT2}{KKQ3}{J98}{T98} +\end{HBox} +\vfill +\end{document} + |