| 1 |
\documentclass[onedown-examples]{subfiles} |
| 2 |
\newgame |
| 3 |
\begin{document} |
| 4 |
~ |
| 5 |
\vfill |
| 6 |
In the first example we show how the cards of a hand are entered. The hand |
| 7 |
can be displayed horizontally or vertically. It can also be centered. In |
| 8 |
general the token |*| will center the diagram, whereas the token |!| does |
| 9 |
something special. With the command |\hand| the token |*| switches between |
| 10 |
the horizontal and vertical mode. In other situations the token |*| can |
| 11 |
force the output of a short notation. With non-diagram commands the token |
| 12 |
|*| prints the full expression rather than an abreviation. The token |!| outputs the hand |
| 13 |
vertically. Please note that we enter a |T| to get e.g.\ \suit{JT9}. |
| 14 |
Entering |10| would yield \suit{J109}, which looks really awful. |
| 15 |
\vfill |
| 16 |
\begin{HBox}{{single hand (hor/vert)+(left/centered) |
| 17 |
\hfill File: \FileName}} |
| 18 |
|
| 19 |
horizontal \par\noindent |
| 20 |
\hand{AQT2}{KQ3}{J98}{T98} |
| 21 |
|
| 22 |
horizontal centered \par\noindent |
| 23 |
\hand*{AQT2}{KQ3}{J98}{T98} |
| 24 |
|
| 25 |
vertical \par\noindent |
| 26 |
\hand!{AQT2}{KQ3}{J98}{T98} |
| 27 |
|
| 28 |
vertical centered \par\noindent |
| 29 |
\hand*!{AQT2}{KQ3}{J98}{T98} |
| 30 |
|
| 31 |
\end{HBox} |
| 32 |
% |
| 33 |
\vfill |
| 34 |
This example shows how a mistake in entering the cards is detected. |
| 35 |
\vfill |
| 36 |
\begin{HBox}{{single hand with error\hfill File: \FileName}} |
| 37 |
\hand!{AQT2}{KKQ3}{J98}{T98} |
| 38 |
\end{HBox} |
| 39 |
\vfill |
| 40 |
\end{document} |
| 41 |
|