diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-09 03:03:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-09 03:03:37 +0000 |
commit | 1bac51c9be71358b55925783e16f3d8bc03d630b (patch) | |
tree | 3e7fe5a309cf68674318a5396ebb83fa5f7a051e /macros/latex/contrib/onedown/Examples/showNS-align.tex | |
parent | 24d8cd26aa53d1cac2260d29c6cf1c387a61a32a (diff) |
CTAN sync 202312090303
Diffstat (limited to 'macros/latex/contrib/onedown/Examples/showNS-align.tex')
-rw-r--r-- | macros/latex/contrib/onedown/Examples/showNS-align.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/macros/latex/contrib/onedown/Examples/showNS-align.tex b/macros/latex/contrib/onedown/Examples/showNS-align.tex new file mode 100644 index 0000000000..47234eb1d0 --- /dev/null +++ b/macros/latex/contrib/onedown/Examples/showNS-align.tex @@ -0,0 +1,39 @@ +\documentclass[onedown-examples]{subfiles} +\begin{document} +These examples show the alignment of diagrams. +The alignment is given as an optional argument to the |showXX| commands. It +bears the usual name for alignments: \textbf{t} for top, \textbf{b} for +bottom and \textbf{c} for centered. Note that the |\smaller\smaller| from +a previous example is still in effect: The command |\newgame| does not +reset any font. Please note the difference between diagram 1 and 3. The +font used for the suits is \textbf{not} the same. + +\vfill +\begin{HBox}{showNS top algned\hfill File: \FileName} +\newgame +\northhand{KJ92}{KQ9}{J}{AQJT8} +\southhand{AQT85}{A52}{64}{K96} +A \showNS[t] B +\resetfonts +C \showNS[t] D +\gamefont{\sffamily\bfseries\smaller\smaller} +E \showNS[t] F +\end{HBox} +\vfill +We do need to call |\resetfonts| (or |\gamefont|) explicitly to reset the +font or size. +\vfill +\begin{HBox}{showNS center aligned\hfill File: \FileName} +\resetfonts +% \gamefont would do the job as well +%\gamefont{\bfseries\sffamily} +A \showNS[c] B +\end{HBox} +\vfill +\begin{HBox}{showNS bottom aligned\hfill File: \FileName} +A \showNS[b] B +\end{HBox} +\vfill +\end{document} +\endinput + |