Debian Codegraph @

texmf-dist/doc/latex/onedown/Examples/Languages.tex

raw
1 \documentclass[onedown-examples]{subfiles}
2
3 \begin{document}
4 As a demonstration of the multilingual features of the \OneDown package we
5 show a diagram with turkish annotations. \\
6 Note:\\
7 Due to an quirk in the babel implementation of the turkish and some
8 other language, you must either call |\shorthandoff{=!}| after loading the
9 language, or load it with e.g.\ \\
10 |\usepackage[turkish,shorthands=]{babel}|.
11
12 Refer to the \OneDown manual for details.
13 \vfill
14 \begin{HBox}{Languages (Turkish)\hfill File: \FileName}
15 \boardnr{32}
16 \northhand{AK43}{AJ98}{AQJ8}{4}
17 \southhand{87}{QT5}{432}{K9865}
18 \easthand{JT6}{764}{KT9}{JT32}
19 \westhand{Q952}{K32}{765}{AQ7}
20 \leftupper{\boardtext*}%
21 {\dealertext}{\vulnertext}
22 \rightupper[1ex]{\contract: }%
23 {3\,\NT}{\by \south}
24 \rightlower[1ex]{\lead: \Di 7}{}{}
25 \begin{otherlanguage}{turkish}
26 \showAll*
27 \end{otherlanguage}
28 \end{HBox}
29 \vfill\noindent
30 Here we switch to the Norwegian language. As we use the same settings for the
31 diagram, we simply call |\showAll| to display it, after we changed the
32 language. The Jack is coded with \foreignlanguage{norsk}{\jack{}}
33 rather than \jack, so the hand is now closer to the right upper legend. (We already discussed ways
34 to solve this!)
35 \vfill
36 %
37 \begin{HBox}{Languages (Norwegian)\hfill File: \FileName}
38 \begin{otherlanguage}{norsk}
39 \showAll*
40 \end{otherlanguage}
41 \end{HBox}
42 \vfill
43 %
44 \end{document}
45 \endinput
46