-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sty
75 lines (57 loc) · 2.02 KB
/
config.sty
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
% ************************************************************************* %
% 4. Biblatex
% ************************************************************************* %
%there was however the problem, that I could not get the spacing
% for the headline right - depends on parskip!
% For [1] - Style comments:
%\usepackage[natbib=true,style=numeric,sorting=none]{biblatex}
% For (Name, 2002) - Style comments:
\usepackage[%
backend=bibtex, % needed for compilation
style=numeric, % authoryear-comp maybe?
sorting=none,
minbibnames=5,
maxbibnames=5,
defernumbers=true,
firstinits=true
%% url=true, %
%% maxbibnames=99, %
%% doi=true, %
%% maxcitenames=2, %
%% dashed=false, % (1)
]{biblatex}
% (1): no dash for same authors in biblography:
%
% John Doe 2012 -> John Doe 2012
% ---- 2013 John Doe 2013
\DeclareFieldFormat*{urldate}{}
\AtEveryBibitem{%
\ifentrytype{misc}{%
}{%
\clearfield{url}%
}%
}
\AtEveryBibitem{\clearlist{language}}
\AtEveryBibitem{\ifentrytype{article}{\clearfield{issn}}{}}
\AtEveryBibitem{\clearfield{month}}
%\AtEveryBibitem{\clearfield{pages}}
%\AtEveryBibitem{\clearfield{number}}
%\AtEveryBibitem{\clearfield{volume}}
\AtEveryBibitem{\clearfield{eprint}}
\AtEveryBibitem{\clearfield{isbn}}
\AtEveryBibitem{\clearfield{shorttitle}}
\AtEveryBibitem{\clearfield{note}}
% removes quotation marks for article titles
\DeclareFieldFormat[article, incollection, inproceedings]{title}{#1}
% set the distances between bib items
\setlength\bibitemsep{3.9pt}
% % Links to DOIs
% % see http://tex.stackexchange.com/questions/23832
% \ExecuteBibliographyOptions{doi=false}
% \newbibmacro{string+doi}[1]{%
% \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}}
% \DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}}
% \DeclareFieldFormat[article,incollection]{title}{\usebibmacro{string+doi}{#1}}
%\bibliography{extr}
%\bibliography{\string~/lib/main_bibtex}
\bibliography{lib/main}