preamble.tex 3.75 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% This is the preamble of the documents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   PACKAGES   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper]{article}
\usepackage[table]{xcolor}
\usepackage{amsmath}  %environment to group formulas 
\usepackage{amssymb} %additional symbols (from msam and msmb)
\usepackage{amsfonts}
%\usepackage{biblatex} %for citations and bibliography
\usepackage{booktabs} %for \toprule (tables with nicer horizontal lines)
15
%\usepackage{caption}
16
17
18
%\usepackage{cite}
\usepackage{chemfig} %for chemical figures
\usepackage{fancyhdr} %for customisation of the header (also offers additional pagestyle 'fancy' that includes a line underneath the header)
Alexander Schoch's avatar
Alexander Schoch committed
19
20
21
%\usepackage{floatrow}
\usepackage{float}
%\floatsetup[table]{capposition=top}
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\usepackage{footmisc} %for typesetting of footnotes
\usepackage[margin=1in]{geometry} %set page margins (layout)
\usepackage{graphicx} %to include figures, rotating and scaling text
\usepackage{hyperref} %automatically inserts hyperlinks into the text (also for chapters etc.)
\usepackage{lipsum} %insert placeholder text by typing '\lipsum'
%\usepackage[version=3]{mhchem} %chemical notation
\usepackage{microtype} %improves appearance of written text blocks
\usepackage{multicol} %for quickly setting multicolumn text in a single column document
\usepackage[parfill]{parskip}  %no indentation and space between paragraphs
\usepackage{pdfpages} %easily insert pdf pages or whole documents
\usepackage{setspace} %for setting the spacing between lines inside the document 
\usepackage{siunitx} %facilitates typesetting SI units + 'S' column type -> aligning numbers e.g. on decimal marker
%\usepackage{subfig} %to place small figures or tables within a single figure
\usepackage{subcaption}
%\captionsetup{belowskip=0pt,aboveskip=0pt}
\usepackage{tabularx} % extra features for tabular environment
Alexander Schoch's avatar
Alexander Schoch committed
38
%\usepackage{textpos} %placement of text at absolute positions on the page
39
40
41
\usepackage{tikzorbital}
\usepackage{titlesec} %no indented section titles
\usepackage{titling}  %to modify '\maketitle' 
42
43
44
45
\usepackage{longtable}
\usepackage{natbib}
\usepackage{tabu}
\usepackage[version=4]{mhchem}
46
47
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
48
%\usetikzlibrary{arrows}
49
50
51
\usepackage{xurl}
\usepackage{listings}
\usepackage{mdframed}
52
\usepackage{microtype}
53
54
\usepackage{enumitem}
\usepackage{csquotes}
55
\usepackage{modiagram}
56
57

\sisetup{range-phrase=\textup{ -- }} % better
58
59
60
\DeclareSIUnit\ton{\textrm{t}}
\DeclareSIUnit\year{\textrm{a}}
\DeclareSIUnit{\molar}{M}
61

62
\definecolor{palesilver}{rgb}{0.79, 0.75, 0.73}
63

64
%%%%%%%%   FONT   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65
66
67
68
69
70
71
72

\linespread{1.25}

\renewcommand{\headrulewidth}{0pt} %remove hline header
\setlength\extrarowheight{4pt} %increase rowheight in tables


\setlength{\headheight}{26pt} %change height of frontpage title
Alexander Schoch's avatar
Alexander Schoch committed
73
\lhead{UFO PVK - Chemie - Anorganische Chemie und Chemie Bindung - FS20}
74
75
76
77
78
79
\rhead{}
\setlength{\droptitle}{-0.0cm} 

\newcommand{\cmt}[1]{}

% The first page should not have anything on the bottom and no rule at the top
80

81
82
83
84
85
86
\fancypagestyle{plain}{%
	\renewcommand{\headrulewidth}{0pt}%
	\fancyhf{}%
	\fancyfoot[C]{}%
}
% Pagestyle fancy: Header with authors and title, footer with page number
87

88
89
90
91
92
93
94
95
\pagestyle{fancy}
\fancyfoot[C]{\textit{\thepage}}

% do not indent normal paragraphs
\parindent0mm

\def\arraystretch{1.25}

96
97
\setlist[itemize]{noitemsep, nolistsep}
\setlist[enumerate]{noitemsep, nolistsep}
rasmussa's avatar
rasmussa committed
98

99
%\textbackslash\{\}definesubmol\{ox\}3\{-[\#3,0.4,,,,draw=none]\#2-[4,0.2,,,,draw=none]\{\#1\}\}\definesubmol{ox}3{-[#3,0.4,,,,draw=none]#2-[4,0.2,,,,draw=none]{#1}}