summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/onedown/examples/Languages.tex
blob: 568f8d0c2aaf991761937ef10503e20880a0e753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\documentclass[onedown-examples]{subfiles}

\begin{document}
As a demonstration of the multilingual features of the \OneDown package we
show a diagram with turkish annotations. \\
Note:\\
Due to an quirk in the babel implementation of the turkish and some
other language, you must either call |\shorthandoff{=!}| after loading the
language, or load it with e.g.\ \\ 
|\usepackage[turkish,shorthands=]{babel}|.

Refer to the \OneDown manual for details.
\vfill
\begin{HBox}{Languages (Turkish)\hfill File: \FileName}
\boardnr{32}
\northhand{AK43}{AJ98}{AQJ8}{4}
\southhand{87}{QT5}{432}{K9865}
\easthand{JT6}{764}{KT9}{JT32}
\westhand{Q952}{K32}{765}{AQ7}
\leftupper{\boardtext*}%
  {\dealertext}{\vulnertext}
\rightupper[1ex]{\contract: }%
  {3\,\NT}{\by \south}
\rightlower[1ex]{\lead: \Di 7}{}{}
\begin{otherlanguage}{turkish}
\showAll*
\end{otherlanguage}
\end{HBox}
\vfill\noindent
Here we switch to the Norwegian language. As we use the same settings for the
diagram, we simply call |\showAll| to display it, after we changed the
language. The Jack is coded with \foreignlanguage{norsk}{\jack{}}
rather than \jack, so the hand is now closer to the right upper legend. (We already discussed ways
to solve this!)
\vfill
%
\begin{HBox}{Languages (Norwegian)\hfill File: \FileName}
\begin{otherlanguage}{norsk}
\showAll*
\end{otherlanguage}
\end{HBox}
\vfill
%
\end{document}
\endinput