summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/Examples/showNS-warn-I.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/onedown/Examples/showNS-warn-I.tex')
-rw-r--r--macros/latex/contrib/onedown/Examples/showNS-warn-I.tex29
1 files changed, 29 insertions, 0 deletions
diff --git a/macros/latex/contrib/onedown/Examples/showNS-warn-I.tex b/macros/latex/contrib/onedown/Examples/showNS-warn-I.tex
new file mode 100644
index 0000000000..a24c9a0066
--- /dev/null
+++ b/macros/latex/contrib/onedown/Examples/showNS-warn-I.tex
@@ -0,0 +1,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
+