Added the \@initializeif and \@moderncvstrut general commands
This commit is contained in:
12
moderncv.cls
12
moderncv.cls
@ -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
|
||||
|
||||
Reference in New Issue
Block a user