-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharxiv.def
59 lines (52 loc) · 1.2 KB
/
arxiv.def
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
\ProvidesFile{arxiv.def}
\AtEveryCitekey{\clearfield{eprintclass}}
\renewbibmacro{in:}{%
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}%
}
\renewbibmacro*{issue+date}{%
\iffieldundef{year}{}{%
\printtext[parens]{%
\iffieldundef{issue}{%
\usebibmacro{date}%
}{%
\printfield{issue}%
\setunit*{\addspace}%
\usebibmacro{date}}}%
}%
\newunit%
}
\DeclareFieldFormat{url}{%
% \newline
\mkbibacro{Url}\addcolon\addnbspace%
\url{#1}%
}
\DeclareFieldFormat{doi}{%
% \newline
\mkbibacro{Doi}\addcolon\addnbspace%
\ifhyperref{%
\href{http://dx.doi.org/#1}{\nolinkurl{#1}}%
}{%
\nolinkurl{#1}%
}%
}
\makeatletter
\DeclareFieldFormat{eprint:arxiv}{%
% \newline
arXiv\addcolon\addnbspace%
\ifhyperref{%
\href{http://arxiv.org/\abx@arxivpath/#1}{%
\nolinkurl{#1}%
% \iffieldundef{eprintclass}{}{%
% \addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}%
% }%
}%
}{%
\nolinkurl{#1}
% \iffieldundef{eprintclass}{}{%
% \addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}%
% }%
}%
}
\makeatother
% remove conflicting initials
% https://tex.stackexchange.com/questions/297489/how-to-abbreviate-first-names-with-multiple-letters-using-biblatex/297490#297490