-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
executable file
·47 lines (43 loc) · 1.14 KB
/
preamble.tex
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
\usepackage{hepnicenames}
\usepackage{microtype}
\newcommand{\texorpdfstring}[2]{#1}
\usepackage[hyperref=true,backend=biber,sorting=none,firstinits=true]{biblatex}
\makeatletter
\DeclareFieldFormat{url}{%
\mkbibacro{URL}\addcolon\space%
{\href{#1}{\nolinkurl{#1}}}}
\DeclareFieldFormat{doi}{%
\mkbibacro{DOI}\addcolon\space%
{\href{http://dx.doi.org/#1}{\nolinkurl{#1}}}}
\DeclareFieldFormat{eprint:arxiv}{%
arXiv\addcolon\space%
{\href{http://arxiv.org/\abx@arxivpath/#1}{%
\nolinkurl{#1}%
\iffieldundef{eprintclass}
{}
{\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}
}
\makeatother
\DeclareSourcemap{
\maps[datatype=bibtex,overwrite=true]{
\map{
\step[fieldsource=Collaboration, final=true]
\step[fieldset=usera, origfieldval, final=true]
}
}
}
\renewbibmacro*{author}{%
\iffieldundef{usera}{%
\printnames{author}%
}{%
\printfield{usera}, \printnames{author}%
}%
}%
%\DeclareBibliographyCategory{Internal}
%\bibliography{main} %% LATE FIX
\renewbibmacro{in:}{}
\addbibresource{main.bib}
%\nobibintoc
\ifthenelse{\boolean{withlinenumbers}}{
\usepackage{lineno}
}{}