Added the \@initializeif and \@moderncvstrut general commands

This commit is contained in:
Xavier Danaux
2014-02-17 20:24:21 -05:00
parent e5a190efd9
commit 0889a274f0

View File

@ -354,13 +354,23 @@
\else%
\newlength{#1}\fi}
% creates a savebox if not yet defined
% creates a box if not yet defined
\newcommand*{\@initializebox}[1]{%
\ifdefined#1
\savebox{#1}{}%
\else%
\newsavebox{#1}\fi}
% creates an if switch if not yet defined
\newcommand*{\@initializeif}[1]{%
\ifdefined#1
\else%
\newif#1\fi}
% custom strut for spacing; the first argument is the vertical offset of the strut, the second its total height (both as a fraction of \baselineskip)
\newcommand*{\@moderncvstrut}[2]{%
\rule[-#1\baselineskip]{0pt}{#2\baselineskip}}
%-------------------------------------------------------------------------------
% resume design commands definitions