preamble.tex 5.53 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
% 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' 

\usepackage{wrapfig} %e.g. to right align figures with text on the left
\usepackage{tabto} %insert tabs to specific places in the document

\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{arrows}
\usepackage{xurl}
\usepackage{listings}
\usepackage{mdframed}

 %\sisetup{
 %       scientific-notation = true, 
 %   }
\sisetup{range-phrase=\textup{ -- }} % better

%%%%%%%%   FONT   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\usepackage[sc]{mathpazo}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%   TITLEPAGE   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\linespread{1.25}

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


\setlength{\headheight}{26pt} %change height of frontpage title
\lhead{Case Studies in Process Design II - Spring Semester 2020}
\rhead{}
\setlength{\droptitle}{-0.0cm} 

%\addtokomafont{labelinglabel}{\bfseries}
\DeclareSIUnit{\molar}{M}
%\captionsetup[figure]{labelfont={it}}


%\setcitestyle{superscript}
%\bibliographystyle{achemso}
%\setkeys{acs}{usetitle = true}

% siunitx setup
%\sisetup{parse-numbers=false}

% defining (more or less) useful own macros
\newcommand{\fett}[1]{\normalfont\textbf{\oldstylenums{#1}}}
\newcommand{\quotes}[1]{{\normalfont <<}#1{\normalfont >>}}
\newcommand{\parsmallskip}{\par\smallskip}
\newcommand{\parmedskip}{\par\medskip}
\newcommand{\absatz}{\par\bigskip}
\newcommand{\sct}[1]{\section{\underline{\textsc{#1}}}}
\newcommand{\subsct}[1]{\subsection{\itshape #1}}
\newcommand{\pfeil}{$\Rightarrow$\ }
\newcommand{\hoch}[1]{\textsuperscript{#1}}
\newcommand{\tief}[1]{\textsubscript{#1}}
%\newcommand{\num}[1]{\oldstylenums{#1}}
\newcommand{\degree}{$^\circ$}
\newcommand{\cmt}[1]{}


% command to print two signature lines next to each other
\newcommand{\tripleSignature}[4]{%{name1}{name2}{Ort}
	\parbox{\textwidth}{
		\centering #4\today\\
		\vspace{2cm}

		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#1
		}
		\hfill
		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#2
		}
		\hfill
		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#3
		}
    \vspace{2cm}
	}
}

\newcommand{\tripleSignatureWithoutDate}[3]{%{name1}{name2}{Ort}
	\parbox{\textwidth}{
		\centering 
		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#1
		}
		\hfill
		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#2
		}
		\hfill
		\parbox{4.5cm}{
			\centering
			\rule{4cm}{1pt}\\
			#3
		}
    \vspace{2cm}
	}
}

% The first page should not have anything on the bottom and no rule at the top
\fancypagestyle{plain}{%
	\renewcommand{\headrulewidth}{0pt}%
	\fancyhf{}%
	\fancyfoot[C]{}%
}
% Pagestyle fancy: Header with authors and title, footer with page number
\pagestyle{fancy}
\fancyfoot[C]{\textit{\thepage}}

% Writing "*" results in a multiplication point
%\DeclareMathSymbol{*}{\mathbin}{symbols}{"01}

% cram bonds in chemfig should be a bit thinner to look sexy
%\setcrambond{3pt}{1pt}{2pt}
\setchemfig{cram width=2pt}

% do not indent normal paragraphs
\parindent0mm
\linespread{1.25}


%\addtokomafont{labelinglabel}{\bfseries}
\DeclareSIUnit{\molar}{M}

\def\arraystretch{1.25}