2024-03-06 01:12:17 +03:00
|
|
|
% 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.
|
2024-03-06 03:56:08 +03:00
|
|
|
\GetEnv[\envPhoto]{RESUME_PHOTO} % Read photo shell variable.
|
|
|
|
\GetEnv[\envExtra]{RESUME_EXTRA} % Read extra shell variable.
|
|
|
|
\GetEnv[\envLang]{RESUME_LANG} % Read language shell variable.
|
2024-03-06 01:12:17 +03:00
|
|
|
\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}
|
2024-09-19 19:19:46 +03:00
|
|
|
\newcommand{\Telegram}{https://t.me/voronind\_com}
|