40 lines
1.5 KiB
TeX
40 lines
1.5 KiB
TeX
%-------------------------------------------------------------------------------
|
|
% identification
|
|
%-------------------------------------------------------------------------------
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{customcommands}[2025/10/28 custom commands for caperren]
|
|
|
|
\RequirePackage{datetime2}
|
|
\RequirePackage{pgfmath}
|
|
\RequirePackage{moderncvfooti}
|
|
\RequirePackage{xcolor}
|
|
%-------------------------------------------------------------------------------
|
|
% command definitions
|
|
%-------------------------------------------------------------------------------
|
|
% Specific to undoing the section and sub-section spacing of the moderncv templates without forking the whole thing
|
|
\newcommand*{\removesectionmargin}{\vspace{-2ex}}
|
|
\newcommand*{\removesectionpadding}{\vspace{-1ex}}
|
|
|
|
\newcommand*{\removesubsectionmargin}{\vspace{-1ex}}
|
|
\newcommand*{\removesubsectionpadding}{\vspace{-0.5ex}}
|
|
|
|
\newcommand{\yearsSince}[3]{
|
|
\pgfmathparse{
|
|
int(\year - \number#1 - ((\month < \number#2) || ((\month == \number#2) && (\day < \number#3)) ? 1 : 0))
|
|
}
|
|
\pgfmathresult
|
|
}
|
|
|
|
\newcommand{\addcustomcvfooter}{
|
|
\fancypagestyle{plain}{
|
|
\fancyfoot[c]{
|
|
\parbox[b]{\footwidth}{
|
|
\centering
|
|
\color{addresscolor}\addressfont
|
|
\vspace{\baselineskip}
|
|
\textit{\small{References available upon request. Detailed experiences are available on my website.}}
|
|
}}}
|
|
\pagestyle{plain}
|
|
}
|
|
|
|
\endinput |