comsoft/moderncvcompatibility.sty
changeset 0 9784821a1c6f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/comsoft/moderncvcompatibility.sty	Sat Jul 03 12:15:48 2010 +0200
     1.3 @@ -0,0 +1,72 @@
     1.4 +%% start of file `moderncvcompatibility.sty'.
     1.5 +%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com).
     1.6 +%
     1.7 +% This work may be distributed and/or modified under the
     1.8 +% conditions of the LaTeX Project Public License version 1.3c,
     1.9 +% available at http://www.latex-project.org/lppl/.
    1.10 +
    1.11 +
    1.12 +%-------------------------------------------------------------------------------
    1.13 +%                identification
    1.14 +%-------------------------------------------------------------------------------
    1.15 +\NeedsTeXFormat{LaTeX2e}
    1.16 +\ProvidesPackage{moderncvcompatibility}[2008/06/17 v0.7 modern curriculum vitae compatibility patches]
    1.17 +
    1.18 +
    1.19 +%-------------------------------------------------------------------------------
    1.20 +%                required packages
    1.21 +%-------------------------------------------------------------------------------
    1.22 +
    1.23 +
    1.24 +%-------------------------------------------------------------------------------
    1.25 +%                package options
    1.26 +%-------------------------------------------------------------------------------
    1.27 +% old casual option (version 0.1)
    1.28 +%\DeclareOption{casual}{\input{moderncvstylecasual.sty}}
    1.29 +
    1.30 +% old classic option (version 0.1)
    1.31 +%\DeclareOption{classic}{\input{moderncvstyleclassic.sty}}
    1.32 +
    1.33 +\DeclareOption*{}
    1.34 +
    1.35 +% process given options
    1.36 +\ProcessOptions\relax
    1.37 +
    1.38 +%-------------------------------------------------------------------------------
    1.39 +%                definitions
    1.40 +%-------------------------------------------------------------------------------
    1.41 +% compatibility with version 0.1
    1.42 +\newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}}
    1.43 +
    1.44 +% compatibility with versions <= 0.2
    1.45 +% section, cvline, ... with width argument...
    1.46 +%\newcommand*{\section}[2][0.825]{%
    1.47 +%  \closesection{}%
    1.48 +%  \@sectionopentrue%
    1.49 +%  \addcontentsline{toc}{part}{#2}
    1.50 +%  \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}%
    1.51 +%%  \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
    1.52 +%  {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
    1.53 +%\newcommand*{\cvline}[3][.825]{%
    1.54 +%  \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\}
    1.55 +%\newcommand*{\cvitem}[3][.825]{%
    1.56 +%  \cvline[#1]{#2}{#3\vspace*{.75em}}}   % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment)
    1.57 +
    1.58 +% compatibility with versions <= 0.5
    1.59 +\newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
    1.60 +\newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
    1.61 +
    1.62 +% compatibility with versions <=0.7
    1.63 +\newcommand*{\closesection}{}
    1.64 +\newcommand*{\emptysection}{}
    1.65 +\newcommand*{\sethintscolumnlength}[1]{%
    1.66 +  \setlength{\hintscolumnwidth}{#1}%
    1.67 +  \recomputelengths}
    1.68 +\newcommand*{\sethintscolumntowidth}[1]{%
    1.69 +  \settowidth{\hintscolumnwidth}{#1}%
    1.70 +  \recomputelengths}
    1.71 +
    1.72 +\endinput
    1.73 +
    1.74 +
    1.75 +%% end of file `moderncvcompatibility.sty'.