1 %% start of file `moderncvcompatibility.sty'.
2 %% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com).
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License version 1.3c,
6 % available at http://www.latex-project.org/lppl/.
9 %-------------------------------------------------------------------------------
11 %-------------------------------------------------------------------------------
12 \NeedsTeXFormat{LaTeX2e}
13 \ProvidesPackage{moderncvcompatibility}[2008/06/17 v0.7 modern curriculum vitae compatibility patches]
16 %-------------------------------------------------------------------------------
18 %-------------------------------------------------------------------------------
21 %-------------------------------------------------------------------------------
23 %-------------------------------------------------------------------------------
24 % old casual option (version 0.1)
25 %\DeclareOption{casual}{\input{moderncvstylecasual.sty}}
27 % old classic option (version 0.1)
28 %\DeclareOption{classic}{\input{moderncvstyleclassic.sty}}
32 % process given options
35 %-------------------------------------------------------------------------------
37 %-------------------------------------------------------------------------------
38 % compatibility with version 0.1
39 \newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}}
41 % compatibility with versions <= 0.2
42 % section, cvline, ... with width argument...
43 %\newcommand*{\section}[2][0.825]{%
46 % \addcontentsline{toc}{part}{#2}
47 % \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}%
48 %% \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
49 % {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
50 %\newcommand*{\cvline}[3][.825]{%
51 % \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\}
52 %\newcommand*{\cvitem}[3][.825]{%
53 % \cvline[#1]{#2}{#3\vspace*{.75em}}} % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment)
55 % compatibility with versions <= 0.5
56 \newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
57 \newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
59 % compatibility with versions <=0.7
60 \newcommand*{\closesection}{}
61 \newcommand*{\emptysection}{}
62 \newcommand*{\sethintscolumnlength}[1]{%
63 \setlength{\hintscolumnwidth}{#1}%
65 \newcommand*{\sethintscolumntowidth}[1]{%
66 \settowidth{\hintscolumnwidth}{#1}%
72 %% end of file `moderncvcompatibility.sty'.