Mercurial > hg > cv
comparison cv.sty @ 1:a44fcb927d9d short
Two pages version for "Research in Paris 2012" application
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Sat, 05 May 2012 16:05:09 +0200 |
parents | 7102bd9bd8b9 |
children |
comparison
equal
deleted
inserted
replaced
0:7102bd9bd8b9 | 1:a44fcb927d9d |
---|---|
1 % inspired by http://robjhyndman.com/research/cv.sty | 1 % inspired by http://robjhyndman.com/research/cv.sty |
2 | 2 |
3 \usepackage{datetime,fancyhdr,xcolor,enumitem} | 3 \usepackage{datetime,xcolor,enumitem} |
4 \usepackage[a4paper,text={17.5cm,25.5cm},centering]{geometry} | 4 \usepackage[a4paper,text={17.5cm,25.5cm},centering]{geometry} |
5 \usepackage[compact,small,bf]{titlesec} | 5 \usepackage[compact,small,bf]{titlesec} |
6 | 6 |
7 % fonts | 7 % fonts |
8 \usepackage[charter]{mathdesign} | 8 \usepackage[charter]{mathdesign} |
17 | 17 |
18 % mailto command | 18 % mailto command |
19 \DeclareRobustCommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}} | 19 \DeclareRobustCommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}} |
20 | 20 |
21 % header and footer | 21 % header and footer |
22 \pagestyle{fancy} | 22 %\pagestyle{fancy} |
23 \lhead{\fontsize{9}{12}\sf Curriculum Vitae: \@name} | 23 %\lhead{\fontsize{9}{12}\sf Curriculum Vitae: \@name} |
24 \rhead{\fontsize{9}{12}\sf\thepage} | 24 %\rhead{\fontsize{9}{12}\sf\thepage} |
25 \cfoot{} | 25 %\cfoot{} |
26 | 26 |
27 % date format | 27 % date format |
28 \newdateformat{df}{\monthname~\THEYEAR} | 28 \newdateformat{df}{\monthname~\THEYEAR} |
29 \df | 29 \df |
30 | 30 |
34 \def\info#1{\def\@info{#1}} | 34 \def\info#1{\def\@info{#1}} |
35 \def\maketitle{ | 35 \def\maketitle{ |
36 % add pdf metadata | 36 % add pdf metadata |
37 \hypersetup{pdftitle=\@name\ Curriculum Vitae,pdfauthor=\@name} | 37 \hypersetup{pdftitle=\@name\ Curriculum Vitae,pdfauthor=\@name} |
38 \thispagestyle{empty} | 38 \thispagestyle{empty} |
39 \vspace*{-1.4cm} | 39 \vspace*{-1.2cm} |
40 \noindent | 40 \noindent |
41 {\color{thered}\Large\textbf{Curriculum Vitae}\\[0.5em]}% | 41 {\color{thered}\Large\textbf{Curriculum Vitae}\\[0.5em]}% |
42 {\LARGE\textbf{\@name}\\[0.5em]}% | 42 {\LARGE\textbf{\@name}\\[0.5em]}% |
43 \setlength{\tabcolsep}{0pt} | 43 \setlength{\tabcolsep}{0pt} |
44 \begin{tabular*}{0.55\textwidth}{l} | 44 \begin{tabular*}{0.55\textwidth}{l} |
51 \vspace*{1em} | 51 \vspace*{1em} |
52 } | 52 } |
53 | 53 |
54 % section headings | 54 % section headings |
55 \titlelabel{} | 55 \titlelabel{} |
56 \titlespacing*{\section}{0pt}{2ex}{1ex} | 56 \titlespacing*{\section}{0pt}{2.5ex}{1ex} |
57 \titleformat*{\section}{\color{thered}\large\bfseries} | 57 \titleformat*{\section}{\color{thered}\large\bfseries} |
58 \titlespacing*{\subsection}{0pt}{1ex}{0.5ex} | 58 \titlespacing*{\subsection}{0pt}{1ex}{0.5ex} |
59 | 59 |
60 % miscellaneous dimensions | 60 % miscellaneous dimensions |
61 \setlength{\parskip}{0pt} | 61 \setlength{\parskip}{0pt} |
67 \setdescription{leftmargin=2em,style=nextline} | 67 \setdescription{leftmargin=2em,style=nextline} |
68 | 68 |
69 \newenvironment{dottedlist} | 69 \newenvironment{dottedlist} |
70 %{\vspace{0.5ex}\begin{quote}\def\and{\hspace{0.2ex}\raisebox{0.2ex}{\tiny$\bullet$}\space\hspace{0.2ex}}} | 70 %{\vspace{0.5ex}\begin{quote}\def\and{\hspace{0.2ex}\raisebox{0.2ex}{\tiny$\bullet$}\space\hspace{0.2ex}}} |
71 {\vspace{0.5ex}\begin{quote}\def\and{{\footnotesize\textbullet\space}}} | 71 {\vspace{0.5ex}\begin{quote}\def\and{{\footnotesize\textbullet\space}}} |
72 {\end{quote}\vspace*{-1ex}} | 72 {\end{quote}\vspace*{-0.4em}} |
73 | 73 |
74 % bibliography formatting | 74 % bibliography formatting |
75 \usepackage[bibstyle=authortitle,sorting=none]{biblatex} | 75 \usepackage[bibstyle=authortitle,sorting=none]{biblatex} |
76 | 76 |
77 % biblatex version in texlive 2010 does not contain this definition | 77 % biblatex version in texlive 2010 does not contain this definition |
146 \setunit{\adddot\space}% | 146 \setunit{\adddot\space}% |
147 \printfield{url} | 147 \printfield{url} |
148 \usebibmacro{finentry}} | 148 \usebibmacro{finentry}} |
149 | 149 |
150 \renewcommand*{\bibitem}{\item} | 150 \renewcommand*{\bibitem}{\item} |
151 \defbibenvironment{bibliography}{\begin{enumerate}}{\end{enumerate}}{\bibitem} | 151 \defbibenvironment{bibliography}{\begin{enumerate}[itemsep=0pt,parsep=0.5ex]}{\end{enumerate}}{\bibitem} |
152 | 152 |
153 % add all papers in the bib file. | 153 % add all papers in the bib file. |
154 \nocite{*} | 154 \nocite{*} |