Debian Codegraph @

texmf-dist/doc/latex/onedown/Examples/showNS-align.tex

raw
1 \documentclass[onedown-examples]{subfiles}
2 \begin{document}
3 These examples show the alignment of diagrams.
4 The alignment is given as an optional argument to the |showXX| commands. It
5 bears the usual name for alignments: \textbf{t} for top, \textbf{b} for
6 bottom and \textbf{c} for centered. Note that the |\smaller\smaller| from
7 a previous example is still in effect: The command |\newgame| does not
8 reset any font. Please note the difference between diagram 1 and 3. The
9 font used for the suits is \textbf{not} the same.
10
11 \vfill
12 \begin{HBox}{showNS top algned\hfill File: \FileName}
13 \newgame
14 \northhand{KJ92}{KQ9}{J}{AQJT8}
15 \southhand{AQT85}{A52}{64}{K96}
16 A \showNS[t] B
17 \resetfonts
18 C \showNS[t] D
19 \gamefont{\sffamily\bfseries\smaller\smaller}
20 E \showNS[t] F
21 \end{HBox}
22 \vfill
23 We do need to call |\resetfonts| (or |\gamefont|) explicitly to reset the
24 font or size.
25 \vfill
26 \begin{HBox}{showNS center aligned\hfill File: \FileName}
27 \resetfonts
28 % \gamefont would do the job as well
29 %\gamefont{\bfseries\sffamily}
30 A \showNS[c] B
31 \end{HBox}
32 \vfill
33 \begin{HBox}{showNS bottom aligned\hfill File: \FileName}
34 A \showNS[b] B
35 \end{HBox}
36 \vfill
37 \end{document}
38 \endinput
39