|
@@ -0,0 +1,358 @@
|
|
|
+%HEADER FILE
|
|
|
+%AUTHOR
|
|
|
+\author{Matthias Martin}
|
|
|
+
|
|
|
+%ESSENTIALS:
|
|
|
+\usepackage[T1]{fontenc}
|
|
|
+%\usepackage[latin1]{inputenc} % Input in ISO 8859-1 (Latin1)
|
|
|
+
|
|
|
+\usepackage{ae} % Almost european, virtual T1-Font
|
|
|
+\usepackage{vmargin} % Adjust margins in a simple way
|
|
|
+\usepackage{subfigure}
|
|
|
+\usepackage{url}
|
|
|
+\usepackage[absolute,overlay]{textpos}
|
|
|
+\usepackage{tikz}
|
|
|
+\RequirePackage{ngerman}
|
|
|
+\usepackage[ngerman]{babel}
|
|
|
+\usepackage{float}
|
|
|
+\usepackage{nicefrac}
|
|
|
+%\usepackage{svg}
|
|
|
+\usepackage{listings}
|
|
|
+
|
|
|
+\DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{10} % for bold
|
|
|
+\DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{10} % for normal
|
|
|
+
|
|
|
+% Custom colors
|
|
|
+\usepackage{color}
|
|
|
+\definecolor{deepblue}{rgb}{0,0,0.5}
|
|
|
+\definecolor{deepred}{rgb}{0.6,0,0}
|
|
|
+\definecolor{deepgreen}{rgb}{0,0.5,0}
|
|
|
+\lstset{
|
|
|
+ language=Python,
|
|
|
+ tabsize=2,
|
|
|
+ basicstyle=\ttm,
|
|
|
+ otherkeywords={self}, % Add keywords here
|
|
|
+ keywordstyle=\ttb\color{deepblue},
|
|
|
+ emph={MyClass,__init__}, % Custom highlighting
|
|
|
+ emphstyle=\ttb\color{deepred}, % Custom highlighting style
|
|
|
+ stringstyle=\color{deepgreen}
|
|
|
+ }
|
|
|
+\newcommand{\code}[1]{\lstinline!#1!} %\texttt{#1}}
|
|
|
+%BASIC-LAYOUT:
|
|
|
+%\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm]{geometry}
|
|
|
+
|
|
|
+\setcounter{secnumdepth}{3} % Numbering also for \subsubsections
|
|
|
+\setcounter{tocdepth}{3} % Register \subsubsections in content directory
|
|
|
+
|
|
|
+\setpapersize{A4}
|
|
|
+\setmarginsrb{1.5cm}{1cm}{1.5cm}{1cm}{6mm}{7mm}{5mm}{15mm}
|
|
|
+
|
|
|
+\setkomafont{disposition}{\normalcolor\bfseries}
|
|
|
+
|
|
|
+\usepackage[fixlanguage]{babelbib} % sets german style for literature entries
|
|
|
+\selectbiblanguage{ngerman} % for \bibliographystyle{babalpha}
|
|
|
+
|
|
|
+
|
|
|
+%\usepackage{titlesec, blindtext}
|
|
|
+%\titleformat{\chapter}[hang]{\huge\bfseries}{\thechapter\hspace{20pt}}{0pt}{\huge\bfseries}
|
|
|
+
|
|
|
+\parindent 0cm % Do not indent beginning of paragraph
|
|
|
+\parskip1.5ex plus0.5ex minus0.5ex % Margin between paragraphs
|
|
|
+
|
|
|
+\usepackage{cite}
|
|
|
+ % required for \cite{a,b,c} --> [1-3] instead of [1,2,3]
|
|
|
+%\usepackage[numbers]{natbib}
|
|
|
+\usepackage{url}
|
|
|
+ % Für Quellen mit URL
|
|
|
+\usepackage[nottoc]{tocbibind}
|
|
|
+ % Literaturverzeichnis erscheint im Inhaltsverzeichnis
|
|
|
+
|
|
|
+
|
|
|
+%LAYOUT
|
|
|
+\usepackage{fancybox}
|
|
|
+\usepackage[T1]{fontenc}
|
|
|
+ \newcommand{\changefont}[3]{\fontfamily{#1} \fontseries{#2} \fontshape{#3} \selectfont}
|
|
|
+\usepackage{hyperref}
|
|
|
+\usepackage{tikz}
|
|
|
+
|
|
|
+%TABLES AND FIGURES
|
|
|
+\addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
|
|
|
+
|
|
|
+\usepackage{booktabs}
|
|
|
+ % \midrule Fuegt zwischen Zeilen eine groessere Zwischenlinie ein
|
|
|
+\usepackage{caption}
|
|
|
+\usepackage{dcolumn}
|
|
|
+ % D{,}{,}{Anzahl Nachkommastellen} Einfach statt der ueblichen Ausrichtung (l,c,r) im Header einer Tabelle einfuegen
|
|
|
+\usepackage{dsfont}
|
|
|
+ % \mathds{1} - Einheitsmatrxix
|
|
|
+\usepackage{multirow}
|
|
|
+ % \multirow{Zeilen}{Breite}{Inhalt} Automatische Breite "*"
|
|
|
+
|
|
|
+\usepackage{paralist}
|
|
|
+ % Erlaubt Aufzählungen in eckigen Klammern
|
|
|
+ % \begin{enumerate}[{[}1{]}]
|
|
|
+\usepackage{rotating}
|
|
|
+\usepackage{subfigure}
|
|
|
+\usepackage{tabularx}
|
|
|
+
|
|
|
+
|
|
|
+%MATHS:
|
|
|
+\usepackage{amsmath}
|
|
|
+% \allowdisplaybreaks
|
|
|
+\usepackage{amsfonts}
|
|
|
+\usepackage{amssymb}
|
|
|
+\usepackage{cancel}
|
|
|
+ % \cancel{} Streicht diagonal durch: /
|
|
|
+ % \bcancel{} Streicht diagonal durch: \
|
|
|
+ % \xcanel{} Streicht als X durch
|
|
|
+ % \cancelto{value}{expression} Zeichnet einen Pfeil durch den Ausdruck, hin zum Wert
|
|
|
+\usepackage{mathrsfs}
|
|
|
+ % \mathscr{} Fuer (geschwungenes) Fourier F
|
|
|
+\usepackage{mathtools}
|
|
|
+% \mathtoolsset{showonlyrefs}
|
|
|
+\usepackage{nccmath}
|
|
|
+ % formeln linksbündig mit \begin{flegn}
|
|
|
+\usepackage{pxfonts}
|
|
|
+\usepackage{siunitx}
|
|
|
+ % \si{einheit}
|
|
|
+\usepackage{upgreek}
|
|
|
+ % Gerade griechische Buchstaben mit \upgamma, \Upgamma
|
|
|
+\usepackage{dsfont}
|
|
|
+ % \mathds{1} - Einheitsmatrix
|
|
|
+
|
|
|
+\usepackage{pgf}
|
|
|
+\usepackage{physics}
|
|
|
+
|
|
|
+%VARIOUS:
|
|
|
+\usepackage{color}
|
|
|
+
|
|
|
+%EIGENS DEFINIERTE COMMANDOS/ENVIRONMENTS/COLORS:
|
|
|
+
|
|
|
+
|
|
|
+%dint - definite integral
|
|
|
+\newcommand{\dint}[2]{\int\limits_{#1}^{#2}}
|
|
|
+
|
|
|
+%eps - epsilon_0
|
|
|
+\newcommand{\eps}{\varepsilon_0}
|
|
|
+\newcommand{\eo}{\varepsilon_0}
|
|
|
+
|
|
|
+%im - Imaginary Number
|
|
|
+\newcommand{\im}{\text{i}}
|
|
|
+
|
|
|
+%indt - INDexText
|
|
|
+\newcommand{\indt}[2]{\ensuremath{#1_{\text{#2}}}}
|
|
|
+
|
|
|
+%intd - Integral d / bzw. Text D
|
|
|
+\newcommand{\intd}{\text{d}}
|
|
|
+\newcommand{\td}{\text{d}}
|
|
|
+
|
|
|
+%neswarrows
|
|
|
+\newcommand{\neswarrows}{%
|
|
|
+ \begin{turn}{45}
|
|
|
+ \raisebox{-1ex}{$\leftrightarrows$}
|
|
|
+ \end{turn}}
|
|
|
+
|
|
|
+%nicebox
|
|
|
+\newenvironment{nicebox}[1]{
|
|
|
+ \begin{center}
|
|
|
+ \shadowbox{
|
|
|
+ \parbox{0.90\linewidth}{
|
|
|
+ \addvspace{4pt}
|
|
|
+ #1
|
|
|
+ }}}
|
|
|
+ {\end{center}}
|
|
|
+
|
|
|
+
|
|
|
+%stdcap
|
|
|
+\newcommand{\stdcap}[2]{\captionsetup{width=0.85\linewidth} \caption{\textbf{#1}#2}}
|
|
|
+
|
|
|
+%SumInt - Operator Sum over Int
|
|
|
+\DeclareMathOperator*{\SumInt}{%
|
|
|
+\mathchoice%
|
|
|
+ {\ooalign{$\displaystyle\sum$\cr\hidewidth$\displaystyle\int$\hidewidth\cr}}
|
|
|
+ {\ooalign{\raisebox{.14\height}{\scalebox{.7}{$\textstyle\sum$}}\cr\hidewidth$\textstyle\int$\hidewidth\cr}}
|
|
|
+ {\ooalign{\raisebox{.2\height}{\scalebox{.6}{$\scriptstyle\sum$}}\cr$\scriptstyle\int$\cr}}
|
|
|
+ {\ooalign{\raisebox{.2\height}{\scalebox{.6}{$\scriptstyle\sum$}}\cr$\scriptstyle\int$\cr}}
|
|
|
+}
|
|
|
+
|
|
|
+%uber
|
|
|
+\newcommand{\uber}[2]{\ensuremath{\stackrel{\mbox{\scriptsize{#1}}}{#2}}}
|
|
|
+
|
|
|
+
|
|
|
+\newcommand{\unit}[1]{\ensuremath{\,\mathrm{#1}}}
|
|
|
+\newcommand{\intu}{\int_{-\infty}^{\infty}}
|
|
|
+\newcommand{\hi}{\frac{\hbar}{i}}
|
|
|
+\newcommand{\id}{\text{d}}
|
|
|
+\newcommand{\dt}{\text{d}t}
|
|
|
+\newcommand{\dx}{\text{d}x}
|
|
|
+\newcommand{\ds}{\text{d}s}
|
|
|
+\newcommand{\p}{\partial}
|
|
|
+%\newcommand{\dd}[2]{\frac{\id #1}{\id #2}}
|
|
|
+\newcommand{\ddt}[1]{\frac{\id #1}{\id t}}
|
|
|
+\newcommand{\ddx}[1]{\frac{\id #1}{\id x}}
|
|
|
+\newcommand{\ddd}[2]{\frac{\id^2 #1}{\id #2^2}}
|
|
|
+\newcommand{\ddp}[2]{\frac{\partial #1}{\partial #2}}
|
|
|
+\newcommand{\dddp}[2]{\frac{\partial^2 #1}{\partial #2^2}}
|
|
|
+\newcommand{\intinf}{\int_{-\infty}^{\infty}}
|
|
|
+
|
|
|
+\newcommand{\e}[1]{\cdot 10^{#1}}
|
|
|
+\newcommand{\vr}{\vec r}
|
|
|
+
|
|
|
+% \TextGrafik[Position]{Caption}{label}{rel. scale}{filepath}
|
|
|
+\newcommand{\Grafik}[3][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+ \centering
|
|
|
+ \includegraphics[width=#2\linewidth]{Plots/#3}
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+\newcommand{\TextGrafik}[5][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+ \centering
|
|
|
+ \includegraphics[width=#4\linewidth]{Plots/#5}
|
|
|
+ \caption{#2}
|
|
|
+ \label{#3}
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+
|
|
|
+\newcommand{\TextGrafikB}[6][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+ \centering
|
|
|
+ \includegraphics[width=#5\linewidth]{Plots/#6}
|
|
|
+ \caption[#2]{#3}
|
|
|
+ \label{#4}
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+
|
|
|
+\newcommand{\TextGrafikNebeneinander}[7][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+ \label{#3}
|
|
|
+ \centering
|
|
|
+ \includegraphics[width=#4\linewidth]{Plots/#5}
|
|
|
+ \includegraphics[width=#6\linewidth]{Plots/#7}
|
|
|
+ \caption{#2}
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+\newcommand{\GrafikNebeneinander}[7][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+ % \caption{#2}
|
|
|
+ \label{#3}
|
|
|
+ \centering
|
|
|
+ \includegraphics[width=#4\linewidth]{Plots/#5}
|
|
|
+ \includegraphics[width=#6\linewidth]{Plots/#7}
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+\newcommand{\TextGrafikpgf}[5][H]{%
|
|
|
+ \begin{figure}[#1]
|
|
|
+
|
|
|
+ \centering
|
|
|
+ \resizebox{#4\linewidth}{!}{
|
|
|
+ % \tikzsetnextfilename{#5}
|
|
|
+ \input{Plots/pgf/#5}
|
|
|
+ }
|
|
|
+ \caption{#2}
|
|
|
+ \label{#3}
|
|
|
+
|
|
|
+ \end{figure}
|
|
|
+}
|
|
|
+
|
|
|
+% für links/rechts:
|
|
|
+\newcommand{\Links}{$\vartriangleleft$~}
|
|
|
+\newcommand{\Rechts}{$\vartriangleright$~}
|
|
|
+
|
|
|
+
|
|
|
+% \command {Label} {Text}
|
|
|
+\newcommand{\sref}[2]{\hyperref[#1]{#2\ref*{#1}}}
|
|
|
+\newcommand{\tabref}[1]{\sref{#1}{Tabelle~}}
|
|
|
+\newcommand{\aufgref}[1]{\sref{#1}{Aufgabe~}}
|
|
|
+\newcommand{\figref}[1]{\sref{#1}{Abb.~}}
|
|
|
+\newcommand{\gleichung}[1]{\sref{eq:#1}{Gleichung~}}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+%% -------------------------------
|
|
|
+%% | Headings |
|
|
|
+%% -------------------------------
|
|
|
+\usepackage{fancyhdr}
|
|
|
+\pagestyle{fancy}
|
|
|
+\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
|
|
|
+\fancyhf{}
|
|
|
+\fancyhead[LE,RO]{{\headfont\thepage}} % Left/right header for even/odd pages
|
|
|
+\fancyhead[LO]{\headfont\nouppercase{\rightmark}} % Header for left page (odd)
|
|
|
+\fancyhead[RE]{\headfont\nouppercase{\leftmark}} % Header for right page (even)
|
|
|
+\fancyfoot[C]{\thepage}
|
|
|
+\renewcommand{\headrulewidth}{0.5pt}
|
|
|
+\renewcommand{\footrulewidth}{0pt}
|
|
|
+\fancypagestyle{plain}{%
|
|
|
+\fancyhf{} % No Header and Footer fields
|
|
|
+\renewcommand{\headrulewidth}{0pt}
|
|
|
+\renewcommand{\footrulewidth}{0pt}
|
|
|
+\fancyfoot[C]{\thepage}
|
|
|
+}
|
|
|
+
|
|
|
+%\usepackage[nouppercase]{scrpage2}
|
|
|
+% \pagestyle{scrheadings}
|
|
|
+% \clearscrheadfoot
|
|
|
+% \renewcommand*{\headfont}{\normalfont}
|
|
|
+
|
|
|
+% \renewcommand*{\chaptermarkformat}{}% Keine Kapitelnummer im Kopf
|
|
|
+% \automark{chapter}
|
|
|
+% \setheadsepline{0.2pt}
|
|
|
+
|
|
|
+% \renewcommand\sectionmark[1]{\markright{\MakeMarkcase {\thesection\hskip .5em\relax#1}}}
|
|
|
+% \lehead{\pagemark \qquad \leftmark{}}
|
|
|
+% \rohead{\rightmark{} \qquad \pagemark}
|
|
|
+% \refoot[\pagemark{ }]{}
|
|
|
+% \lofoot[\pagemark{ }]{}
|
|
|
+
|
|
|
+%--------------
|
|
|
+% alternatively
|
|
|
+%--------------
|
|
|
+% \renewcommand\sectionmark[1]{\markright{#1}}
|
|
|
+% \lohead{\leftmark{}}
|
|
|
+% \cohead{\rightmark}
|
|
|
+% \rohead{\pagemark}
|
|
|
+% \cfoot[\pagemark{ }]{}
|
|
|
+
|
|
|
+% \renewcommand{\chapterpagestyle}{empty}
|
|
|
+%% --- End of Headings ---
|
|
|
+
|
|
|
+\newcommand{\blankpage}{
|
|
|
+ \clearpage{\pagestyle{empty}\cleardoublepage}
|
|
|
+}
|
|
|
+
|
|
|
+% Der Inhalt des Environments \emph{muss} mit dem \\ Makro enden!!¡!
|
|
|
+% Opt 0: placement
|
|
|
+% Arg 1: caption
|
|
|
+% Arg 2: label
|
|
|
+% Arg 3: cols
|
|
|
+\newenvironment{Tabelle}[4][p]
|
|
|
+ { \begin{table*}[#1]
|
|
|
+ \begin{center}
|
|
|
+ \caption{#2}
|
|
|
+ \label{#3}
|
|
|
+ \begin{tabular}{#4}
|
|
|
+ \toprule
|
|
|
+ } % here there be dragons
|
|
|
+ % (or at least a table body)
|
|
|
+ { \bottomrule
|
|
|
+ \end{tabular}
|
|
|
+ \end{center}
|
|
|
+ \end{table*}
|
|
|
+ }
|
|
|
+
|
|
|
+ \newenvironment{TabelleB}[5][h]
|
|
|
+ { \begin{table*}[#1]
|
|
|
+ \begin{center}
|
|
|
+ \caption[#2]{#3}
|
|
|
+ \label{#4}
|
|
|
+ \begin{tabular}{#5}
|
|
|
+ \toprule
|
|
|
+ } % here there be dragons
|
|
|
+ % (or at least a table body)
|
|
|
+ { \bottomrule
|
|
|
+ \end{tabular}
|
|
|
+ \end{center}
|
|
|
+ \end{table*}
|
|
|
+ }
|