To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

preamble.tex 3.54 KB
Newer Older
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
% 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)
\usepackage{caption}
%\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)
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\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
\usepackage{textpos} %placement of text at absolute positions on the page
\usepackage{tikzorbital}
\usepackage{titlesec} %no indented section titles
\usepackage{titling}  %to modify '\maketitle' 
41
42
43
44
\usepackage{longtable}
\usepackage{natbib}
\usepackage{tabu}
\usepackage[version=4]{mhchem}
45
46
47
48
49
50
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{arrows}
\usepackage{xurl}
\usepackage{listings}
\usepackage{mdframed}
51
\usepackage{microtype}
52
53
\usepackage{enumitem}
\usepackage{csquotes}
54
55

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

60
\definecolor{palesilver}{rgb}{0.79, 0.75, 0.73}
61

62
%%%%%%%%   FONT   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63
64
65
66
67
68
69
70

\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
71
\lhead{UFO PVK - Chemie - Anorganische Chemie und Chemie Bindung - FS20}
72
73
74
75
76
77
\rhead{}
\setlength{\droptitle}{-0.0cm} 

\newcommand{\cmt}[1]{}

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

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

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

% do not indent normal paragraphs
\parindent0mm

\def\arraystretch{1.25}

94
95
\setlist[itemize]{noitemsep, nolistsep}
\setlist[enumerate]{noitemsep, nolistsep}