diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..8b0f91a --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,20 @@ +version 0.2 (6 March 2006) + - rewrite of the code to have the styles (fonts, colours, headers and footers) be defined + in different files than the class. The styles are now defined in a separate file per style, + named moderncvstyle. It should now be easy to write your own + style, starting from moderncvstyleempty.sty. If you feel you have created a nice style, + just email it to me and I'll include it in the next version. + - due to the previous point, styles are now loaded by the command + \moderncvstyle{style_name}. I couldn't figure out a way to preserve the old + "casual" and "classic" class options, so these are now broken! Use + \moderncvstyle{casual} or \moderncvstyle{classic} at the beginning of your + document. This should be the only incompatibility with version 0.1. + - added class option "nolmodern" for people without the latin modern fonts. + - corrected some English mistakes in the examples. Thanks to Machael H. Prager for + pointing them out. + - added a \cvlistitem to produce items with a bullet (controlled by \listitemsymbol), and + renamed \cvresume to \cvlistdoubleitem for consistency purpose. For compatibility + reasons, the command \cvresume still works, but should be avoided. + +version 0.1 (1 March 2006) + - first release. diff --git a/KNOWN_BUGS b/KNOWN_BUGS index e81839a..129df68 100644 --- a/KNOWN_BUGS +++ b/KNOWN_BUGS @@ -1,2 +1,3 @@ -* Inside the last argument of \cventry, used to display some complementary information of an entry, the command "\\" doesn't seem to work, while "\newline" works perfectly. I have no idea why... - +* Inside the last argument of \cventry, used to display some complementary +information of an entry, the command "\\" doesn't seem to work, while "\newline" works +perfectly. I have no idea why... diff --git a/README b/README index 9a049ef..f7958e4 100644 --- a/README +++ b/README @@ -1,15 +1,19 @@ moderncv -- a modern curriculum vitae class -Moderncv provides a documentclass for typesetting modern curriculum vitaes, both in a classic and in a casual style. It is fairly customizable, allowing you to define your own style by changing the colors, the fonts, ... +Moderncv provides a documentclass for typesetting modern curriculum vitaes, both in a +classic and in a casual style. It is fairly customizable, allowing you to define your own +style by changing the colors, the fonts, ... -The moderncv documentclass need it's input to be formated with regular commands (\section, \subsection, \maketitle, ...), but also defines its own special commands (\cventry, \makequote, \firsname, \familyname, ...). +The moderncv documentclass need it's input to be formated with regular commands +(\section, \subsection, \maketitle, ...), but also defines its own special commands +(\cventry, \makequote, \firsname, \familyname, ...). All the commands are defined in such a way that the arguments are always optional. Documents can be compiled into dvi, ps or pdf. -Untill a decent manual is written, you can always look in the "examples" directory for some decent examples. +Untill a decent manual is written, you can always look in the "examples" directory for +some decent examples. Author: Xavier Danaux Date: 1 march 2006 - diff --git a/examples/xdanaux_casual.pdf b/examples/xdanaux_casual.pdf new file mode 100644 index 0000000..fa79ae5 Binary files /dev/null and b/examples/xdanaux_casual.pdf differ diff --git a/examples/xdanaux_cv_classic.tex b/examples/xdanaux_casual.tex similarity index 76% rename from examples/xdanaux_cv_classic.tex rename to examples/xdanaux_casual.tex index 3363fa5..836099a 100644 --- a/examples/xdanaux_cv_classic.tex +++ b/examples/xdanaux_casual.tex @@ -1,12 +1,17 @@ \documentclass[classic]{moderncv} +% moderncv styles +\moderncvstyle{casual} + +% character encoding \usepackage[utf8]{inputenc} +% personal data \firstname{Xavier} \familyname{Danaux} \title{Dynamic and innovative engineer/jurist} \address{234 rue de l'infante, B-1410 Waterloo} -\phone{+32 (0)494 68 23 41} +\phone{+12 (3)456 78 90 12} \email{xdanaux@gmail.com} \extrainfo{{\small single with driver licence}} \quote{Am willing to tear down walls, build bridges, and light fires.\\I have no real experience, but lots of energy, a bit of that ``vision thing'',\\and I'm not afraid to start from the beginning.} @@ -14,10 +19,10 @@ %\renewcommand{\listsymbol}{{\fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}}} \definecolor{see}{rgb}{0.5,0.5,0.5} -% for text subscripts +% command for text subscripts \newcommand{\up}[1]{\ensuremath{^\textrm{\scriptsize#1}}} -% to produce the ConTeXt symbol +% the ConTeXt symbol \def\ConTeXt{% C% \kern-.0333emo% @@ -25,21 +30,21 @@ \kern-.0667em\TeX% \kern-.0333emt} -% to use slanted small caps (only with roman family; the sans serif font doesn't exists :-() +% slanted small caps (only with roman family; the sans serif font doesn't exists :-() %\usepackage{slantsc} %\DeclareFontFamily{T1}{myfont}{} %\DeclareFontShape{T1}{myfont}{m}{scsl}{ <-> cork-lmssqbo8}{} +%\usefont{T1}{myfont}{m}{scsl}Testing the font %---------------------------------------------------------------------------------- % content %---------------------------------------------------------------------------------- \begin{document} -\sffamily \maketitle% \makequote% % -\section{Assets} +\section{Strengths} \cvresume{Soon-to-be mechanical engineer specialized in computational fluid dy\-na\-mics, with a good legal education.}{Likes practicing adventure sports like skying, rock climbing and scuba diving, and has been a boy scout for five years.} \cvresume{Leadership skills.}{Open minded and eager to learn.} \cvresume{Photography and design enthusiast.}{Creative with a strong analytical mind.} @@ -50,13 +55,13 @@ \cventry{2005--current}{Master of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: --- (currently being assessed)} \cventry{2003--2005}{Bachelor of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: 70\%\hspace{2em}2\up{nd} year: 67\%} \cventry{2001--2003}{Bachelor of Science}{Université catholique de Louvain}{}{}{1\up{st} year: 74\%\hspace{2em}2\up{nd} year: 76\%} -%\cveducation{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{} -%\cveducation{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{} +%\cventry{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{}{}{} +%\cventry{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{}{}{} % \section{Master thesis} \cvitem{title}{\emph{On the rheology of entangled polymers}} \cvitem{supervisors}{Pr Christian Bailly and Pr Roland Keunings} -\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focussed on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. +\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focused on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. Depending on the model used, numerous mathematical tools are used: numerical solving of nonlinear PDEs, stochastic equations, Monte-Carlo simulations, Fourier transforms, \dots{}} % \section{Experience} @@ -64,21 +69,17 @@ Depending on the model used, numerous mathematical tools are used: numerical sol \cventry{2005--2006}{Mathematics tutor}{UCL}{Louvain-la-Neuve}{}{Supervision of practical sessions for a mathematical course given to second year engineering students (course \emph{FSAB1104: Numerical Methods}).\newline{\itshape\color{see}\footnotesize{}See \httplink{www.legat-online.be/b2q1/num}.}} \cventry{2004--2006}{Cultural project leader}{Tchouque-Tschouk Kot}{Louvain-la-Neuve}{}{Leader of a student home with a cultural project, requiring day to day management as well as the organization of public events.\newline{\itshape\color{see}\footnotesize{}See \httplink{www.organe.be}.}} %\cventry{1999--2003}{Student jobs}{}{}{}{Various student jobs, ranging from sport monitor and birthday animator for kids (Action Sport ASBL, 1999--2001) to tank station employee (Shell-Gecafin, august 2002 and september 2003) or receptionist (Randstad S.A., august 2001).} -\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} -%\cvwork{august 2003}{Job student}{Belgian Ministry of Defense}{Brussels}{Affected to the material ressources division, geomatic section; Access database encoding.} -%\cvwork{sept. 2003\\august 2002}{Job student}{Shell-Gecafin S.A.}{Tank station employee.} -%\cvwork{août 2001}{Job d'étudiant}{Randstad S.A.}{Brussels}{Vérification de bases de données, prospection de clients et acceuil central.} -%\cvwork{1999--2001}{Animateur}{Action Sport asbl}{Brussels}{Animateur de stages et d'évènements sportifs pour enfants. Voir \href{www.sportcity-woluwe.be/html/stages.html}{www.sportcity-woluwe.be/html/stages.html}.} +\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as Belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} % \section{Languages} \cvlanguage{French}{Native}{} -\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} -\cvlanguage{English}{Very good}{Many journeys in english speaking countries, including the United States, the United Kingdom and Kenya.} +\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a Dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} +\cvlanguage{English}{Very good}{Many journeys in English speaking countries, including the United States, the United Kingdom and Kenya.} \cvlanguage{Chinese}{Elementary}{Following official courses at the ``Institut des Langues Vivantes'' (UCL), for the second year now.} % -\section{Computer knowledge} +\section{Computer skills} \cvcomputer{OS}{Linux, Unix, MacOS, Windows}{desktop}{OpenOffice, StarOffice, MS Office} -\cvcomputer{programmation}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} +\cvcomputer{programming}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} \cvcomputer{scientific}{Matlab, Autocad, Abaqus}{typography}{\LaTeX, \ConTeXt, Scribus, QuarkXPress} \cvcomputer{web design}{XHTML, CSS, AJAX}{database}{MySQL, PostgreSQL} \cvcomputer{administration}{Apache, Mailman}{}{} diff --git a/examples/xdanaux_casual_nocolor.pdf b/examples/xdanaux_casual_nocolor.pdf new file mode 100644 index 0000000..fe80e00 Binary files /dev/null and b/examples/xdanaux_casual_nocolor.pdf differ diff --git a/examples/xdanaux_cv_classic_without_quote.tex b/examples/xdanaux_casual_nocolor.tex similarity index 76% rename from examples/xdanaux_cv_classic_without_quote.tex rename to examples/xdanaux_casual_nocolor.tex index 2d1475d..b04dc13 100644 --- a/examples/xdanaux_cv_classic_without_quote.tex +++ b/examples/xdanaux_casual_nocolor.tex @@ -1,12 +1,17 @@ \documentclass[classic]{moderncv} +% moderncv styles +\moderncvstyle[nocolor]{casual} + +% character encoding \usepackage[utf8]{inputenc} +% personal data \firstname{Xavier} \familyname{Danaux} \title{Dynamic and innovative engineer/jurist} \address{234 rue de l'infante, B-1410 Waterloo} -\phone{+32 (0)494 68 23 41} +\phone{+12 (3)456 78 90 12} \email{xdanaux@gmail.com} \extrainfo{{\small single with driver licence}} \quote{Am willing to tear down walls, build bridges, and light fires.\\I have no real experience, but lots of energy, a bit of that ``vision thing'',\\and I'm not afraid to start from the beginning.} @@ -14,10 +19,10 @@ %\renewcommand{\listsymbol}{{\fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}}} \definecolor{see}{rgb}{0.5,0.5,0.5} -% for text subscripts +% command for text subscripts \newcommand{\up}[1]{\ensuremath{^\textrm{\scriptsize#1}}} -% to produce the ConTeXt symbol +% the ConTeXt symbol \def\ConTeXt{% C% \kern-.0333emo% @@ -25,21 +30,21 @@ \kern-.0667em\TeX% \kern-.0333emt} -% to use slanted small caps (only with roman family; the sans serif font doesn't exists :-() +% slanted small caps (only with roman family; the sans serif font doesn't exists :-() %\usepackage{slantsc} %\DeclareFontFamily{T1}{myfont}{} %\DeclareFontShape{T1}{myfont}{m}{scsl}{ <-> cork-lmssqbo8}{} +%\usefont{T1}{myfont}{m}{scsl}Testing the font %---------------------------------------------------------------------------------- % content %---------------------------------------------------------------------------------- \begin{document} -\sffamily \maketitle% -%\makequote% +\makequote% % -\section{Assets} +\section{Strengths} \cvresume{Soon-to-be mechanical engineer specialized in computational fluid dy\-na\-mics, with a good legal education.}{Likes practicing adventure sports like skying, rock climbing and scuba diving, and has been a boy scout for five years.} \cvresume{Leadership skills.}{Open minded and eager to learn.} \cvresume{Photography and design enthusiast.}{Creative with a strong analytical mind.} @@ -50,13 +55,13 @@ \cventry{2005--current}{Master of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: --- (currently being assessed)} \cventry{2003--2005}{Bachelor of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: 70\%\hspace{2em}2\up{nd} year: 67\%} \cventry{2001--2003}{Bachelor of Science}{Université catholique de Louvain}{}{}{1\up{st} year: 74\%\hspace{2em}2\up{nd} year: 76\%} -%\cveducation{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{} -%\cveducation{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{} +%\cventry{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{}{}{} +%\cventry{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{}{}{} % \section{Master thesis} \cvitem{title}{\emph{On the rheology of entangled polymers}} \cvitem{supervisors}{Pr Christian Bailly and Pr Roland Keunings} -\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focussed on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. +\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focused on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. Depending on the model used, numerous mathematical tools are used: numerical solving of nonlinear PDEs, stochastic equations, Monte-Carlo simulations, Fourier transforms, \dots{}} % \section{Experience} @@ -64,21 +69,17 @@ Depending on the model used, numerous mathematical tools are used: numerical sol \cventry{2005--2006}{Mathematics tutor}{UCL}{Louvain-la-Neuve}{}{Supervision of practical sessions for a mathematical course given to second year engineering students (course \emph{FSAB1104: Numerical Methods}).\newline{\itshape\color{see}\footnotesize{}See \httplink{www.legat-online.be/b2q1/num}.}} \cventry{2004--2006}{Cultural project leader}{Tchouque-Tschouk Kot}{Louvain-la-Neuve}{}{Leader of a student home with a cultural project, requiring day to day management as well as the organization of public events.\newline{\itshape\color{see}\footnotesize{}See \httplink{www.organe.be}.}} %\cventry{1999--2003}{Student jobs}{}{}{}{Various student jobs, ranging from sport monitor and birthday animator for kids (Action Sport ASBL, 1999--2001) to tank station employee (Shell-Gecafin, august 2002 and september 2003) or receptionist (Randstad S.A., august 2001).} -\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} -%\cvwork{august 2003}{Job student}{Belgian Ministry of Defense}{Brussels}{Affected to the material ressources division, geomatic section; Access database encoding.} -%\cvwork{sept. 2003\\august 2002}{Job student}{Shell-Gecafin S.A.}{Tank station employee.} -%\cvwork{août 2001}{Job d'étudiant}{Randstad S.A.}{Brussels}{Vérification de bases de données, prospection de clients et acceuil central.} -%\cvwork{1999--2001}{Animateur}{Action Sport asbl}{Brussels}{Animateur de stages et d'évènements sportifs pour enfants. Voir \href{www.sportcity-woluwe.be/html/stages.html}{www.sportcity-woluwe.be/html/stages.html}.} +\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as Belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} % \section{Languages} \cvlanguage{French}{Native}{} -\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} -\cvlanguage{English}{Very good}{Many journeys in english speaking countries, including the United States, the United Kingdom and Kenya.} +\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a Dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} +\cvlanguage{English}{Very good}{Many journeys in English speaking countries, including the United States, the United Kingdom and Kenya.} \cvlanguage{Chinese}{Elementary}{Following official courses at the ``Institut des Langues Vivantes'' (UCL), for the second year now.} % -\section{Computer knowledge} +\section{Computer skills} \cvcomputer{OS}{Linux, Unix, MacOS, Windows}{desktop}{OpenOffice, StarOffice, MS Office} -\cvcomputer{programmation}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} +\cvcomputer{programming}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} \cvcomputer{scientific}{Matlab, Autocad, Abaqus}{typography}{\LaTeX, \ConTeXt, Scribus, QuarkXPress} \cvcomputer{web design}{XHTML, CSS, AJAX}{database}{MySQL, PostgreSQL} \cvcomputer{administration}{Apache, Mailman}{}{} diff --git a/examples/xdanaux_classic.pdf b/examples/xdanaux_classic.pdf new file mode 100644 index 0000000..7037441 Binary files /dev/null and b/examples/xdanaux_classic.pdf differ diff --git a/examples/xdanaux_cv_casual.tex b/examples/xdanaux_classic.tex similarity index 75% rename from examples/xdanaux_cv_casual.tex rename to examples/xdanaux_classic.tex index 3d1bc2b..43065c5 100644 --- a/examples/xdanaux_cv_casual.tex +++ b/examples/xdanaux_classic.tex @@ -1,12 +1,17 @@ -\documentclass[casual]{moderncv} +\documentclass[classic]{moderncv} +% moderncv styles +\moderncvstyle{classic} + +% character encoding \usepackage[utf8]{inputenc} -\firstname{xavier} -\familyname{danaux} +% personal data +\firstname{Xavier} +\familyname{Danaux} \title{Dynamic and innovative engineer/jurist} \address{234 rue de l'infante, B-1410 Waterloo} -\phone{+32 (0)494 68 23 41} +\phone{+12 (3)456 78 90 12} \email{xdanaux@gmail.com} \extrainfo{{\small single with driver licence}} \quote{Am willing to tear down walls, build bridges, and light fires.\\I have no real experience, but lots of energy, a bit of that ``vision thing'',\\and I'm not afraid to start from the beginning.} @@ -14,10 +19,10 @@ %\renewcommand{\listsymbol}{{\fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}}} \definecolor{see}{rgb}{0.5,0.5,0.5} -% for text subscripts +% command for text subscripts \newcommand{\up}[1]{\ensuremath{^\textrm{\scriptsize#1}}} -% to produce the ConTeXt symbol +% the ConTeXt symbol \def\ConTeXt{% C% \kern-.0333emo% @@ -25,21 +30,21 @@ \kern-.0667em\TeX% \kern-.0333emt} -% to use slanted small caps (only with roman family; the sans serif font doesn't exists :-() +% slanted small caps (only with roman family; the sans serif font doesn't exists :-() %\usepackage{slantsc} %\DeclareFontFamily{T1}{myfont}{} %\DeclareFontShape{T1}{myfont}{m}{scsl}{ <-> cork-lmssqbo8}{} +%\usefont{T1}{myfont}{m}{scsl}Testing the font %---------------------------------------------------------------------------------- % content %---------------------------------------------------------------------------------- \begin{document} -\sffamily \maketitle% \makequote% % -\section{Assets} +\section{Strengths} \cvresume{Soon-to-be mechanical engineer specialized in computational fluid dy\-na\-mics, with a good legal education.}{Likes practicing adventure sports like skying, rock climbing and scuba diving, and has been a boy scout for five years.} \cvresume{Leadership skills.}{Open minded and eager to learn.} \cvresume{Photography and design enthusiast.}{Creative with a strong analytical mind.} @@ -50,13 +55,13 @@ \cventry{2005--current}{Master of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: --- (currently being assessed)} \cventry{2003--2005}{Bachelor of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: 70\%\hspace{2em}2\up{nd} year: 67\%} \cventry{2001--2003}{Bachelor of Science}{Université catholique de Louvain}{}{}{1\up{st} year: 74\%\hspace{2em}2\up{nd} year: 76\%} -%\cveducation{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{} -%\cveducation{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{} +%\cventry{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{}{}{} +%\cventry{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{}{}{} % \section{Master thesis} \cvitem{title}{\emph{On the rheology of entangled polymers}} \cvitem{supervisors}{Pr Christian Bailly and Pr Roland Keunings} -\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focussed on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. +\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focused on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. Depending on the model used, numerous mathematical tools are used: numerical solving of nonlinear PDEs, stochastic equations, Monte-Carlo simulations, Fourier transforms, \dots{}} % \section{Experience} @@ -64,21 +69,17 @@ Depending on the model used, numerous mathematical tools are used: numerical sol \cventry{2005--2006}{Mathematics tutor}{UCL}{Louvain-la-Neuve}{}{Supervision of practical sessions for a mathematical course given to second year engineering students (course \emph{FSAB1104: Numerical Methods}).\newline{\itshape\color{see}\footnotesize{}See \httplink{www.legat-online.be/b2q1/num}.}} \cventry{2004--2006}{Cultural project leader}{Tchouque-Tschouk Kot}{Louvain-la-Neuve}{}{Leader of a student home with a cultural project, requiring day to day management as well as the organization of public events.\newline{\itshape\color{see}\footnotesize{}See \httplink{www.organe.be}.}} %\cventry{1999--2003}{Student jobs}{}{}{}{Various student jobs, ranging from sport monitor and birthday animator for kids (Action Sport ASBL, 1999--2001) to tank station employee (Shell-Gecafin, august 2002 and september 2003) or receptionist (Randstad S.A., august 2001).} -\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} -%\cvwork{august 2003}{Job student}{Belgian Ministry of Defense}{Brussels}{Affected to the material ressources division, geomatic section; Access database encoding.} -%\cvwork{sept. 2003\\august 2002}{Job student}{Shell-Gecafin S.A.}{Tank station employee.} -%\cvwork{août 2001}{Job d'étudiant}{Randstad S.A.}{Brussels}{Vérification de bases de données, prospection de clients et acceuil central.} -%\cvwork{1999--2001}{Animateur}{Action Sport asbl}{Brussels}{Animateur de stages et d'évènements sportifs pour enfants. Voir \href{www.sportcity-woluwe.be/html/stages.html}{www.sportcity-woluwe.be/html/stages.html}.} +\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as Belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} % \section{Languages} \cvlanguage{French}{Native}{} -\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} -\cvlanguage{English}{Very good}{Many journeys in english speaking countries, including the United States, the United Kingdom and Kenya.} +\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a Dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} +\cvlanguage{English}{Very good}{Many journeys in English speaking countries, including the United States, the United Kingdom and Kenya.} \cvlanguage{Chinese}{Elementary}{Following official courses at the ``Institut des Langues Vivantes'' (UCL), for the second year now.} % -\section{Computer knowledge} +\section{Computer skills} \cvcomputer{OS}{Linux, Unix, MacOS, Windows}{desktop}{OpenOffice, StarOffice, MS Office} -\cvcomputer{programmation}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} +\cvcomputer{programming}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} \cvcomputer{scientific}{Matlab, Autocad, Abaqus}{typography}{\LaTeX, \ConTeXt, Scribus, QuarkXPress} \cvcomputer{web design}{XHTML, CSS, AJAX}{database}{MySQL, PostgreSQL} \cvcomputer{administration}{Apache, Mailman}{}{} diff --git a/examples/xdanaux_classic_roman.pdf b/examples/xdanaux_classic_roman.pdf new file mode 100644 index 0000000..2b31461 Binary files /dev/null and b/examples/xdanaux_classic_roman.pdf differ diff --git a/examples/xdanaux_classic_roman.tex b/examples/xdanaux_classic_roman.tex new file mode 100644 index 0000000..eec210f --- /dev/null +++ b/examples/xdanaux_classic_roman.tex @@ -0,0 +1,87 @@ +\documentclass[classic]{moderncv} + +% moderncv styles +\moderncvstyle[roman]{classic} + +% character encoding +\usepackage[utf8]{inputenc} + +% personal data +\firstname{Xavier} +\familyname{Danaux} +\title{Dynamic and innovative engineer/jurist} +\address{234 rue de l'infante, B-1410 Waterloo} +\phone{+12 (3)456 78 90 12} +\email{xdanaux@gmail.com} +\extrainfo{{\small single with driver licence}} +\quote{Am willing to tear down walls, build bridges, and light fires.\\I have no real experience, but lots of energy, a bit of that ``vision thing'',\\and I'm not afraid to start from the beginning.} + +%\renewcommand{\listsymbol}{{\fontencoding{U}\fontfamily{ding}\selectfont\tiny\symbol{'102}}} +\definecolor{see}{rgb}{0.5,0.5,0.5} + +% command for text subscripts +\newcommand{\up}[1]{\ensuremath{^\textrm{\scriptsize#1}}} + +% the ConTeXt symbol +\def\ConTeXt{% + C% + \kern-.0333emo% + \kern-.0333emn% + \kern-.0667em\TeX% + \kern-.0333emt} + +% slanted small caps (only with roman family; the sans serif font doesn't exists :-() +%\usepackage{slantsc} +%\DeclareFontFamily{T1}{myfont}{} +%\DeclareFontShape{T1}{myfont}{m}{scsl}{ <-> cork-lmssqbo8}{} +%\usefont{T1}{myfont}{m}{scsl}Testing the font + + +%---------------------------------------------------------------------------------- +% content +%---------------------------------------------------------------------------------- +\begin{document} +\maketitle% +\makequote% +% +\section{Strengths} +\cvresume{Soon-to-be mechanical engineer specialized in computational fluid dy\-na\-mics, with a good legal education.}{Likes practicing adventure sports like skying, rock climbing and scuba diving, and has been a boy scout for five years.} +\cvresume{Leadership skills.}{Open minded and eager to learn.} +\cvresume{Photography and design enthusiast.}{Creative with a strong analytical mind.} +\cvresume{Loves to tackle complex problems.}{World citizen.} +% +\section{Education} +\cventry{2003--current}{Master of Science in Mechanical Engineering}{Université catholique de Louvain}{}{}{1\up{st} year: 82\%\hspace{2em}2\up{nd} year: 74\%\hspace{2em}3\up{rd} year: --- (currently being assessed)} +\cventry{2005--current}{Master of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: --- (currently being assessed)} +\cventry{2003--2005}{Bachelor of Laws}{Université catholique de Louvain}{}{}{1\up{st} year: 70\%\hspace{2em}2\up{nd} year: 67\%} +\cventry{2001--2003}{Bachelor of Science}{Université catholique de Louvain}{}{}{1\up{st} year: 74\%\hspace{2em}2\up{nd} year: 76\%} +%\cventry{1995--2001}{High School Degree, Latin--Math orientation}{Collège Saint-Michel d'Etterbeek}{}{}{} +%\cventry{1989--1995}{Primary School Degree}{Sint-Jozefscollege te Sint-Pieters-Woluwe}{}{}{} +% +\section{Master thesis} +\cvitem{title}{\emph{On the rheology of entangled polymers}} +\cvitem{supervisors}{Pr Christian Bailly and Pr Roland Keunings} +\cvitem{description}{\small Study of the complex behaviour of viscoelastic fluids, and in particular of entangled polymers.\\The study is focused on double-step strain and recoil deformations, comparing experimental data to simulations based on recent microstructural models. +Depending on the model used, numerous mathematical tools are used: numerical solving of nonlinear PDEs, stochastic equations, Monte-Carlo simulations, Fourier transforms, \dots{}} +% +\section{Experience} +\cventry{april 2004--\\current}{Administrator}{Alterezo ASBL}{Liège}{}{Nonprofit association aimed at helping small organizations access mo\-dern com\-mu\-ni\-ca\-tion tools via the internet, and promoting the use of open sour\-ce so\-lu\-tions and open standards.\newline{\itshape\color{see}\footnotesize{}See \httplink{www.alterezo.be}.}} +\cventry{2005--2006}{Mathematics tutor}{UCL}{Louvain-la-Neuve}{}{Supervision of practical sessions for a mathematical course given to second year engineering students (course \emph{FSAB1104: Numerical Methods}).\newline{\itshape\color{see}\footnotesize{}See \httplink{www.legat-online.be/b2q1/num}.}} +\cventry{2004--2006}{Cultural project leader}{Tchouque-Tschouk Kot}{Louvain-la-Neuve}{}{Leader of a student home with a cultural project, requiring day to day management as well as the organization of public events.\newline{\itshape\color{see}\footnotesize{}See \httplink{www.organe.be}.}} +%\cventry{1999--2003}{Student jobs}{}{}{}{Various student jobs, ranging from sport monitor and birthday animator for kids (Action Sport ASBL, 1999--2001) to tank station employee (Shell-Gecafin, august 2002 and september 2003) or receptionist (Randstad S.A., august 2001).} +\cventry{1999--2001}{IMO preselected}{SBPMef}{Wépion}{}{Advanced mathematical training, as Belgian preselected candidate for the International Mathematical Olympiads, selected by the Belgian mathematical society.\newline{\itshape\color{see}\footnotesize{}See \weblink{imo.math.ca/belgium.html}.}} +% +\section{Languages} +\cvlanguage{French}{Native}{} +\cvlanguage{Dutch}{Near-native}{Primary education degree obtained in a Dutch college\\(Sint-Jozefscollege te Sint-Pieters-Woluwe).} +\cvlanguage{English}{Very good}{Many journeys in English speaking countries, including the United States, the United Kingdom and Kenya.} +\cvlanguage{Chinese}{Elementary}{Following official courses at the ``Institut des Langues Vivantes'' (UCL), for the second year now.} +% +\section{Computer skills} +\cvcomputer{OS}{Linux, Unix, MacOS, Windows}{desktop}{OpenOffice, StarOffice, MS Office} +\cvcomputer{programming}{\textsc{Java}, C/C++}{scripting}{PHP, Shell, Ruby} +\cvcomputer{scientific}{Matlab, Autocad, Abaqus}{typography}{\LaTeX, \ConTeXt, Scribus, QuarkXPress} +\cvcomputer{web design}{XHTML, CSS, AJAX}{database}{MySQL, PostgreSQL} +\cvcomputer{administration}{Apache, Mailman}{}{} +% +\end{document} diff --git a/examples/xdanaux_cv_casual.pdf b/examples/xdanaux_cv_casual.pdf deleted file mode 100644 index 57edc6b..0000000 Binary files a/examples/xdanaux_cv_casual.pdf and /dev/null differ diff --git a/examples/xdanaux_cv_classic.pdf b/examples/xdanaux_cv_classic.pdf deleted file mode 100644 index d11e3df..0000000 Binary files a/examples/xdanaux_cv_classic.pdf and /dev/null differ diff --git a/examples/xdanaux_cv_classic_without_quote.pdf b/examples/xdanaux_cv_classic_without_quote.pdf deleted file mode 100644 index 566c5c2..0000000 Binary files a/examples/xdanaux_cv_classic_without_quote.pdf and /dev/null differ diff --git a/moderncv.cls b/moderncv.cls index 8f94d03..a454bbc 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -1,103 +1,145 @@ %% start of file `moderncv.cls'. -\NeedsTeXFormat{LaTeX2e} -\ProvidesClass{moderncv}[2006/03/01 v0.9 modern curriculum vitae document class] +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{moderncv}[2006/03/06 v0.2 modern curriculum vitae document class] + + +%------------------------------------------------------------------------------- +% class options +% +% (need to be done before the external package loading, for example because +% we need \paperwidth, \paperheight and \@ptsize to be defined before loading +% geometry and fancyhdr) +%------------------------------------------------------------------------------- +% paper size option +\DeclareOption{a4paper}{ + \setlength\paperheight{297mm} + \setlength\paperwidth{210mm}} +\DeclareOption{a5paper}{ + \setlength\paperheight{210mm} + \setlength\paperwidth{148mm}} +\DeclareOption{b5paper}{ + \setlength\paperheight{250mm} + \setlength\paperwidth{176mm}} +\DeclareOption{letterpaper}{ + \setlength\paperheight{11in} + \setlength\paperwidth{8.5in}} +\DeclareOption{legalpaper}{ + \setlength\paperheight{14in} + \setlength\paperwidth{8.5in}} +\DeclareOption{executivepaper}{ + \setlength\paperheight{10.5in} + \setlength\paperwidth{7.25in}} +\DeclareOption{landscape}{ + \setlength\@tempdima{\paperheight} + \setlength\paperheight{\paperwidth} + \setlength\paperwidth{\@tempdima}} + +% font size options +\newcommand\@ptsize{} +\DeclareOption{10pt}{\renewcommand\@ptsize{0}} +\DeclareOption{11pt}{\renewcommand\@ptsize{1}} +\DeclareOption{12pt}{\renewcommand\@ptsize{2}} + +% draft/final option +\DeclareOption{draft}{\setlength\overfullrule{5pt}} +\DeclareOption{final}{\setlength\overfullrule{0pt}} + +% nolmodern option +\newif\if@lmodern\@lmoderntrue +\DeclareOption{nolmodern}{\@lmodernfalse} + +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% execute default options +\ExecuteOptions{a4paper,11pt,color,final} + +% process given options +\ProcessOptions\relax +\input{size1\@ptsize.clo} + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- +% ifthen package +\RequirePackage{ifthen} + +% ifpdf package \RequirePackage{ifpdf} +% color package \ifpdf \RequirePackage[pdftex]{color} \else \RequirePackage[dvips]{color} \fi +% fontenc package +\RequirePackage[T1]{fontenc} + +% scalable Computer Modern fonts +%\usepackage{type1cm} + +% latin modern fonts +\AtEndOfClass{% + \if@lmodern + \RequirePackage{lmodern}\fi} + +% symbols like \Telefon, \Mobilefone, \Letter and \Email +\RequirePackage{marvosym} + +% extended characters of T1 in .ps + other guillemets +%\RequirePackage{ae,aecompl,aeguill} + +% page geometry +% (this should perhaps be left to the user...) +\RequirePackage[top=2cm, bottom=2.5cm, left=2.25cm, right=2.25cm]{geometry} + +% hyperrefs +\RequirePackage{url} +\ifpdf + \RequirePackage[pdftex,pdfborder=0,breaklinks,baseurl=http://,pdfpagemode=None,pdfstartview=FitH,pdfpagelayout=SinglePage,pdfstartpage=1]{hyperref} + \AtEndOfClass{% + \AtBeginDocument{% + \hypersetup{% + pdfauthor = \@firstname~\@familyname,% + pdftitle = \@title,% + pdfsubject = \@firstname~\@familyname,% + pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{},% + pdfcreator = \LaTeX{} with `moderncv' package,% + pdfproducer = \LaTeX}}} +\else + \RequirePackage[dvips]{hyperref}\fi +\urlstyle{tt} + +% graphics +\ifpdf + \RequirePackage[pdftex]{graphicx} +\else + \RequirePackage[dvips]{graphicx}\fi + +% headers and footers +\usepackage{fancyhdr} +\fancypagestyle{plain}{% + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{}} +\pagestyle{plain} + +% compatibility package with older versions of moderncv +\RequirePackageWithOptions{moderncvcompatibility} + + %------------------------------------------------------------------------------- -% class options +% class definition %------------------------------------------------------------------------------- -% paper size option -\if@compatibility\else -\DeclareOption{a4paper} - {\setlength\paperheight {297mm}% - \setlength\paperwidth {210mm}} -\DeclareOption{a5paper} - {\setlength\paperheight {210mm}% - \setlength\paperwidth {148mm}} -\DeclareOption{b5paper} - {\setlength\paperheight {250mm}% - \setlength\paperwidth {176mm}} -\DeclareOption{letterpaper} - {\setlength\paperheight {11in}% - \setlength\paperwidth {8.5in}} -\DeclareOption{legalpaper} - {\setlength\paperheight {14in}% - \setlength\paperwidth {8.5in}} -\DeclareOption{executivepaper} - {\setlength\paperheight {10.5in}% - \setlength\paperwidth {7.25in}} -\DeclareOption{landscape} - {\setlength\@tempdima {\paperheight}% - \setlength\paperheight {\paperwidth}% - \setlength\paperwidth {\@tempdima}}\fi - -% font size options -\newcommand\@ptsize{} -\if@compatibility - \renewcommand\@ptsize{0} -\else - \DeclareOption{10pt}{\renewcommand\@ptsize{0}}\fi -\DeclareOption{11pt}{\renewcommand\@ptsize{1}} -\DeclareOption{12pt}{\renewcommand\@ptsize{2}} - -% draft/final option -\DeclareOption{draft}{\setlength\overfullrule{5pt}} -\if@compatibility -\else - \DeclareOption{final}{\setlength\overfullrule{0pt}}\fi -\DeclareOption{titlepage}{\@titlepagetrue} -\if@compatibility -\else - \DeclareOption{notitlepage}{\@titlepagefalse}\fi - -% colored/blackandwhite option -\newif\if@color\@colortrue -\DeclareOption{color}{% -% \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5}% gray-blue -% \definecolor{familynamecolor}{rgb}{0.2,0.4,0.65}% - \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}% - \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}% - \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}% - \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75}% - \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65}% - \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35}% - \definecolor{footersymbolcolor}{rgb}{0.25,0.5,0.75}} -\newif\if@blackandwhite\@blackandwhitefalse -\DeclareOption{blackandwhite}{% - \@blackandwhitetrue% - \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5}% - \definecolor{familynamecolor}{rgb}{0,0,0}% - \definecolor{quotecolor}{rgb}{0.35,0.35,0.35}% - \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75}% - \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}% - \definecolor{weblink}{rgb}{0.5,0.5,0.5}% - \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35}% - \definecolor{footersymbolcolor}{rgb}{0.75,0.75,0.75}} - -% styles: casual or classic (default) -\newif\if@styleclassic\@styleclassicfalse -\DeclareOption{classic}{% - \@styleclassictrue% - \@stylecasualfalse} -\newif\if@stylecasual\@stylecasualfalse -\DeclareOption{casual}{% - \@styleclassicfalse% - \@stylecasualtrue} - -% execute default options -\ExecuteOptions{a4paper,11pt,color,classic,final} - -% process given options -\ProcessOptions - -\input{size1\@ptsize.clo} +% minimal base settings \setlength\lineskip{1\p@} \setlength\normallineskip{1\p@} \renewcommand\baselinestretch{} @@ -110,101 +152,56 @@ \raggedbottom \onecolumn -%------------------------------------------------------------------------------- -% packages import -%------------------------------------------------------------------------------- -% font encoding -\RequirePackage[T1]{fontenc} - -% scalable Computer Modern fonts -%\usepackage{type1cm} - -% latin modern fonts -\RequirePackage{lmodern} - -% symbols like \Telefon, \Mobilefone, \Letter and \Email -\RequirePackage{marvosym} - -% extended characters of T1 in .ps + other guillemets -%\RequirePackage{ae,aecompl,aeguill} - -% page geometry -%\RequirePackage[top=1.75cm, bottom=2.25cm, left=2cm, right=2cm]{geometry} -\RequirePackage[top=2cm, bottom=2.5cm, left=2.25cm, right=2.25cm]{geometry} - -% typewriter font -\renewcommand{\ttdefault}{pcr} - -% hyperrefs -\RequirePackage{url} -\ifpdf - \RequirePackage[pdftex,pdfborder=0,breaklinks,baseurl=http://,pdfpagemode=None,pdfstartview=FitH,pdfpagelayout=SinglePage,pdfstartpage=1]{hyperref} - \AtBeginDocument{\hypersetup{ - pdfauthor = \@firstname~\@familyname,% - pdftitle = \@title,% - pdfsubject = \@firstname~\@familyname,% - pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{},% - pdfcreator = \LaTeX{} with `moderncv' package,% - pdfproducer = \LaTeX}} - \RequirePackage[pdftex]{graphicx} -\else - \RequirePackage[dvips]{hyperref,graphicx}\fi -\urlstyle{tt} - -% headers and footers -\usepackage{fancyhdr} -\fancypagestyle{plain}{% - \renewcommand{\headrulewidth}{0pt}% - \renewcommand{\footrulewidth}{0pt}% - \fancyhf{}} -\pagestyle{plain} %------------------------------------------------------------------------------- -% style customization +% style commands definitions %------------------------------------------------------------------------------- % symbols used -\newcommand*{\listsymbol}{\textbullet} -\newcommand*{\footersymbol}{\textbullet} +\providecommand*{\listitemsymbol}{\textbullet} + +% colors +\definecolor{firstnamecolor}{rgb}{0,0,0} +\definecolor{familynamecolor}{rgb}{0,0,0} +\definecolor{titlecolor}{rgb}{0,0,0} +\definecolor{addresscolor}{rgb}{0,0,0} +\definecolor{quotecolor}{rgb}{0,0,0} +\definecolor{sectionrectanglecolor}{rgb}{0,0,0} +\definecolor{sectiontitlecolor}{rgb}{0,0,0} % fonts -%\newcommand*{\namefont}{\fontsize{34}{36}\sffamily\mdseries\upshape} -\newcommand*{\quotefont}{\large\sffamily\slshape} -\newcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} -\newcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape} -\newcommand*{\footerfont}{\normalsize\sffamily\mdseries\slshape} +\providecommand*{\firstnamefont}{} +\providecommand*{\familynamefont}{} +\providecommand*{\titlefont}{} +\providecommand*{\addressfont}{} +\providecommand*{\quotefont}{} +\providecommand*{\sectionfont}{} +\providecommand*{\subsectionfont}{} -% classic style -\if@styleclassic - \typeout{moderncv with classic style} - \renewcommand*{\title}[1]{\def\@title{#1}} - \title{} - \newcommand*{\namefont}{\fontsize{34}{36}\sffamily\mdseries\upshape} - \newcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape} - \newcommand*{\addressfont}{\rmfamily\mdseries\slshape} - \if@color - \definecolor{namecolor}{rgb}{0,0,0} - \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} - \definecolor{addresscolor}{rgb}{0.25,0.5,0.75} - \else - \definecolor{namecolor}{rgb}{0,0,0} - \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} - \definecolor{addresscolor}{rgb}{0.35,0.35,0.35}\fi\else -% casual style -\if@stylecasual - \typeout{moderncv with casual style} - \newcommand*{\namefont}{\fontsize{38}{40}\sffamily\mdseries\upshape} - \AtBeginDocument{\makefooter}\fi\fi +% styles +\providecommand*{\firstnamestyle}[1]{{\firstnamefont\color{firstnamecolor}#1}} +\providecommand*{\familynamestyle}[1]{{\familynamefont\color{familynamecolor}#1}} +\providecommand*{\titlestyle}[1]{{\titlefont\color{titlecolor}#1}} +\providecommand*{\addresstyle}[1]{{\addressfont\color{addresscolor}#1}} +\providecommand*{\quotestyle}[1]{{\quotefont\color{quotecolor}#1}} +\providecommand*{\sectionstyle}[1]{{\sectionfont\color{sectiontitlecolor}#1}} +\providecommand*{\subsectionstyle}[1]{{\subsectionfont#1}} -% see also the color definitions at the color/blackandwhite option definition +% styles: casual (default), classic, ... +\newcommand*{\moderncvstyle}[2][]{ + \def\@moderncvstyle{#2} + \def\@moderncvstyleoptions{#1}} +\AtBeginDocument{\RequirePackage[\@moderncvstyleoptions]{moderncvstyle\@moderncvstyle}} + +% load default style +\moderncvstyle{casual} %------------------------------------------------------------------------------- -% commands definitions +% structure commands definitions %------------------------------------------------------------------------------- -\RequirePackage{ifthen} - \newcommand*{\firstname}[1]{\def\@firstname{#1}} \newcommand*{\familyname}[1]{\def\@familyname{#1}} +\renewcommand*{\title}[1]{\def\@title{#1}} \newcommand*{\address}[1]{\def\@address{#1}} \newcommand*{\phone}[1]{\def\@phone{#1}} \newcommand*{\email}[1]{\def\@email{#1}} @@ -212,54 +209,20 @@ \newcommand*{\quote}[1]{\def\@quote{#1}} \firstname{} \familyname{} +\title{} \address{} \phone{} \email{} \extrainfo{} \quote{} -% makes the cv footer -\newcommand*{\makefooter}{% - \fancypagestyle{plain}{% - \fancyfoot[c]{% - \footerfont% - \color{footertextcolor}\@address% - ~~\color{footersymbolcolor}\footersymbol~~% - \color{footertextcolor}\Telefon~\@phone% - ~~\color{footersymbolcolor}\footersymbol~~% - \color{footertextcolor}\Letter~\emaillink{\@email}}}% - \pagestyle{plain}} - % makes the cv title -\if@stylecasual -\renewcommand*{\maketitle}{% -% {\raggedleft{\namefont\color{firstnamecolor}\@firstname~\color{familynamecolor}\@familyname}\\[-.35em]}% - {\raggedleft{\namefont\color{firstnamecolor}\@firstname\color{familynamecolor}\@familyname}\\[-.35em]}% - {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}}% -\else\if@styleclassic -\renewcommand*{\maketitle}{% - \begin{minipage}[t]{.6\textwidth}% - {\namefont\color{namecolor}\@firstname~\@familyname}% - \ifthenelse{\equal{\@title}{}}% - {}% - {\\[1.25em]{\titlefont\color{titlecolor}\@title}}% - \end{minipage}% - \begin{minipage}[t]{.4\textwidth}% - \raggedleft\addressfont\color{addresscolor}\@address\\[0.2em]% - \Telefon~\@phone\\[.2em]% - \Letter~\emaillink{\@email}% - \ifthenelse{\equal{\@extrainfo}{}}% - {}% - {\\[0.2em]\@extrainfo} - \end{minipage}% -% \\[-\baselinestretch\baselineskip]% -% {\titlefont\color{titlecolor}\@title}% - \\[3em]}\fi\fi +\renewcommand*{\maketitle}{}% % make a quote \newcommand*{\makequote}{% {\centering{% - \vbox{\centering\quotefont\color{quotecolor}\@quote}}}\\[3em]} + \begin{minipage}{\textwidth}\centering\quotestyle{\@quote}\end{minipage}}}\\[3em]} % draws a colored rectangle % usage: \colorrule[optional height]{width} @@ -295,15 +258,19 @@ % usage (inside section}: \cvdoubleitem{subtitle}{text}{subtitle}{text} \newcommand*{\cvdoubleitem}[4]{% - \cvitem{#1}{\begin{minipage}[t]{.4125\textwidth}#2\end{minipage}\hfill\begin{minipage}[t]{.125\textwidth}\raggedleft\small\sffamily#3\end{minipage}\hspace*{.025\textwidth}\begin{minipage}[t]{.4125\textwidth}#4\end{minipage}}}%the second column title should have 0.1818 = 0.15*1/0.825 as width, and the data columns shoudl ahve 0.395 as width to be equal. But this is not achived here, by purpose... + \cvitem{#1}{\begin{minipage}[t]{.4125\textwidth}#2\end{minipage}\hfill\begin{minipage}[t]{.125\textwidth}\raggedleft\small\sffamily#3\end{minipage}\hspace*{.025\textwidth}\begin{minipage}[t]{.4125\textwidth}#4\end{minipage}}}%the second column title should have 0.1818 = 0.15*1/0.825 as width, and the data columns shoudl have 0.395 as width to be equal. But this is not achived here, by purpose... -% usage (inside 'resume' cvsection environment): \cvresume{point1}{point2} -\newcommand*{\cvresume}[2]{% - \vspace{0.25em}&\listsymbol{}~\begin{minipage}[t]{0.375\textwidth}#1\end{minipage}% +% usage (inside section): \cvlistitem{point1} +\newcommand*{\cvlistitem}[1]{% + \cvline{}{\listitemsymbol{}~#1}} + +% usage (inside section): \cvlistdoubleitem{point1}{point2} +\newcommand*{\cvlistdoubleitem}[2]{% + \vspace{0.25em}&\listitemsymbol{}~\begin{minipage}[t]{0.375\textwidth}#1\end{minipage}% \hfill% \ifthenelse{\equal{#2}{}}% {}% - {\listsymbol{}~\begin{minipage}[t]{0.375\textwidth}#2\end{minipage}\\}} + {\listitemsymbol{}~\begin{minipage}[t]{0.375\textwidth}#2\end{minipage}\\}} % usage : \cventry{years}{degree/job title}{institution/employer}{localization}{optionnal: grade/...}{optional: comment/job description} \newcommand*{\cventry}[6]{% @@ -344,5 +311,7 @@ {\def\@linktext{#1}}% \href{mailto:#2}{\@linktext{}}} + \endinput + %% end of file `moderncv.cls'. diff --git a/moderncvcompatibility.sty b/moderncvcompatibility.sty new file mode 100644 index 0000000..ba4d268 --- /dev/null +++ b/moderncvcompatibility.sty @@ -0,0 +1,37 @@ +%% start of file `moderncvcompatibility.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvcompatibility}[2006/03/06 v0.2 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 + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +\newcommand*{\cvresume}[2]{\cvlistdoubleitem{#1}{#2}} + + +\endinput + +%% end of file `moderncvstylethemecasual.sty'. diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty new file mode 100644 index 0000000..cc78932 --- /dev/null +++ b/moderncvstylecasual.sty @@ -0,0 +1,104 @@ +%% start of file `moderncvstylecasual.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstylecasual}[2006/03/06 v0.2 modern curriculum vitae style: casual] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% roman option +\newif\if@roman\@romanfalse +\DeclareOption{roman}{\@romantrue} + +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstylecasual}{Unknown option '\CurrentOption'}} + +% execute default options +\ExecuteOptions{color} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +% symbols used +\renewcommand*{\listitemsymbol}{\textbullet} + +% colors +\if@color + \definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65} + \definecolor{familynamecolor}{rgb}{0.45,0.45,0.45} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65} +\else + \definecolor{firstnamecolor}{rgb}{0.5,0.5,0.5} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}\fi + +% fonts +\if@roman + \AtBeginDocument{\rmfamily} +\else + \AtBeginDocument{\sffamily}\fi +\renewcommand*{\ttdefault}{pcr} +\renewcommand*{\firstnamefont}{\fontsize{38}{40}\sffamily\mdseries\upshape} +\renewcommand*{\familynamefont}{\firstnamefont} +\renewcommand*{\addressfont}{\normalsize\sffamily\mdseries\slshape} +\renewcommand*{\quotefont}{\large\slshape} +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} +\renewcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape} + +% styles + +% maketitle +\renewcommand*{\maketitle}{% + {\raggedleft{\firstnamestyle{\MakeLowercase{\@firstname}}\familynamestyle{\MakeLowercase{\@familyname}}}\\[-.35em]}% + {\color{firstnamecolor}\rule{\textwidth}{.25ex}\\[2.5em]}}% + +% cv footer +\providecommand*{\footersymbol}{} +\renewcommand*{\footersymbol}{\textbullet} +\providecommand*{\footerfont}{} +\renewcommand*{\footerfont}{\addressfont} +\if@color + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.25,0.5,0.75} +\else + \definecolor{footertextcolor}{rgb}{0.35,0.35,0.35} + \definecolor{footersymbolcolor}{rgb}{0.75,0.75,0.75}\fi +\providecommand*{\makefooter}{} +\renewcommand*{\makefooter}{% + \fancypagestyle{plain}{% + \fancyfoot[c]{% + \footerfont% + \color{footertextcolor}\@address% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Telefon~\@phone% + ~~\color{footersymbolcolor}\footersymbol~~% + \color{footertextcolor}\Letter~\emaillink{\@email}}}% + \pagestyle{plain}} +\AtBeginDocument{\makefooter} + + +\endinput + +%% end of file `moderncvstylecasual.sty'. diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty new file mode 100644 index 0000000..380134c --- /dev/null +++ b/moderncvstyleclassic.sty @@ -0,0 +1,97 @@ +%% start of file `moderncvstyleclassic.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstyleclassic}[2006/03/06 v0.2 modern curriculum vitae style: casual] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% nocolor option +\newif\if@color\@colortrue +\DeclareOption{nocolor}{\@colorfalse} + +% roman option +\newif\if@roman\@romanfalse +\DeclareOption{roman}{\@romantrue} + +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstyleclassic}{Unknown option '\CurrentOption'}} + +% execute default options +\ExecuteOptions{color} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- +% symbols used +\renewcommand*{\listitemsymbol}{\textbullet} + +% colors +\if@color + \definecolor{firstnamecolor}{rgb}{0,0,0} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} + \definecolor{addresscolor}{rgb}{0.25,0.5,0.75} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.25,0.5,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.2,0.4,0.65} +\else + \definecolor{firstnamecolor}{rgb}{0,0,0} + \definecolor{familynamecolor}{rgb}{0,0,0} + \definecolor{titlecolor}{rgb}{0.35,0.35,0.35} + \definecolor{addresscolor}{rgb}{0.35,0.35,0.35} + \definecolor{quotecolor}{rgb}{0.35,0.35,0.35} + \definecolor{sectionrectanglecolor}{rgb}{0.75,0.75,0.75} + \definecolor{sectiontitlecolor}{rgb}{0.35,0.35,0.35}\fi + +% fonts +\if@roman + \AtBeginDocument{\rmfamily} +\else + \AtBeginDocument{\sffamily}\fi +\renewcommand*{\ttdefault}{pcr} +\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape} +\renewcommand*{\titlefont}{\LARGE\sffamily\mdseries\slshape} +\renewcommand*{\addressfont}{\rmfamily\mdseries\slshape} +\renewcommand*{\familynamefont}{\firstnamefont} +\renewcommand*{\quotefont}{\large\slshape} +\renewcommand*{\sectionfont}{\Large\sffamily\mdseries\upshape} +\renewcommand*{\subsectionfont}{\normalsize\sffamily\mdseries\upshape} + +% styles + +% maketitle +\renewcommand*{\maketitle}{% + \begin{minipage}[t]{.6\textwidth}% + \firstnamestyle{\@firstname~}\familynamestyle{\@familyname}% + \ifthenelse{\equal{\@title}{}}% + {}% + {\\[1.25em]\titlestyle{\@title}}% + \end{minipage}% + \begin{minipage}[t]{.4\textwidth}% + \raggedleft\addressfont\color{addresscolor}\@address\\[0.2em]% + \Telefon~\@phone\\[.2em]% + \Letter~\emaillink{\@email}% + \ifthenelse{\equal{\@extrainfo}{}}% + {}% + {\\[0.2em]\@extrainfo} + \end{minipage}\\[3em]} + + +\endinput + +%% end of file `moderncvstyleclassic.sty'. diff --git a/moderncvstyleempty.sty b/moderncvstyleempty.sty new file mode 100644 index 0000000..1945f11 --- /dev/null +++ b/moderncvstyleempty.sty @@ -0,0 +1,36 @@ +%% start of file `moderncvstyleempty.sty'. + +%------------------------------------------------------------------------------- +% identification +%------------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{moderncvstyleempty}[2006/03/06 v0.2 modern curriculum vitae style: empty] + + +%------------------------------------------------------------------------------- +% required packages +%------------------------------------------------------------------------------- + + +%------------------------------------------------------------------------------- +% package options +%------------------------------------------------------------------------------- +% unused options +\DeclareOption*{ + \PackageWarning{moderncvstyleempty}{Unknown option '\CurrentOption'}} + +% execute default options +\ExecuteOptions{} + +% process given options +\ProcessOptions\relax + + +%------------------------------------------------------------------------------- +% style definition +%------------------------------------------------------------------------------- + + +\endinput + +%% end of file `moderncvstyleempty.sty'.