2023-07-31 15:06:01 +03:00
|
|
|
% switches.
|
|
|
|
\newif\ifphoto % show photo.
|
|
|
|
\newif\ifextra % show extra content.
|
2023-08-02 17:39:51 +03:00
|
|
|
\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.
|
2023-07-31 15:06:01 +03:00
|
|
|
|
2023-08-02 17:39:51 +03:00
|
|
|
% 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.
|
2023-07-31 15:06:01 +03:00
|
|
|
|
|
|
|
% personal info.
|
2023-08-01 16:20:50 +03:00
|
|
|
\newcommand{\name}{%
|
2023-08-01 16:39:03 +03:00
|
|
|
\en{Dmitry Voronin}%
|
2023-07-31 06:23:21 +03:00
|
|
|
\ru{Дмитрий Воронин}
|
|
|
|
}
|
2023-08-01 16:20:50 +03:00
|
|
|
\newcommand{\location}{%
|
2023-08-01 16:39:03 +03:00
|
|
|
\en{St. Petersburg, Russia}%
|
2023-07-31 06:23:21 +03:00
|
|
|
\ru{Санкт-Петербург, Россия}
|
|
|
|
}
|
|
|
|
\newcommand{\birthday}{\jun 1998}
|
|
|
|
\newcommand{\email}{job@voronind.com}
|
|
|
|
\newcommand{\phone}{+7(905)836-68-86}
|