-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages.tex
69 lines (60 loc) · 1.9 KB
/
packages.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
% remove both for IEEE citation styles, see also src/appendix
\usepackage[authoryear,square]{natbib}
\renewcommand{\cite}{\citep}
% better font, similar to the default springer font
% cfr-lm is preferred over lmodern. Reasoning at http://tex.stackexchange.com/a/247543/9075
\usepackage[%
rm={oldstyle=false,proportional=true},%
sf={oldstyle=false,proportional=true},%
tt={oldstyle=false,proportional=true,variable=true},%
qt=false%
]{cfr-lm}
% extended enumerate, such as \begin{compactenum}
\usepackage{paralist}
% for easy quotations: \enquote{text}
\usepackage{csquotes}
% tweak \url{...}
\usepackage{url}
% nicer // - solution by http://tex.stackexchange.com/a/98470/9075
\makeatletter
\def\Url@twoslashes{\mathchar`\/\@ifnextchar/{\kern-.2em}{}}
\g@addto@macro\UrlSpecials{\do\/{\Url@twoslashes}}
\makeatother
\urlstyle{same}
% improve wrapping of URLs - hint by http://tex.stackexchange.com/a/10419/9075
\makeatletter
\g@addto@macro{\UrlBreaks}{\UrlOrds}
\makeatother
% enable hyperref without colors and without bookmarks
\usepackage[
% pdfauthor={\theauthor},
% pdfsubject={},
% pdftitle={\thetitle},
% pdfkeywords={},
bookmarks=false,
breaklinks=true,
colorlinks=true,
linkcolor=black,
citecolor=black,
urlcolor=black,
pdfpagelayout=SinglePage,
pdfstartview=Fit
]{hyperref}
% enable \cref{...} and \Cref{...} instead of \ref: Type of reference included in the link
\usepackage[capitalise,nameinlink]{cleveref}
% Nice formats for \cref
\crefname{section}{Sect.}{Sect.}
\Crefname{section}{Section}{Sections}
\crefname{figure}{Fig.}{Fig.}
\Crefname{figure}{Figure}{Figures}
\crefname{table}{Tabl.}{Tabl.}
\Crefname{table}{Table}{Tables}
% e.g. and i.e.
\usepackage{xspace}
\newcommand{\eg}{e.\,g.,\ }
\newcommand{\ie}{i.\,e.,\ }
% graphics
\usepackage[export]{adjustbox} % loads also graphicx
\usepackage{float}
\usepackage{rotating}
\usepackage{wrapfig}