36 lines
1.3 KiB
TeX
36 lines
1.3 KiB
TeX
% switches.
|
|
\newif\ifphoto % show photo.
|
|
\newif\ifextra % show extra content.
|
|
\newif\ifen % english language.
|
|
\newif\ifru % russian language.
|
|
\newcommand{\en}[1]{\ifen#1\fi} % print if english language.
|
|
\newcommand{\ru}[1]{\ifru#1\fi} % print if russian language.
|
|
|
|
% read env variables.
|
|
\def\envtrue{true} % true.
|
|
\def\envfalse{false} % false.
|
|
\def\enven{en} % english literal.
|
|
\def\envru{ru} % russian literal.
|
|
\def\envempty{} % empty env value.
|
|
\getenv[\envphoto]{RESUME_PHOTO} % read photo shell variable.
|
|
\getenv[\envextra]{RESUME_EXTRA} % read extra shell variable.
|
|
\getenv[\envlang]{RESUME_LANG} % read language shell variable.
|
|
\ifdefequal{\envphoto}{\envtrue}{\phototrue}{\photofalse} % show photo.
|
|
\ifdefequal{\envextra}{\envtrue}{\extratrue}{\extrafalse} % show extra content.
|
|
\ifdefequal{\envlang}{\enven}{\entrue}{} % use english.
|
|
\ifdefequal{\envlang}{\envru}{\rutrue}{} % use russian.
|
|
\ifdefequal{\envlang}{\envempty}{\entrue}{} % use english by default.
|
|
|
|
% personal info.
|
|
\newcommand{\name}{%
|
|
\en{Dmitry Voronin}%
|
|
\ru{Дмитрий Воронин}
|
|
}
|
|
\newcommand{\location}{%
|
|
\en{St. Petersburg, Russia}%
|
|
\ru{Санкт-Петербург, Россия}
|
|
}
|
|
\newcommand{\birthday}{\jun 1998}
|
|
\newcommand{\email}{job@voronind.com}
|
|
\newcommand{\phone}{+7(905)836-68-86}
|