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

22 lines
562 B
TeX

\newcommand\gm{\textit{(m.)} }
\newcommand\gf{\textit{(f.)} }
\definecolor{translationcolor}{RGB}{224, 123, 57}
\providecommand{ActiveTranslation}{none}
\newenvironment{translation}[1]{%
\def\switchtolang{#1}
\ifx\switchtolang\ActiveTranslation
\bigskip
\begin{adjustwidth}{3em}{}
\begin{\switchtolang}
\textsc{\titlecap{\switchtolang}}:
\itshape\color{translationcolor}
}{%
\end{\switchtolang}
\end{adjustwidth}
\bigskip
\else % do not translate
% No output
\fi
}