Mercurial > hg > cv
comparison cv.sty @ 23:6396966cca25
Update
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Thu, 16 Sep 2021 23:42:27 +0200 |
parents | a74b9e0f9064 |
children | 49001fa5195c |
comparison
equal
deleted
inserted
replaced
22:21f23164e7d5 | 23:6396966cca25 |
---|---|
15 % fancy pdf | 15 % fancy pdf |
16 \usepackage[colorlinks,urlcolor=theblue,linkcolor=theblue,citecolor=theblue]{hyperref} | 16 \usepackage[colorlinks,urlcolor=theblue,linkcolor=theblue,citecolor=theblue]{hyperref} |
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 % orcid command | |
21 \DeclareRobustCommand\orcid[1]{\href{https://orcid.org/#1}{\nolinkurl{#1}}} | |
20 | 22 |
21 % header and footer | 23 % header and footer |
22 \pagestyle{fancy} | 24 \pagestyle{fancy} |
23 \lhead{\fontsize{9}{12}\sf Curriculum Vitae: \@name} | 25 \lhead{\fontsize{9}{12}\selectfont Curriculum Vitae: \@name} |
24 \rhead{\fontsize{9}{12}\sf\thepage} | 26 \rhead{\fontsize{9}{12}\selectfont \thepage} |
25 \cfoot{} | 27 \cfoot{} |
26 | 28 |
27 % date format | 29 % date format |
28 \newdateformat{df}{\monthname~\THEYEAR} | 30 \newdateformat{df}{\monthname~\THEYEAR} |
29 \df | 31 \df |
39 \vspace*{-1.4cm} | 41 \vspace*{-1.4cm} |
40 \noindent | 42 \noindent |
41 {\color{thered}\Large\textbf{Curriculum Vitae}\\[0.5em]}% | 43 {\color{thered}\Large\textbf{Curriculum Vitae}\\[0.5em]}% |
42 {\LARGE\textbf{\@name}\\[0.5em]}% | 44 {\LARGE\textbf{\@name}\\[0.5em]}% |
43 \setlength{\tabcolsep}{0pt} | 45 \setlength{\tabcolsep}{0pt} |
44 \begin{tabular*}{0.55\textwidth}{l} | 46 \begin{tabular*}{0.6\textwidth}[t]{l} |
45 \@address | 47 \@address |
46 \end{tabular*} | 48 \end{tabular*} |
47 \setlength{\tabcolsep}{0.25em} | 49 \setlength{\tabcolsep}{0.25em} |
48 \begin{tabular}{rl} | 50 \begin{tabular}[t]{rl} |
49 \@info | 51 \@info |
50 \end{tabular} | 52 \end{tabular}} |
51 \vspace*{1em} | |
52 } | |
53 | 53 |
54 % section headings | 54 % section headings |
55 \titlelabel{} | 55 \titlelabel{} |
56 \titlespacing*{\section}{0pt}{2ex}{1ex} | 56 \titlespacing*{\section}{0pt}{2ex}{1ex} |
57 \titleformat*{\section}{\color{thered}\large\bfseries} | 57 \titleformat*{\section}{\color{thered}\large\bfseries} |
70 {\vspace{0.5ex}\list{}{\leftmargin=2em\rightmargin=2em}\item[] | 70 {\vspace{0.5ex}\list{}{\leftmargin=2em\rightmargin=2em}\item[] |
71 \def\and{{\footnotesize\textbullet\space}}} | 71 \def\and{{\footnotesize\textbullet\space}}} |
72 {\endlist\vspace*{-1ex}} | 72 {\endlist\vspace*{-1ex}} |
73 | 73 |
74 % bibliography formatting | 74 % bibliography formatting |
75 \usepackage[backend=biber,bibstyle=authortitle,sorting=none]{biblatex} | 75 \usepackage[backend=biber,bibstyle=authortitle,sorting=ydnt]{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 |
78 \defbibheading{none}{}{}{} | 78 \defbibheading{none}{}{}{} |
79 | 79 |
80 \DeclareFieldFormat{url}{\url{#1}} | 80 \DeclareFieldFormat{url}{\url{#1}} |
81 \DeclareFieldFormat{pages}{#1} | 81 \DeclareFieldFormat{pages}{#1} |
82 \DeclareFieldFormat{journaltitle}{#1} | 82 \DeclareFieldFormat{journaltitle}{#1} |
83 \DeclareFieldFormat{year}{\textbf{#1}} | 83 \DeclareFieldFormat{year}{\textbf{#1}} |
84 \DeclareFieldFormat{date}{\textbf{#1}} % used for online entry type | |
84 \DeclareFieldFormat[article]{title}{\textit{#1}} | 85 \DeclareFieldFormat[article]{title}{\textit{#1}} |
85 | 86 |
86 \DeclareFieldFormat{doi}{% | 87 \DeclareFieldFormat{doi}{% |
87 \texttt{DOI}\addcolon\space | 88 \texttt{DOI}\addcolon\space |
88 \ifhyperref | 89 \ifhyperref |