add switches for photo and extras.

This commit is contained in:
Dmitry Voronin 2023-07-31 15:06:01 +03:00
parent ef256dfd62
commit 3ddda73b8f
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,11 @@
% switches.
\newif\ifphoto % show photo.
\newif\ifextra % show extra content.
\phototrue
\extrafalse
% personal info.
\newcommand{\name}{
\en{Dmitry Voronin}
\ru{Дмитрий Воронин}

View file

@ -1,9 +1,12 @@
\begin{minipage}{0.2\textwidth}
% photo.
\includegraphics[width=3cm]{photo}
\ifphoto
\includegraphics[width=3cm]{photo}
\fi
\end{minipage}
\begin{minipage}{0.8\textwidth}
% name
\hspace{-3mm} % required fix for montserrat font.
\sname{\name}
\vspace{2mm}\newline