From f63e0796679146857f1881de145a4ad31bdd83d2 Mon Sep 17 00:00:00 2001 From: Matteo Settenvini Date: Sat, 14 Nov 2020 22:19:02 +0100 Subject: [PATCH] Fix handling of conditional for l10n --- .latexmkrc | 2 +- definitions.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.latexmkrc b/.latexmkrc index a61a8a8..5816eb5 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -6,4 +6,4 @@ $aux_dir = 'build'; $out_dir = 'build'; $pdf_previewer = 'xdg-open'; -$pre_tex_code = '\newcommand*\GermanTranslation{}'; +$pre_tex_code = '\newcommand*\ActiveTranslation{german}'; diff --git a/definitions.tex b/definitions.tex index ed04259..abbbcd4 100644 --- a/definitions.tex +++ b/definitions.tex @@ -1,10 +1,10 @@ \newcommand\gm{\textit{(m.)} } \newcommand\gf{\textit{(f.)} } +\providecommand{ActiveTranslation}{none} \newenvironment{translation}[1]{% \def\switchtolang{#1} - % TODO: for now we accept only german, else proper case handling needed: - \ifdefined\GermanTranslation + \ifx\switchtolang\ActiveTranslation \begin{adjustwidth}{.1\textwidth}{} \begin{\switchtolang} \itshape