summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples/showNS-warn-I.tex
blob: a24c9a0066abd2e31e43099e339cf4d684eb6a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\documentclass[onedown-examples]{subfiles}
\newgame
\begin{document}

If you do not define all cards of a deck, then a lot of `missing card'
warnings will appear. Therefore most of the time it is better that warnings
are switched off. This is the default, but you can explicitly do that with
|\setdefaults{warn=off}|. It is also the default to produce \emph{error}
messages, which you can also switch off with |\setdefaults{err=off}|.
We recommend to have errors shown when you enter new diagrams. Please
observe how the |\smaller\smaller| command shrinked the diagram. We did
that to make all the warnings fit in the box. To avoid that all following
diagrams are also shrinked you must call |\gamefont{\bfseries\sffamily}|
again without the resizing. Calling |\resetfonts| has the same effect, but
would also influence the other fonts.
\vfill
\begin{HBox}{showNS with warnings\hfill File: \FileName}
\setdefaults{warn=on}
  \gamefont{\bfseries\sffamily%
            \smaller\smaller}
  \northhand{KJ92}{KQ9}{J}{AQJT8}
  \southhand{AQT85}{A52}{64}{K96}
  \showNS
\end{HBox}
\vfill
%
\end{document}
\endinput