summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/onedown/examples/Languages.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/onedown/examples/Languages.tex')
-rw-r--r--Master/texmf-dist/doc/latex/onedown/examples/Languages.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/onedown/examples/Languages.tex b/Master/texmf-dist/doc/latex/onedown/examples/Languages.tex
new file mode 100644
index 00000000000..61fd8bd45db
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/onedown/examples/Languages.tex
@@ -0,0 +1,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
+