-
Notifications
You must be signed in to change notification settings - Fork 0
/
header_common.tex
179 lines (143 loc) · 4.46 KB
/
header_common.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
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
\documentclass[
bibliography=totoc, % Literatur im Inhaltsverzeichnis
captions=tableheading, % Tabellenüberschriften
titlepage=firstiscover, % Titelseite ist Deckblatt
]{scrartcl}
% Paket float verbessern
\usepackage{scrhack}
% Warnung, falls nochmal kompiliert werden muss
\usepackage[aux]{rerunfilecheck}
% unverzichtbare Mathe-Befehle
\usepackage{amsmath}
% viele Mathe-Symbole
\usepackage{amssymb}
% Erweiterungen für amsmath
\usepackage{mathtools}
% Fonteinstellungen
\usepackage{fontspec}
% Latin Modern Fonts werden automatisch geladen
% Alternativ zum Beispiel:
%\setromanfont{Libertinus Serif}
%\setsansfont{Libertinus Sans}
%\setmonofont{Libertinus Mono}
% Wenn man andere Schriftarten gesetzt hat,
% sollte man das Seiten-Layout neu berechnen lassen
\recalctypearea{}
% deutsche Spracheinstellungen
\usepackage[ngerman]{babel}
\usepackage[
math-style=ISO, % ┐
bold-style=ISO, % │
sans-style=italic, % │ ISO-Standard folgen
nabla=upright, % │
partial=upright, % ┘
warnings-off={ % ┐
mathtools-colon, % │ unnötige Warnungen ausschalten
mathtools-overbracket, % │
}, % ┘
]{unicode-math}
% traditionelle Fonts für Mathematik
\setmathfont{Latin Modern Math}
% Alternativ zum Beispiel:
%\setmathfont{Libertinus Math}
% \setmathfont{XITS Math}[range={scr, bfscr}]
% \setmathfont{XITS Math}[range={cal, bfcal}, StylisticSet=1]
% Zahlen und Einheiten
\usepackage[
locale=DE, % deutsche Einstellungen
separate-uncertainty=true, % immer Unsicherheit mit \pm
per-mode=symbol-or-fraction, % / in inline math, fraction in display math
]{siunitx}
% chemische Formeln
\usepackage[
version=4,
math-greek=default, % ┐ mit unicode-math zusammenarbeiten
text-greek=default, % ┘
]{mhchem}
% richtige Anführungszeichen
\usepackage[autostyle]{csquotes}
% schöne Brüche im Text
\usepackage{xfrac}
% Standardplatzierung für Floats einstellen
\usepackage{float}
\floatplacement{figure}{htbp}
\floatplacement{table}{htbp}
% Floats innerhalb einer Section halten
\usepackage[
section, % Floats innerhalb der Section halten
below, % unterhalb der Section aber auf der selben Seite ist ok
]{placeins}
% Seite drehen für breite Tabellen: landscape Umgebung
\usepackage{pdflscape}
% Captions schöner machen.
\usepackage[
labelfont=bf, % Tabelle x: Abbildung y: ist jetzt fett
font=small, % Schrift etwas kleiner als Dokument
width=0.9\textwidth, % maximale Breite einer Caption schmaler
]{caption}
% subfigure, subtable, subref
\usepackage{subcaption}
% Grafiken können eingebunden werden
\usepackage{graphicx}
% schöne Tabellen
\usepackage{booktabs}
% Verbesserungen am Schriftbild
\usepackage{microtype}
% Literaturverzeichnis
\usepackage[
backend=biber,
]{biblatex}
% Quellendatenbank
\addbibresource{lit.bib}
% \addbibresource{programme.bib}
% Hyperlinks im Dokument
\usepackage[
german,
unicode, % Unicode in PDF-Attributen erlauben
pdfusetitle, % Titel, Autoren und Datum als PDF-Attribute
pdfcreator={}, % ┐ PDF-Attribute säubern
pdfproducer={}, % ┘
]{hyperref}
% erweiterte Bookmarks im PDF
\usepackage{bookmark}
% Trennung von Wörtern mit Strichen
\usepackage[shortcuts]{extdash}
\DeclareSIUnit\angstrom{Å}
\author{%
Nicolai Weitkemper\\%
\href{mailto:nicolai.weitkemper@tu-dortmund.de}{nicolai.weitkemper@tu-dortmund.de}%
}
\publishers{TU Dortmund – Fakultät Physik}
\global\def\colvec#1{\begin{pmatrix}#1\end{pmatrix}}
% \global\def\b#1{\left(#1\right)}
% \global\def\pdv#1{\frac{\partial}{\partial #1}}
\global\def\dv#1#2{\frac{\d #1}{\d #2}}
\global\def\pdv#1#2{\frac{\partial #1}{\partial #2}}
\global\def\pdvfest#1#2#3{\left.\frac{\partial #1}{\partial #2}\right\rvert_{#3}}
\global\def\d{\mathrm{d}}
\global\def\intfty{\int_{-\infty}^\infty} % ha ha
\global\def\half{\frac{1}{2}}
\global\def\quarter{\frac{1}{4}}
\global\def\b#1{\left(#1\right)}
\global\def\L{\mathcal{L}}
\global\def\normtwo{\frac{1}{\sqrt{2}}}
\global\def\R{\mathbb{R}}
\global\def\kB{k_\text{B}}
\global\def\b#1{\left(#1\right)}
\global\def\bb#1{\left[#1\right]}
\global\def\a#1{\left\langle#1\right\rangle}
% https://tex.stackexchange.com/a/444226
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother
\NewCommandCopy{\oldDelta}{\Delta}
\renewcommand{\Delta}{\mathrm{\oldDelta}}
\newenvironment{aufgabe}[1]
{
\section{#1}
}
{
\clearpage
}
\usepackage{enumitem}
% TODO: Nicht die neueste Version des Standard-header_common!