Debian Codegraph @

texmf-dist/doc/latex/onedown/Examples/showNS-warn-I.tex

raw
1 \documentclass[onedown-examples]{subfiles}
2 \newgame
3 \begin{document}
4
5 If you do not define all cards of a deck, then a lot of `missing card'
6 warnings will appear. Therefore most of the time it is better that warnings
7 are switched off. This is the default, but you can explicitly do that with
8 |\setdefaults{warn=off}|. It is also the default to produce \emph{error}
9 messages, which you can also switch off with |\setdefaults{err=off}|.
10 We recommend to have errors shown when you enter new diagrams. Please
11 observe how the |\smaller\smaller| command shrinked the diagram. We did
12 that to make all the warnings fit in the box. To avoid that all following
13 diagrams are also shrinked you must call |\gamefont{\bfseries\sffamily}|
14 again without the resizing. Calling |\resetfonts| has the same effect, but
15 would also influence the other fonts.
16 \vfill
17 \begin{HBox}{showNS with warnings\hfill File: \FileName}
18 \setdefaults{warn=on}
19 \gamefont{\bfseries\sffamily%
20 \smaller\smaller}
21 \northhand{KJ92}{KQ9}{J}{AQJT8}
22 \southhand{AQT85}{A52}{64}{K96}
23 \showNS
24 \end{HBox}
25 \vfill
26 %
27 \end{document}
28 \endinput
29