-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.tex
86 lines (72 loc) · 3.56 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
% bare minimum for useful work
\usepackage[T1]{fontenc} % font encoding for most european language characters
\usepackage[utf8]{inputenc} % use utf8 characters for inputs
\usepackage{hyperref} % generate links for references in pdf
\usepackage[ngerman]{babel} % german translations for tableofcontents, figure, etc.
\usepackage{lmodern} % use smoother latin font
\usepackage{microtype} % better readability of font (but not that much of a difference)
\usepackage{graphicx} % allow inclusion of graphics
\usepackage{pdfpages} % embed whole or partial .pdf files
\usepackage[super, comma, numbers, square, sort]{natbib} % use citations and generate citation list in the style of Nature journal
\usepackage{svg}
% useful text extension functions
\usepackage{subscript} % use subscript text
\usepackage{textcomp} % use special symbols like ° with \textcelsius in plain text
\usepackage{enumerate} % use easy numbered list instead of \itemize
\usepackage{multicol}
\usepackage{booktabs}
\usepackage[ampersand]{easylist}
\usepackage{amssymb}
\usepackage{acronym} % define and display acronyms in various ways in document
\usepackage{caption}
\captionsetup{belowskip=0pt,aboveskip=6pt}
\usepackage{wrapfig}
\usepackage{lipsum}
\newenvironment{conditions}
{\par\vspace{\abovedisplayskip}\noindent\begin{tabular}{>{$}l<{$} @{${:} \hspace{2mm}{}$} l}}
{\end{tabular}\par\vspace{\belowdisplayskip}}
\usepackage{tikz}
\usepackage{etoolbox}
\newcommand{\circled}[2][]{%
\tikz[baseline=(char.base)]{%
\node[shape = circle, draw, inner sep = 0.7pt]
(char) {\phantom{\ifblank{#1}{#2}{#1}}};%
\node at (char.center) {\makebox[1pt][c]{#2}};}}
\robustify{\circled}
% academic stuff
\usepackage{siunitx} % use SI units with correct formatting and better syntax
\sisetup{locale = DE}
\usepackage{amsmath} % standard package for all things math
\usepackage{csvsimple} % import tables form .csv files
\usepackage{tabularx} % generate better tables
\usepackage[version=4]{mhchem}
% layout
\usepackage[onehalfspacing]{setspace} % set line height to 1.5
\parindent=0pt % remove indentation after paragraphs (alternatively use \usepackage{parskip})
\usepackage{float} % let user determine floating position of fig, equation, table, etc. (only use if necessary, since latex does a good job on its own)
\usepackage{fancyhdr} % define
\renewcommand{\headrulewidth}{0.1pt} % add thin line to page header
\renewcommand{\footrulewidth}{0pt} % remove line from page footer
\fancyfoot[C]{ {\thepage} } % add page number to center of page footer
\usepackage[hcentering,bindingoffset=10mm]{geometry} % set binding offset for double sided style
\geometry{a4paper, top=25mm, bottom=25mm} % set din format and page margins
\renewcommand{\headrulewidth}{0pt} % add thin line to page header
\renewcommand{\footrulewidth}{0pt} % remove line from page footer
\fancyfoot[C]{ {\thepage} }
\fancyfoot[R]{} % add page number to center of page footer
\fancyhead{} %zentrierte Kopfzeile
\geometry{a4paper, top=20mm, bottom=20mm, left=20mm, right=20mm} % set din format and page margins
\usepackage[nameinlink,capitalize]{cleveref}
% optional renaming of captions
\addto\captionsngerman{\def\figurename{Abb.}}
\addto\extrasngerman{\def\figureautorefname{Abb.}}
\addto\captionsngerman{\def\tablename{Tab.}}
\addto\extrasngerman{\def\tableautorefname{Tab.}}
% optional renaming of references using cref{}
\crefname{figure}{Abb.}{Abb.}
\crefname{equation}{Gl.}{Gl.}
\crefname{table}{Tab.}{Tab.}
\usepackage{fontspec}
%\setmainfont{Arial}
% error hinting
%\RequirePackage[l2tabu, orthodox]{nag} % error hinting for the most accurate of people