Code refactoring separating style schemes from color schemes

This commit is contained in:
Xavier Danaux
2011-12-12 01:23:29 +01:00
parent 3d3a628fb7
commit 5dc47a8c75
21 changed files with 671 additions and 596 deletions

View File

@ -53,10 +53,10 @@
% \cvline[#1]{#2}{#3\vspace*{.75em}}} % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment)
% compatibility with versions <= 0.5
\newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
\newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
%\newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
%\newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
% compatibility with versions <=0.7
% compatibility with versions <= 0.7
\newcommand*{\closesection}{}
\newcommand*{\emptysection}{}
\newcommand*{\sethintscolumnlength}[1]{%
@ -66,6 +66,14 @@
\settowidth{\hintscolumnwidth}{#1}%
\recomputelengths}
% compatibility with versions <= 0.15
\newcommand*{\cvline}[2]{\cvitem{#1}{#2}}
\newcommand*{\cvlanguage}[3]{\cvitemwithcomment{#1}{#2}{#3}}
\newcommand*{\cvcomputer}[4]{\cvdoubleitem{#1}{\small#2}{#3}{\small#4}}
\newcommand*{\moderncvtheme}[2][blue]{%
\moderncvcolor{#1}%
\moderncvstyle{#2}}
\endinput