mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Added the \@initializeif and \@moderncvstrut general commands
This commit is contained in:
parent
e5a190efd9
commit
0889a274f0
1 changed files with 11 additions and 1 deletions
12
moderncv.cls
12
moderncv.cls
|
|
@ -354,13 +354,23 @@
|
||||||
\else%
|
\else%
|
||||||
\newlength{#1}\fi}
|
\newlength{#1}\fi}
|
||||||
|
|
||||||
% creates a savebox if not yet defined
|
% creates a box if not yet defined
|
||||||
\newcommand*{\@initializebox}[1]{%
|
\newcommand*{\@initializebox}[1]{%
|
||||||
\ifdefined#1
|
\ifdefined#1
|
||||||
\savebox{#1}{}%
|
\savebox{#1}{}%
|
||||||
\else%
|
\else%
|
||||||
\newsavebox{#1}\fi}
|
\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
|
% resume design commands definitions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue