-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
59 lines (49 loc) · 1.3 KB
/
preamble.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
\usepackage{booktabs}
\usepackage[ngerman,provide=*]{babel}
\usepackage{amsthm}
\makeatletter
\def\thm@space@setup{%
\thm@preskip=8pt plus 2pt minus 4pt
\thm@postskip=\thm@preskip
}
\makeatother
\usepackage{enumitem}
\setlist[itemize,1]{label=--}
\setlist[itemize,2]{label=\textbullet}
\setlist[itemize,3]{label=\textopenbullet}
% The \equationname is not a standard LaTeX command, so we'll define it
\newcommand{\equationname}{Gleichung}
% Redefine proof name
\renewcommand{\proofname}{Beweis}
% Ensure German captions are used
\addto\captionsgerman{
\renewcommand{\partname}{Teil}
\renewcommand{\chaptername}{Kapitel}
}
\usepackage{tcolorbox}
\usepackage{xcolor}
\newenvironment{caution}{
\begin{itemize}
\renewcommand{\labelitemi}{
\raisebox{-.7\height}[0pt][0pt]{
{\setkeys{Gin}{width=3em,keepaspectratio}
\includegraphics{figures/icons/caution.png}}
}
}
\setlength{\fboxsep}{1em}
\begin{tcolorbox}[
colback=gray!10,
colframe=gray!50,
title=\textbf{Achtung},
fonttitle=\bfseries,
coltitle=black,
colbacktitle=yellow!50,
sharp corners=south] % Optional: Use tcolorbox for better visuals
\item
}
{
\end{tcolorbox}
\end{itemize}
}{}
\definecolor{customdefcolor}{HTML}{2C3E50}
\newcommand{\customdef}[1]{\textbf{\textcolor{customdefcolor}{#1}}}