66 lines
1.2 KiB
TeX
66 lines
1.2 KiB
TeX
% language switches.
|
|
\newif\ifen
|
|
\newif\ifru
|
|
|
|
\newcommand{\en}[1]{\ifen#1\fi}
|
|
\newcommand{\ru}[1]{\ifru#1\fi}
|
|
|
|
% language detection.
|
|
\def\liten{en} % english literal.
|
|
\def\litru{ru} % russian literal.
|
|
\def\litnil{} % empty literal.
|
|
\getenv[\lang]{RESUME_LANG} % read shell variable.
|
|
\ifdefequal{\lang}{\liten}{\entrue}{} % use english.
|
|
\ifdefequal{\lang}{\litru}{\rutrue}{} % use russian.
|
|
\ifdefequal{\lang}{\litnil}{\entrue}{} % use english by default.
|
|
|
|
% months.
|
|
\newcommand{\jan}{
|
|
\en{January}
|
|
\ru{январь}
|
|
}
|
|
\newcommand{\feb}{
|
|
\en{February}
|
|
\ru{февраль}
|
|
}
|
|
\newcommand{\mar}{
|
|
\en{March}
|
|
\ru{март}
|
|
}
|
|
\newcommand{\apr}{
|
|
\en{April}
|
|
\ru{апрель}
|
|
}
|
|
\newcommand{\may}{
|
|
\en{May}
|
|
\ru{май}
|
|
}
|
|
\newcommand{\jun}{
|
|
\en{June}
|
|
\ru{июнь}
|
|
}
|
|
\newcommand{\jul}{
|
|
\en{July}
|
|
\ru{июль}
|
|
}
|
|
\newcommand{\aug}{
|
|
\en{August}
|
|
\ru{август}
|
|
}
|
|
\newcommand{\sep}{
|
|
\en{September}
|
|
\ru{сентябрь}
|
|
}
|
|
\newcommand{\oct}{
|
|
\en{October}
|
|
\ru{октябрь}
|
|
}
|
|
\newcommand{\nov}{
|
|
\en{November}
|
|
\ru{ноябрь}
|
|
}
|
|
\newcommand{\dec}{
|
|
\en{December}
|
|
\ru{декабрь}
|
|
}
|