summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderncv/moderncvcompatibility.sty
blob: 19b62d883451fa738da0dd1eaebe144c5f4dd46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%% start of file `moderncvcompatibility.sty'.
%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


%-------------------------------------------------------------------------------
%                identification
%-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvcompatibility}[2008/06/17 v0.7 modern curriculum vitae compatibility patches]


%-------------------------------------------------------------------------------
%                required packages
%-------------------------------------------------------------------------------


%-------------------------------------------------------------------------------
%                package options
%-------------------------------------------------------------------------------
% old casual option (version 0.1)
%\DeclareOption{casual}{\input{moderncvstylecasual.sty}}

% old classic option (version 0.1)
%\DeclareOption{classic}{\input{moderncvstyleclassic.sty}}

\DeclareOption*{}

% process given options
\ProcessOptions\relax

%-------------------------------------------------------------------------------
%                definitions
%-------------------------------------------------------------------------------
% compatibility with version 0.1
\newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}}

% compatibility with versions <= 0.2
% section, cvline, ... with width argument...
%\newcommand*{\section}[2][0.825]{%
%  \closesection{}%
%  \@sectionopentrue%
%  \addcontentsline{toc}{part}{#2}
%  \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}%
%%  \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
%  {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
%\newcommand*{\cvline}[3][.825]{%
%  \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\}
%\newcommand*{\cvitem}[3][.825]{%
%  \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}}

% compatibility with versions <=0.7
\newcommand*{\closesection}{}
\newcommand*{\emptysection}{}
\newcommand*{\sethintscolumnlength}[1]{%
  \setlength{\hintscolumnwidth}{#1}%
  \recomputelengths}
\newcommand*{\sethintscolumntowidth}[1]{%
  \settowidth{\hintscolumnwidth}{#1}%
  \recomputelengths}

\endinput


%% end of file `moderncvcompatibility.sty'.