corso-di-italiano-per-stran.../definitions.tex

18 lines
445 B
TeX
Raw Normal View History

2020-11-14 19:20:06 +01:00
\newcommand\gm{\textit{(m.)} }
\newcommand\gf{\textit{(f.)} }
\newenvironment{translation}[1]{%
\def\switchtolang{#1}
% TODO: for now we accept only german, else proper case handling needed:
\ifdefined\GermanTranslation
\begin{adjustwidth}{.1\textwidth}{}
\begin{\switchtolang}
\itshape
}{%
\end{\switchtolang}
\end{adjustwidth}
\else % do not translate
% No output
\fi
}