-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpublication_list.tex
More file actions
106 lines (89 loc) · 4.14 KB
/
publication_list.tex
File metadata and controls
106 lines (89 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%% Copyright 2006-2015 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,sans]{moderncv} % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
% moderncv themes
\moderncvstyle{classic} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
\moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
%\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
% adjust the page margins
\usepackage[scale=0.8]{geometry}
\AtBeginDocument{\recomputelengths}
% personal data
\firstname{Bastian}
\familyname{Hagedorn}
\address{Einsteinstraße 62}{48149 Münster, Germany}
\phone[fixed]{+49~(0)~251~83-32746}
\email{b.hagedorn@wwu.de}
\usepackage[style=numeric-verb,
sorting=none, % keep order as in the bib file ...
giveninits=true,
defernumbers,
backend=biber,
maxbibnames=50]{biblatex}
\defbibenvironment{bibliography}
{\list%
{\printfield{year}\hspace{1em}\printtext[labelnumberwidth]{\printfield{labelprefix}\printfield{labelnumber}}}
{\setlength{\topsep}{0pt}% layout parameters from moderncvstyleclassic.sty
\setlength{\labelwidth}{\hintscolumnwidth}%
\setlength{\labelsep}{\separatorcolumnwidth}%
\leftmargin\labelwidth%
\advance\leftmargin\labelsep%
}%
\sloppy\clubpenalty4000\widowpenalty4000}
{\endlist}
{\item}
\DeclareNameAlias{default}{first-last}
\usepackage{xstring}
\usepackage{xpatch}
\newbibmacro*{name:bold}[2]{%
\def\do##1{\iffieldequalstr{hash}{##1}{\bfseries\listbreak}{}}%
\dolistloop{\boldnames}%
}
\newcommand*{\boldnames}{}
\xpretobibmacro{name:family}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
\xpretobibmacro{name:given-family}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
\xpretobibmacro{name:family-given}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
\xpretobibmacro{name:delim}{\begingroup\normalfont}{}{}
\xapptobibmacro{name:family}{\endgroup}{}{}
\xapptobibmacro{name:given-family}{\endgroup}{}{}
\xapptobibmacro{name:family-given}{\endgroup}{}{}
\xapptobibmacro{name:delim}{\endgroup}{}{}
% Got hashes from the bbl file
\renewcommand*{\boldnames}{}
\forcsvlist{\listadd\boldnames}
{{f3b57123791f63857d478ac84c802258},
{7dd9b93410e4a44439b25ea5e2c49d4a}}
% Only print a year once
\newcounter{currentYear}
\DeclareFieldFormat{year}{%
\ifthenelse{\equal{#1}{\arabic{currentYear}}}%
{}
%{\setcounter{currentYear}{#1}{\bfseries #1}}}
{\setcounter{currentYear}{#1}{#1}}}
\bibliography{publications}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
\nocite{*}
%----- resume ---------------------------------------------------------
\makecvtitle
%----------------------------------------------------------------------------------
% publications
%----------------------------------------------------------------------------------
\printbibheading[title={Publications}]
\printbibliography[heading=none]
% Publications from a BibTeX file without multibib
% for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
% to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles}
%\bibliographystyle{plain}
%\bibliography{publications}
\end{document}