Add some conditional compilation to only extract the CV.

This commit is contained in:
Sergiu Ivanov 2024-01-31 14:23:59 +01:00
parent 6e312dc069
commit 2f3bdd4be4
1 changed files with 14 additions and 0 deletions

14
hdr.tex
View File

@ -84,6 +84,10 @@
\graphicspath{{pics/}}
\usetikzlibrary{calc}
\newif\ifentiredoc
\entiredoctrue % Use this if you want to compile the entire document.
%\entiredocfalse % Use this if you only want the CV.
\begin{document}
\pagestyle{fancy}
@ -95,6 +99,8 @@
\fancyhead[LO,RE]{\textcolor{Prune}{\textsl{\leftmark}}}
\renewcommand{\headrule}{{\color{Prune}\hrule}}
\ifentiredoc
\newgeometry{left=6cm,bottom=2cm,top=1cm,right=1cm}
\setlength{\headheight}{14.89998pt}
\input{title-page}
@ -103,17 +109,25 @@
\setlength{\headheight}{14.89998pt}
\input{abstracts}
\fi
\newgeometry{top=2cm, bottom=2cm, left=2cm, right=2cm}
\setlength{\headheight}{14.89998pt}
\ifentiredoc
\tableofcontents
\changelocaltocdepth{0}
\fi
\input{cv}
\ifentiredoc
\changelocaltocdepth{2}
\fi
\end{document}
%%% Local Variables: