summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/onedown/examples/Languages.tex
blob: 61fd8bd45db8deba11b59aa7303ba92bdebd1b77 (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
\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 thaj \jack, so the hand is now closer to the right upper legend.
\vfill
%
\begin{HBox}{Languages (Norwegian)\hfill File: \FileName}
\begin{otherlanguage}{norsk}
\showAll*
\end{otherlanguage}
\end{HBox}
\vfill
%
\end{document}
\endinput