-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbiblatex.cfg
More file actions
45 lines (38 loc) · 2.18 KB
/
biblatex.cfg
File metadata and controls
45 lines (38 loc) · 2.18 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
% Bibliography options
% Options available in the biblatex documentation, http://ctan.mirrorcatalogs.com/macros/latex/contrib/biblatex/doc/biblatex.pdf#46 (page 46)
%% Basic setup
\ExecuteBibliographyOptions{% This can also be included into some internal file, e.g. _settings.tex
sorting=none, % Dont sort refs, but list them as they come
maxnames=5, % Truncate author list after 5 authors ...
minnames=3, % ... But display at least 3 authors
hyperref=true, % Use hyperref package (should be automatically detected, though)
backref=true, % Back references from bibliography page to each encounter
backrefstyle=two, % Combine back refs if on two consecutive pages
isbn=false, % Dont print ISBN, ISSN numbers
autolang=hyphen
}
%% Appearance
\DeclareFieldFormat*{title}{\textbf{#1}\isdot} % Paper title (of all types = *) should be bold and terminated with a dot
\DeclareFieldFormat{journaltitle}{\mkbibemph{#1},} % Italic journal title with comma
\DeclareListFormat[report,techreport]{institution}{\mkbibemph{#1}} % Italic institution
\DeclareFieldFormat[article]{volume}{\textbf{#1}\addcolon\space} % Volume number bold and add a colon afterwards
\renewcommand{\labelnamepunct}{\addcolon\space} % Print colon after author list, not the default (period)
\renewcommand{\mkbibnamefirst}[1]{\textsc{#1}} % Make author names small caps; this, and some other stuff based on http://www.khirevich.com/latex/biblatex/
\renewcommand{\mkbibnamelast}[1]{\textsc{#1}}
\renewcommand{\mkbibnameprefix}[1]{\textsc{#1}}
\renewcommand{\mkbibnameaffix}[1]{\textsc{#1}}
%% Some more tweaks following
\DefineBibliographyStrings{english}{% The name of back refs.
backrefpage = {\lowercase{s}ee p.}, % For single page number
backrefpages = {\lowercase{s}ee pp.} % For multiple page numbers
}
\AtEveryBibitem{\clearlist{language}} % Clears "language" field from .bib for every item
\renewcommand{\UrlFont}{\small\ttfamily} % Makes the URL fixed-width font a bit smaller
\DeclareSourcemap{% Will display URL only if DOI is not specified, adapted from here: http://tex.stackexchange.com/a/154875/56326
\maps[datatype=bibtex]{
\map{
\step[fieldsource=doi,final]
\step[fieldset=url,null]
}
}
}