diff options
Diffstat (limited to 'macros/latex/contrib/onedown/examples/onedown-examples.tex')
-rw-r--r-- | macros/latex/contrib/onedown/examples/onedown-examples.tex | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/macros/latex/contrib/onedown/examples/onedown-examples.tex b/macros/latex/contrib/onedown/examples/onedown-examples.tex index d572b06cd2..1e5f5b57ad 100644 --- a/macros/latex/contrib/onedown/examples/onedown-examples.tex +++ b/macros/latex/contrib/onedown/examples/onedown-examples.tex @@ -1,6 +1,6 @@ %% %% onedown-examples.tex -%% April 16, 2018 +%% Oct 04, 2019 %% Requires the onedown bundle %% Part of the OneDown bundle (mirror.ctan.org/onedown) %% author: J. Wiersma @@ -17,9 +17,17 @@ \usepackage[T1]{fontenc} % \usepackage{subfiles}% can compile stand-alone/combined -\usepackage[dutch,norsk,% - turkish,shorthands=,% avoid problems with ':', '=' and '!' - german,english]{babel}% introduce possible languages +\usepackage[% + danish,% + dutch,% + french,% + german,% + norsk,% + spanish,es-noshorthands,% unset active chars to avoid problems with '.' '’' '"' '~' '<' and '>' + swedish,% + turkish,shorthands=,% unset active chars to avoid problems with ':', '=' and '!' + english,% +]{babel}% introduce all known languages, default is english %\usepackage[mono=false]{libertine}% verbatim needs option mono=false % linertine screws verbatim, at least I don't know how to handle that @@ -104,8 +112,15 @@ \def\SubFile#1{\def\FileName{#1}\newpage\section{#1}\subfile{#1}} \addtolength{\textheight}{1.5cm} - +\def\ExLang{english} \begin{document} +% when compiled with: +% pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-ref.tex}' +% you'll get the onedown commands expansions in YourLanguage +% YourLanguage can be any language out of: +% english, danish, dutch, french, german, norsk, spanish, swedish, turkish +% +\expandafter\selectlanguage\expandafter{\ExLang} \pdfbookmark[1]{Title}{Title} \title{Examples for the\\\OneDown package% \footnote{This file is part of the \OneDown bundle. To generate this file, @@ -137,6 +152,12 @@ sections bear the file name, which can also be found in the list below. The examples are produced using the \textsf{tcolorbox} package. This enables us to show the code and the output of it side by side. +The explanatory text is always in the English language. But you can show the output of all commands +in any of the supported languages.\\ +These are: english, danish, dutch, french, german, norsk, spanish, swedish, turkish. \\ +You obtain this output in \emph{YourLanguage} by compiling onedown-ref.tex with: \\[0.2em] + +\verb|pdflatex '\AtBeginDocument{\def\RefLang{YourLanguage}}\input{onedown-examples.tex}'| \par\vspace{1\baselineskip} \setlength\columnseprule{.8pt}% rule between cols \begin{multicols}{3}[{\centering \textbf{\Large List of Examples}}] |