Version 0.8 commit

This commit is contained in:
Xavier Danaux
2010-05-24 03:41:22 +02:00
parent c7eb925f94
commit 8ea1289a0f
20 changed files with 138 additions and 265 deletions

View File

@ -1,11 +1,16 @@
version 0.8 (xx Xxxx 2008) version 0.8 (24 May 2010)
- added support for multibib.
- added a command to indicate your personal homepage (\homepage{url}), as
requested by J. de Jong and A. Pairet.
- corrected an alignment bug for text following a \quote with no immediate - corrected an alignment bug for text following a \quote with no immediate
\section, as kindly reported by J. Vermeulen. \section, as kindly reported by J. Vermeulen and L. Saliou.
- corrected a spacing bug when no blank line (or \par) is left after \maketitle. - corrected a spacing bug when no blank line (or \par) is left after \maketitle.
Thanks to A. Menzel for reporting the strange behaviour. Thanks to A. Menzel for reporting the strange behaviour.
- corrected the alignment of the extrainfo title part when no picture was used, - corrected the alignment of the extrainfo title part when no picture was used,
as reported by M. Bana. as reported by M. Bana.
- corrected the missplacement of pdf bookmarks as noticed by L. Fortunato. - corrected the missplacement of pdf bookmarks as noticed by L. Fortunato.
- corrected several bugs linked to the code for checking for empty arguments in
\cventry, as reported by B. Ekran, L. Păncescu and E. Gregorio.
- ... - ...
version 0.7 (17 June 2008) version 0.7 (17 June 2008)
@ -32,7 +37,8 @@ version 0.6 (28 May 2007)
U. Stöhr. U. Stöhr.
- added color variants to the classic and casual style, as suggested by - added color variants to the classic and casual style, as suggested by
U. Stöhr. U. Stöhr.
- added a requested by A. Martin. - added a page counter for resumes running longer than 1 page, as requested by
A. Martin. It can be disabled by the command \nopagenumbers{}.
- added commands to include a mobile phone and fax number. - added commands to include a mobile phone and fax number.
- made the symbols used for the phone number, the email, ... customizable. - made the symbols used for the phone number, the email, ... customizable.
To modify those symbols, just redefine \phonesymbol, emailsymbol, ... To modify those symbols, just redefine \phonesymbol, emailsymbol, ...

View File

@ -1,3 +1,11 @@
%% start of file `template_en.tex'.
%% Copyright 2006-2010 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/.
\documentclass[11pt]{article} \documentclass[11pt]{article}

View File

@ -1,4 +0,0 @@
#!/bin/bash
for file in *.aux ; do
bibtex <20>basename $file .aux<75>
done

View File

@ -1,44 +0,0 @@
%% start of file `jdoe_publications.bib'.
%% Copyright 2006 Xavier Danaux (xdanaux<AT>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/.
@BOOK{book1,
author = {John Doe and Author 2},
title = {Title},
publisher = {Publisher},
edition = {edition},
year = {year},
}
@BOOK{book2,
author = {John Doe and Author 2},
title = {Title},
publisher = {Publisher},
edition = {edition},
year = {year},
}
@MISC{misc1,
author = {John Doe},
title = {Title},
year = {year},
}
@MISC{misc2,
author = {John Doe},
title = {Title},
year = {year},
}
@MISC{misc3,
author = {John Doe},
title = {Title},
year = {year},
}
%% end of file `jdoe_publications.bib'.

Binary file not shown.

View File

@ -1,132 +0,0 @@
%% start of file `template_en.tex'.
%% Copyright 2006-1008 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/.
\documentclass[11pt,a4paper]{moderncv}
% moderncv themes
\moderncvtheme[blue]{casual} % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{classic} % idem
% character encoding
\usepackage[utf8]{inputenc} % replace by the encoding you are using
% adjust the page margins
\usepackage[scale=0.8]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data
\firstname{John}
\familyname{Doe}
\title{Resumé title (optional)} % optional, remove the line if not wanted
\address{street and number}{postcode city} % optional, remove the line if not wanted
\mobile{mobile (optional)} % optional, remove the line if not wanted
\phone{phone (optional)} % optional, remove the line if not wanted
\fax{fax (optional)} % optional, remove the line if not wanted
\email{email (optional)} % optional, remove the line if not wanted
\extrainfo{additional information (optional)} % optional, remove the line if not wanted
\photo[64pt]{picture} % '64pt' is the height the picture must be resized to and 'picture' is the name of the picture file; optional, remove the line if not wanted
\quote{Some quote (optional)} % optional, remove the line if not wanted
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
% bibliography with mutiple entries
\usepackage{multibib}
\newcites{book,misc}{{Books},{Others}}
\makeatletter
\renewenvironment{thebibliography}[1]%
{%
\subsection{\refname}%
\small%
\begin{list}{\bibliographyitemlabel}%
{%
\setlength{\topsep}{0pt}%
\setlength{\labelwidth}{\hintscolumnwidth}%
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth%
\advance\leftmargin\labelsep%
\@openbib@code%
\usecounter{enumiv}%
\let\p@enumiv\@empty%
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
}%
{%
\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\end{list}%
}
\makeatother
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle
\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 are optional
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 are optional
\section{Master thesis}
\cvline{title}{\emph{Title}}
\cvline{supervisors}{Supervisors}
\cvline{description}{\small Short thesis abstract}
\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{Description} % arguments 3 to 6 are optional
\cventry{year--year}{Job title}{Employer}{City}{}{Description} % arguments 3 to 6 are optional
\subsection{Miscellaneous}
\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}% arguments 3 to 6 are optional
\section{Languages}
\cvlanguage{language 1}{Skill level}{Comment}
\cvlanguage{language 2}{Skill level}{Comment}
\cvlanguage{language 3}{Skill level}{Comment}
\section{Computer skills}
\cvcomputer{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvcomputer{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvcomputer{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}
\section{Interests}
\cvline{hobby 1}{\small Description}
\cvline{hobby 2}{\small Description}
\cvline{hobby 3}{\small Description}
\renewcommand{\listitemsymbol}{-} % change the symbol for lists
\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem[+]{Item 3} % optional other symbol
\section{Extra 2}
\cvlistdoubleitem[\Neutral]{Item 1}{Item 4}
\cvlistdoubleitem[\Neutral]{Item 2}{Item 5}
\cvlistdoubleitem[\Neutral]{Item 3}{}
% Publications from a BibTeX file
%\nocite{*}
%\bibliographystyle{plain}
%\bibliography{publications} % 'publications' is the name of a BibTeX file
% Publications with mutibib
\section{Publications}
\nocitebook{book1,book2}
\bibliographystylebook{plain}
\bibliographybook{publications} % 'publications' is the name of a BibTeX file
\nocitemisc{misc1,misc2,misc3}
\bibliographystylemisc{plain}
\bibliographymisc{publications} % 'publications' is the name of a BibTeX file
\end{document}
%% end of file `template_en.tex'.

View File

@ -6,16 +6,36 @@
% available at http://www.latex-project.org/lppl/. % available at http://www.latex-project.org/lppl/.
@BOOK{publication1, @BOOK{book1,
author = {Author 1 and Author 2}, author = {John Doe and Author 1},
title = {Title}, title = {Title},
publisher = {Publisher}, publisher = {Publisher},
edition = {edition}, edition = {edition},
year = {year}, year = {year},
} }
@MISC{publication2, @BOOK{book2,
author = {Author}, author = {John Doe and Author 2},
title = {Title},
publisher = {Publisher},
edition = {edition},
year = {year},
}
@MISC{misc1,
author = {John Doe},
title = {Title},
year = {year},
}
@MISC{misc2,
author = {John Doe and Author 3},
title = {Title},
year = {year},
}
@MISC{misc3,
author = {John Doe},
title = {Title}, title = {Title},
year = {year}, year = {year},
} }

BIN
examples/template.pdf Normal file

Binary file not shown.

View File

@ -1,5 +1,5 @@
%% start of file `template_en.tex'. %% start of file `template.tex'.
%% Copyright 2006-1008 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -19,7 +19,7 @@
\usepackage[scale=0.8]{geometry} \usepackage[scale=0.8]{geometry}
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates %\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
%\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details %\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}} % only for the classic theme, if you want to change the width of your name placeholder (to leave more space for your address details
\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths %\AtBeginDocument{\recomputelengths} % required when changes are made to page layout lengths
% personal data % personal data
\firstname{John} \firstname{John}
@ -30,13 +30,21 @@
\phone{phone (optional)} % optional, remove the line if not wanted \phone{phone (optional)} % optional, remove the line if not wanted
\fax{fax (optional)} % optional, remove the line if not wanted \fax{fax (optional)} % optional, remove the line if not wanted
\email{email (optional)} % optional, remove the line if not wanted \email{email (optional)} % optional, remove the line if not wanted
\homepage{homepage (optional)} % optional, remove the line if not wanted
\extrainfo{additional information (optional)} % optional, remove the line if not wanted \extrainfo{additional information (optional)} % optional, remove the line if not wanted
\photo[64pt]{picture} % '64pt' is the height the picture must be resized to and 'picture' is the name of the picture file; optional, remove the line if not wanted \photo[64pt]{picture} % '64pt' is the height the picture must be resized to and 'picture' is the name of the picture file; optional, remove the line if not wanted
\quote{Some quote (optional)} % optional, remove the line if not wanted \quote{Some quote (optional)} % optional, remove the line if not wanted
% for BibTeX numerical labels
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother
% bibliography with mutiple entries
%\usepackage{multibib}
%\newcites{book,misc}{{Books},{Others}}
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page %\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
%---------------------------------------------------------------------------------- %----------------------------------------------------------------------------------
% content % content
%---------------------------------------------------------------------------------- %----------------------------------------------------------------------------------
@ -60,9 +68,9 @@
\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}% arguments 3 to 6 are optional \cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}% arguments 3 to 6 are optional
\section{Languages} \section{Languages}
\cvlanguage{language 1}{Skill level}{Comment} \cvlanguage{Language 1}{Skill level}{Comment}
\cvlanguage{language 2}{Skill level}{Comment} \cvlanguage{Language 2}{Skill level}{Comment}
\cvlanguage{language 3}{Skill level}{Comment} \cvlanguage{Language 3}{Skill level}{Comment}
\section{Computer skills} \section{Computer skills}
\cvcomputer{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ} \cvcomputer{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
@ -83,14 +91,23 @@
\section{Extra 2} \section{Extra 2}
\cvlistdoubleitem[\Neutral]{Item 1}{Item 4} \cvlistdoubleitem[\Neutral]{Item 1}{Item 4}
\cvlistdoubleitem[\Neutral]{Item 2}{Item 5} \cvlistdoubleitem[\Neutral]{Item 2}{Item 5\cite{book1}}
\cvlistdoubleitem[\Neutral]{Item 3}{} \cvlistdoubleitem[\Neutral]{Item 3}{}
% Publications from a BibTeX file % Publications from a BibTeX file without multibib\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% for BibTeX numerical labels
\nocite{*} \nocite{*}
\bibliographystyle{plain} \bibliographystyle{plain}
\bibliography{publications} % 'publications' is the name of a BibTeX file \bibliography{publications} % 'publications' is the name of a BibTeX file
% Publications from a BibTeX file using the multibib package
%\section{Publications}
%\nocitebook{book1,book2}
%\bibliographystylebook{plain}
%\bibliographybook{publications} % 'publications' is the name of a BibTeX file
%\nocitemisc{misc1,misc2,misc3}
%\bibliographystylemisc{plain}
%\bibliographymisc{publications} % 'publications' is the name of a BibTeX file
\end{document} \end{document}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,5 @@
%% start of file `moderncv.cls'. %% start of file `moderncv.cls'.
%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -10,7 +10,7 @@
% identification % identification
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{moderncv}[2008/11/17 v0.8 modern curriculum vitae document class] \ProvidesClass{moderncv}[2010/05/24 v0.8 modern curriculum vitae document class]
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -83,29 +83,36 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% required packages % required packages
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% ifthen package % \AtEndPreamble hook (could load package etoolbox instead of defining it)
%\RequirePackage{etoolbox}
\let\@endpreamblehook\@empty
\def\AtEndPreamble{\g@addto@macro\@endpreamblehook}
\let\moderncv@document\document
\def\document{\endgroup\@endpreamblehook\begingroup\moderncv@document}
% if... then... else... constructs
\RequirePackage{ifthen} \RequirePackage{ifthen}
% ifpdf package % pdf vs ps compilation
\RequirePackage{ifpdf} \RequirePackage{ifpdf}
% color package % color
\ifpdf \ifpdf
\RequirePackage[pdftex]{color} \RequirePackage[pdftex]{color}
\else \else
\RequirePackage[dvips]{color} \RequirePackage[dvips]{color}
\fi \fi
% fontenc package % font encoding
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
% scalable Computer Modern fonts % scalable Computer Modern fonts
%\usepackage{type1cm} %\usepackage{type1cm}
% latin modern fonts % latin modern fonts
\AtEndOfClass{% %\AtEndOfClass{%
\if@lmodern \if@lmodern
\RequirePackage{lmodern}\fi} \RequirePackage{lmodern}\fi%}
% symbols like \Telefon, \Mobilefone, \Letter and \Email % symbols like \Telefon, \Mobilefone, \Letter and \Email
\RequirePackage{marvosym} \RequirePackage{marvosym}
@ -121,47 +128,35 @@
\addtolength{\marginparsep}{-5pt} \addtolength{\marginparsep}{-5pt}
\addtolength{\marginparwidth}{-10pt} \addtolength{\marginparwidth}{-10pt}
% \AtEndPreamble hook
\let\@endpreamblehook\@empty
\def\AtEndPreamble{\g@addto@macro\@endpreamblehook}
\let\moderncv@document\document
\def\document{\endgroup\@endpreamblehook\begingroup\moderncv@document}
% hyperrefs % hyperrefs
\RequirePackage{url} \RequirePackage{url}
%\if@CJK
\AtEndPreamble{%
\@ifpackageloaded{CJK}%
{%
\ifpdf%
\RequirePackage[pdftex,CJKbookmarks]{hyperref}%
\else%
\RequirePackage[dvips,CJKbookmarks]{hyperref}\fi}%
{%
\ifpdf%
\RequirePackage[pdftex]{hyperref}%
\else%
\RequirePackage[dvips]{hyperref}\fi}%
\hypersetup{%
breaklinks,%
baseurl = http://,%
pdfborder = 0 0 0,%
pdfpagemode = UseNone,%
% pdfstartview = XYZ,%
pdfstartpage = 1,%
pdfcreator = \LaTeX{} with `moderncv' package,%
pdfproducer = \LaTeX{},%
bookmarksopen = true}%
}
% TO BE CHECKED IF CANNOT BE INCLUDED IN ATENDPREAMBLE HOOK
\AtEndOfClass{%
\AtBeginDocument{%
\hypersetup{%
pdfauthor = \@firstname~\@familyname,%
pdftitle = \@title,%
pdfsubject = \@firstname~\@familyname,%
pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{}}}}
\urlstyle{tt} \urlstyle{tt}
% load hyperred at the end of the preamble to pass options required by loaded packages (like CJK)
\AtEndPreamble{
\@ifpackageloaded{CJK}
{
\ifpdf\RequirePackage[pdftex,CJKbookmarks]{hyperref}
\else\RequirePackage[dvips,CJKbookmarks]{hyperref}\fi}
{
\ifpdf\RequirePackage[pdftex]{hyperref}
\else\RequirePackage[dvips]{hyperref}\fi}
\AtBeginDocument{
\hypersetup{
breaklinks,
baseurl = http://,
pdfborder = 0 0 0,
pdfpagemode = UseNone,% do not show thumbnails or bookmarks on opening
% pdfstartview = FitH,
pdfstartpage = 1,
pdfcreator = \LaTeX{} with `moderncv' package,
pdfproducer = \LaTeX{},
bookmarksopen = true,
pdfauthor = \@firstname~\@familyname,
pdftitle = \@title,
pdfsubject = \@firstname~\@familyname,
pdfkeywords = \@firstname~\@familyname{} curriculum vit\ae{}}}
\pagenumbering{arabic}% has to be issued after loading hyperref
}
% graphics % graphics
\ifpdf \ifpdf
@ -171,7 +166,7 @@
% headers and footers % headers and footers
\usepackage{fancyhdr} \usepackage{fancyhdr}
\fancypagestyle{plain}{% \fancypagestyle{plain}{
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}
\fancyhf{}} \fancyhf{}}
@ -203,7 +198,6 @@
%\setlength\fboxrule{.4\p@} %\setlength\fboxrule{.4\p@}
\pagestyle{empty} \pagestyle{empty}
\pagenumbering{arabic}
\raggedbottom \raggedbottom
\onecolumn \onecolumn
@ -218,6 +212,7 @@
\providecommand*{\phonesymbol}{\Telefon} \providecommand*{\phonesymbol}{\Telefon}
\providecommand*{\faxsymbol}{\FAX} \providecommand*{\faxsymbol}{\FAX}
\providecommand*{\emailsymbol}{\Letter} \providecommand*{\emailsymbol}{\Letter}
\providecommand*{\homepagesymbol}{{\Large\ComputerMouse}}
% colors % colors
\definecolor{firstnamecolor}{rgb}{0,0,0} \definecolor{firstnamecolor}{rgb}{0,0,0}
@ -254,8 +249,8 @@
\newcommand*{\moderncvtheme}[2][]{ \newcommand*{\moderncvtheme}[2][]{
\def\@moderncvtheme{#2} \def\@moderncvtheme{#2}
\def\@moderncvthemeoptions{#1}} \def\@moderncvthemeoptions{#1}}
\moderncvtheme{casual} % default theme \moderncvtheme{casual}% default theme
\AtBeginDocument{\RequirePackage[\@moderncvthemeoptions]{moderncvtheme\@moderncvtheme}} \AtEndPreamble{\RequirePackage[\@moderncvthemeoptions]{moderncvtheme\@moderncvtheme}}
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -269,6 +264,7 @@
\newcommand*{\phone}[1]{\def\@phone{#1}} \newcommand*{\phone}[1]{\def\@phone{#1}}
\renewcommand*{\fax}[1]{\def\@fax{#1}} \renewcommand*{\fax}[1]{\def\@fax{#1}}
\newcommand*{\email}[1]{\def\@email{#1}} \newcommand*{\email}[1]{\def\@email{#1}}
\newcommand*{\homepage}[1]{\def\@homepage{#1}}
\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}} \newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}
\def\@photowidth{0pt} \def\@photowidth{0pt}
\newcommand*{\photo}[2][64pt]{\def\@photowidth{#1}\def\@photo{#2}} \newcommand*{\photo}[2][64pt]{\def\@photowidth{#1}\def\@photo{#2}}
@ -317,8 +313,8 @@
\recomputelengths \recomputelengths
% makes the cv title % makes the cv title
%\newcommand*{\maketitle}{}%
\title{}% to avoid LaTeX complaining that \maketitle is a called without first a call to \title \title{}% to avoid LaTeX complaining that \maketitle is a called without first a call to \title
\newcommand*{\maketitle}{}%
% draws a colored rectangle % draws a colored rectangle
% usage: \colorrule[optional height]{width} % usage: \colorrule[optional height]{width}
@ -339,7 +335,7 @@
\cvline[0.5ex]{}{% \cvline[0.5ex]{}{%
\subsectionstyle{#1}% \subsectionstyle{#1}%
% \phantomsection{}% reset the anchor for hyperrefs % \phantomsection{}% reset the anchor for hyperrefs
% \addcontentsline{toc}{chapter}{#1}% does not work, the bookmark is placed at the same level as sections (placed themself at part level to be visible, as hyperref does not allow sections without parents...) % \addcontentsline{toc}{chapter}{#1}% does not work, the bookmark is placed at the same level as sections (placed themselves at part level to be visible, as hyperref does not allow sections without parents...)
}} }}
% usage: \cvline{margintext}{linetext} % usage: \cvline{margintext}{linetext}
@ -407,26 +403,30 @@
% usage: \nopagenumbers{} % usage: \nopagenumbers{}
\newif\if@displaypagenumbers\@displaypagenumberstrue \newif\if@displaypagenumbers\@displaypagenumberstrue
\newcommand*{\nopagenumbers}{\@displaypagenumbersfalse} \newcommand*{\nopagenumbers}{\@displaypagenumbersfalse}
\AtEndPreamble{%
\AtBeginDocument{% \AtBeginDocument{%
\if@displaypagenumbers% \if@displaypagenumbers%
\@ifundefined{r@lastpage}{}{% \@ifundefined{r@lastpage}{}{%
\ifthenelse{\pageref{lastpage} > 1}{% \ifthenelse{\pageref{lastpage} > 1}{%
\fancypagestyle{plain}{% \fancypagestyle{plain}{%
\fancyfoot[r]{\addressfont\color{quotecolor}\footnotesize\thepage/\pageref{lastpage}}}% \fancyfoot[r]{\addressfont\color{quotecolor}\footnotesize\thepage/\pageref{lastpage}}}%
\pagestyle{plain}}{}}% \pagestyle{plain}}{}}%
\AtEndDocument{\label{lastpage}}% \AtEndDocument{\label{lastpage}}\else\fi}}
\fi}
% thebibliography environment, for use with BibTeX % thebibliography environment, for use with BibTeX and possibly multibib
\newcommand{\refname}{Publications} \newcommand{\refname}{Publications}
\newlength{\bibindent} \newlength{\bibindent}
\setlength{\bibindent}{1.5em} \setlength{\bibindent}{1.5em}
% bibliography item label % bibliography item label
\newcommand*{\bibliographyitemlabel}{}% use \@biblabel{\arabic{enumiv}} for BibTeX labels \newcommand*{\bibliographyitemlabel}{}% use \@biblabel{\arabic{enumiv}} for BibTeX labels
%\newif\if@multibibfirstbib\@multibibfirstbibfalse
% bibliography head (section, etc}, depending on whether multibib is used
\newcommand*{\bibliographyhead}[1]{\section{#1}}
\AtEndPreamble{\@ifpackageloaded{multibib}{\renewcommand*{\bibliographyhead}[1]{\subsection{#1}}}{}}
% thebibliography environment definition
\newenvironment{thebibliography}[1]% \newenvironment{thebibliography}[1]%
{% {%
\section{\refname}% \bibliographyhead{\refname}%
% \vspace*{-0.65em}%
\small% \small%
\begin{list}{\bibliographyitemlabel}% \begin{list}{\bibliographyitemlabel}%
{% {%

View File

@ -1,5 +1,5 @@
%% start of file `moderncvcompatibility.sty'. %% start of file `moderncvcompatibility.sty'.
%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -10,7 +10,7 @@
% identification % identification
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvcompatibility}[2008/06/17 v0.7 modern curriculum vitae compatibility patches] \ProvidesPackage{moderncvcompatibility}[2010/05/24 v0.8 modern curriculum vitae compatibility patches]
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
%% start of file `moderncvthemecasual.sty'. %% start of file `moderncvthemecasual.sty'.
%% Copyright 2007 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -10,7 +10,7 @@
% identification % identification
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemecasual}[2008/08/17 v0.8 modern curriculum vitae style: casual] \ProvidesPackage{moderncvthemecasual}[2010/05/24 v0.8 modern curriculum vitae style: casual]
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -142,6 +142,7 @@
\ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}% \ifthenelse{\isundefined{\@phone}}{}{\footersymbol\phonesymbol~\@phone\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}% \ifthenelse{\isundefined{\@fax}}{}{\footersymbol\faxsymbol~\@fax\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}% \ifthenelse{\isundefined{\@email}}{}{\footersymbol\emailsymbol~\emaillink{\@email}\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@homepage}}{}{\footersymbol\homepagesymbol~\httplink{\@homepage}\@firstfooterelementfalse}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}% \ifthenelse{\isundefined{\@extrainfo}}{}{\footersymbol\@extrainfo\@firstfooterelementfalse}}}%
}% }%
\pagestyle{plain}} \pagestyle{plain}}

View File

@ -1,5 +1,5 @@
%% start of file `moderncvthemeclassic.sty'. %% start of file `moderncvthemeclassic.sty'.
%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -10,7 +10,7 @@
% identification % identification
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemeclassic}[2008/06/17 v0.7 modern curriculum vitae style: classic] \ProvidesPackage{moderncvthemeclassic}[2010/05/24 v0.8 modern curriculum vitae style: classic]
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -149,6 +149,7 @@
\ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}% \ifthenelse{\isundefined{\@phone}}{}{\maketitledetailsnewline\phonesymbol~\@phone}%
\ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}% \ifthenelse{\isundefined{\@fax}}{}{\maketitledetailsnewline\faxsymbol~\@fax}%
\ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}% \ifthenelse{\isundefined{\@email}}{}{\maketitledetailsnewline\emailsymbol~\emaillink{\@email}}%
\ifthenelse{\isundefined{\@homepage}}{}{\maketitledetailsnewline\homepagesymbol~\httplink{\@homepage}}%
\ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}% \ifthenelse{\isundefined{\@extrainfo}}{}{\maketitledetailsnewline\@extrainfo}%
\end{minipage}% \end{minipage}%
% optional photo % optional photo

View File

@ -1,5 +1,5 @@
%% start of file `moderncvthemeempty.sty'. %% start of file `moderncvthemeempty.sty'.
%% Copyright 2006-2008 Xavier Danaux (xdanaux@gmail.com). %% Copyright 2006-2010 Xavier Danaux (xdanaux@gmail.com).
% %
% This work may be distributed and/or modified under the % This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c, % conditions of the LaTeX Project Public License version 1.3c,
@ -10,7 +10,7 @@
% identification % identification
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{moderncvthemeempty}[2008/06/17 v0.7 modern curriculum vitae style: empty] \ProvidesPackage{moderncvthemeempty}[2010/05/24 v0.8 modern curriculum vitae style: empty]
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------