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

18 lines
416 B
TeX
Raw Normal View History

2020-11-14 19:20:06 +01:00
\newcommand\gm{\textit{(m.)} }
\newcommand\gf{\textit{(f.)} }
2020-11-14 22:19:02 +01:00
\providecommand{ActiveTranslation}{none}
2020-11-14 19:20:06 +01:00
\newenvironment{translation}[1]{%
\def\switchtolang{#1}
2020-11-14 22:19:02 +01:00
\ifx\switchtolang\ActiveTranslation
2020-11-14 19:20:06 +01:00
\begin{adjustwidth}{.1\textwidth}{}
\begin{\switchtolang}
\itshape
}{%
\end{\switchtolang}
\end{adjustwidth}
\else % do not translate
% No output
\fi
}