moderncvcompatibility.sty 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. %% start of file `moderncvcompatibility.sty'.
  2. %% Copyright 2007 Xavier Danaux (xdanaux@gmail.com).
  3. %
  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/.
  7. %-------------------------------------------------------------------------------
  8. % identification
  9. %-------------------------------------------------------------------------------
  10. \NeedsTeXFormat{LaTeX2e}
  11. \ProvidesPackage{moderncvcompatibility}[2007/05/28 v0.6 modern curriculum vitae compatibility patches]
  12. %-------------------------------------------------------------------------------
  13. % required packages
  14. %-------------------------------------------------------------------------------
  15. %-------------------------------------------------------------------------------
  16. % package options
  17. %-------------------------------------------------------------------------------
  18. % old casual option (version 0.1)
  19. %\DeclareOption{casual}{\input{moderncvstylecasual.sty}}
  20. % old classic option (version 0.1)
  21. %\DeclareOption{classic}{\input{moderncvstyleclassic.sty}}
  22. \DeclareOption*{}
  23. % process given options
  24. \ProcessOptions\relax
  25. %-------------------------------------------------------------------------------
  26. % definitions
  27. %-------------------------------------------------------------------------------
  28. % compatibility with version 0.1
  29. \newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}}
  30. % compatibility with versions <= 0.2
  31. % section, cvline, ... with width argument...
  32. %\newcommand*{\section}[2][0.825]{%
  33. % \closesection{}%
  34. % \@sectionopentrue%
  35. % \addcontentsline{toc}{part}{#2}
  36. % \begin{longtable}[t]{@{}r@{\hspace{.025\textwidth}}@{}p{#1\textwidth}@{}}%
  37. %% \colorrule{.15\textwidth}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
  38. % {\color{sectionrectanglecolor}\rule{0.15\textwidth}{1ex}}&\mbox{\color{sectiontitlecolor}\sectionfont#2}\\[1ex]}%
  39. %\newcommand*{\cvline}[3][.825]{%
  40. % \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\small\sffamily#2\end{minipage}&\begin{minipage}[t]{\maincolumnwidth}#3\end{minipage}\\}
  41. %\newcommand*{\cvitem}[3][.825]{%
  42. % \cvline[#1]{#2}{#3\vspace*{.75em}}} % the \vspace*{} inside the cvline environment is a hack... (should conceptually be outside the environment)
  43. % compatibility with versions <= 0.5
  44. \newcommand*{\cvitem}[2]{\cvline{#1}{#2}}
  45. \newcommand*{\moderncvstyle}[1]{\moderncvtheme{#1}}
  46. \endinput
  47. %% end of file `moderncvcompatibility.sty'.