resume/tex/const.tex

36 lines
1.3 KiB
TeX
Raw Normal View History

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