-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_config.sty
121 lines (84 loc) · 3.08 KB
/
local_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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
\usepackage{textcomp}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage{amsthm} % Does theorem stuff
\usepackage{amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage[breaklinks=true]{hyperref}
\definecolor{darkblue}{rgb}{0.0,0.0,0.3} %pdf book marks the way I like%
\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue, menucolor=darkblue, pagecolor=darkblue, urlcolor=darkblue}
\usepackage{graphicx}
\usepackage[format=hang]{caption}
%-----------style------------------------%
\addtolength{\parskip}{\baselineskip} %Absätze im Text werden auch tatsächlich zu Absätzen%
\parindent 0pt
\makeatletter
\g@addto@macro\normalsize{%
\setlength\abovedisplayskip{12pt}
\setlength\belowdisplayskip{12pt}
\setlength\abovedisplayshortskip{10pt}
\setlength\belowdisplayshortskip{10pt}
}
\makeatother
% -------------- comments ---------------%
% in red:
\newcommand{\cc}[1]{\textcolor{Green}{#1}}
%----------new--commands-----------------%
\newcommand{\E}{\operatorname{\mathbf{E}}}
\newcommand{\Var}{\operatorname{\mathbf{Var}}}
% ************************************************************************* %
% 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{references}
%\bibliography{\string~/lib/main_bibtex}