From 3ddda73b8f597ead4878cf217b0b1c0eef648445 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin <account@voronind.com> Date: Mon, 31 Jul 2023 15:06:01 +0300 Subject: [PATCH] add switches for photo and extras. --- tex/const.tex | 8 ++++++++ tex/page/title.tex | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tex/const.tex b/tex/const.tex index 2429667..f581564 100644 --- a/tex/const.tex +++ b/tex/const.tex @@ -1,3 +1,11 @@ +% switches. +\newif\ifphoto % show photo. +\newif\ifextra % show extra content. + +\phototrue +\extrafalse + +% personal info. \newcommand{\name}{ \en{Dmitry Voronin} \ru{Дмитрий Воронин} diff --git a/tex/page/title.tex b/tex/page/title.tex index 37a57d1..c2f6f6e 100644 --- a/tex/page/title.tex +++ b/tex/page/title.tex @@ -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