mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Code refactoring separating style schemes from color schemes
This commit is contained in:
parent
3d3a628fb7
commit
5dc47a8c75
21 changed files with 678 additions and 603 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue