added LaTeX-Template for Masterarbeit

This commit is contained in:
Stefan Dresselhaus
2017-08-23 21:18:44 +02:00
parent 14e85a18e2
commit d9a7231b4f
24 changed files with 3095 additions and 0 deletions

View File

@ -0,0 +1,24 @@
\chapter*{Abkürzungen}
\label{cha:abbrev}
\begin{acronym}
% Zugriff ueber \ac{BWT} 1te mal Vollreferenz, danach Abk.
%oder \acf{BWT} (full) immer Vollreferenz
%\acro{Abk}[short name]{full name} longer Explanation
%
% Zur Vereinfachung die Ab
%
%
%\acro{GPL}{GNU General Public License} --
% License for free software, see \url{http://www.gnu.org/copyleft/gpl.html}.
\acro{KNN}{K-Nearest-Neighbor}
\acro{ODCT}{Overcomplete Discrete Cosine Transform}
\acro{OMP}{Orthogonal Matching Pursuit}
\acro{PCA}{Principle Component Analysis}
\acro{POI}{Points of Interest}
\acro{RMSE}{Rooted Mean Square Error}
\acro{SAS}{Sparse Approximate Solution} - Abschätzungsproblem einer spärlichen Repräsentation.
\acro{SAT}{Summed Area Table}
%
%
\end{acronym}

View File

@ -0,0 +1,178 @@
\newcommand\exampleend{\hfill$\diamond$}
% ##### DCJ stuff #####
\newcommand\dcaj{double cut and join\xspace}
\newcommand\dcjindel{d_{\DCJ}^{id}}
\newcommand\dcj{d_{\DCJ}}
\renewcommand\gg{\mathcal G}
\newcommand\del{\mathcal A}
\newcommand\ins{\mathcal B}
\newcommand\clean{\varnothing}
\newcommand\gdel{\mathcal G_{\!A}}
\newcommand\gins{\mathcal G_{\!B}}
\newcommand\ag{\AG(A,B)}
\renewcommand\r{\lambda} % # runs
\newcommand\R{\Lambda} % # runs after clustering
\newcommand\dr{\Delta\r}
\newcommand\drr{\Delta\r^{\!\rho}}
\newcommand\DR{\Delta\R}
\newcommand\DRR{\Delta\R^{\!\rho}}
%\newcommand\lab[1]{\lambda(#1)}
\newcommand\redu[1]{\left.#1\right|_\mathcal G}
\newcommand\h[1]{#1^h}
\renewcommand\t[1]{#1^t}
\renewcommand\a{$A$\xspace}
\renewcommand\b{$B$\xspace}
\renewcommand\O{\mathcal O}
\renewcommand\AA{$A\!A$\xspace}
\newcommand\AB{$A\!B$\xspace}
\newcommand\BA{$B\!A$\xspace}
\newcommand\BB{$B\!B$\xspace}
\newcommand\ab{\del\ins}
\newcommand\ba{\ins\del}
\def\aa{A\!A}
\def\bb{B\!B}
\def\AAab{A\!A_{\!\del\!\ins}}
\def\AAa{A\!A_{\!\del}}
\def\AAb{A\!A_{\ins}}
\def\BBab{B\!B_{\!\!\del\!\ins}}
\def\BBa{B\!B_{\!\!\del}}
\def\BBb{B\!B_{\ins}}
\def\ABab{A\!B_{\!\!\del\!\ins}}
\def\ABba{A\!B_{\ins\!\del}}
\def\ABa{A\!B_{\!\!\del}}
\def\ABb{A\!B_\ins}
\def\ABm{A\!B_\bullet}
\def\AAo{A\!A_{\!\varnothing}}
\def\ABo{A\!B_{\!\varnothing}}
\def\BBo{B\!B_{\!\varnothing}}
\def\xx{A\!B_\times}
\def\aba{\del\!\gr{\ins\!\del}}
\def\bab{\ins\!\gr{\del\!\ins}}
\newcommand\clusterize{accumulate\xspace}
\newcommand\clustering{accumulating\xspace} %aggregate, unite/unifying
\newcommand\clusterized{accumulated\xspace}
\newcommand\clusterization{accumulation\xspace}
\renewcommand\v[1]{V(#1)}
\newcommand\vset[2]{\v{#1}=\set{#2}}
% ##### math #####
\DeclareMathOperator\AG{AG}
\DeclareMathOperator\DCJ{DCJ}
%\DeclareMathOperator\V{V}
\newcommand\set[1]{\{#1\}}
\newcommand\corresponds{\mathrel{\widehat{=}}}
\newcommand\gleich{=\joinrel=}
\newcommand\subargmax[1]{\lower0.6em\hbox{$\stackrel{\displaystyle\argmax\ }{_{#1}}$}}
\newcommand\subtexting[2]{\lower0.58em\hbox{$\stackrel{\displaystyle#1}{_{#2}}$}}
% \newcommand\Uu{\mathcal U_{{}_{\Box}}}
% \newcommand\Us{\mathcal U_{\triangleleft}}
% \DeclareMathOperator{\isE}{\scalebox{1.5}[1]{\rotatebox[origin=c]{180}{$\exists$}}}
% \DeclareMathOperator{\notE}{\scalebox{1.5}[1]{\rotatebox[origin=c]{180}{$\nexists$}}}
%\DeclareMathOperator{\gc}{\scalebox{-1.5}[1]{$\exists$}}
%\DeclareMathOperator{\ngc}{\scalebox{-1.5}[1]{$\nexists$}}
\newcommand\edge[2]{\{#1,#2\}}
\newcommand\dedge[2]{(#1,#2)}
% \renewcommand{\varnothing}{\{\,\}}
\newcommand{\bo}[1]{#1_{_{\Box}}}
\newcommand{\tri}[1]{#1_\triangleleft}
\newcommand{\pib}{\bo\pi}
\newcommand{\pit}{\tri\pi}
\newcommand\meng{\{1,2,\ldots,N\}}
\newcommand{\abs}[1]{\ensuremath{\lvert #1 \rvert}} % Absolutbetrag. Statt |a| verwenden.
%\newcommand\qed{\qquad\Box}
\newcommand\toinf[1][n]{\toconv{#1}\infty}
\renewcommand\epsilon\varepsilon
\renewcommand\rho\varrho
%proof:
\renewcommand\lq{\text{\textgravedbl}\!\!}\renewcommand\rq{\!\!\text{\textacutedbl}}
% ##### tables #####
\newcommand\rl[1]{\multicolumn{1}{r|}{#1}} % item|
\renewcommand\ll[1]{\multicolumn{1}{|r}{#1}} % |item
% \newcommand\cc[1]{\multicolumn{1}{|c|}{#1}} % |item|
\newcommand\lc[2]{\multicolumn{#1}{|c|}{#2}} %
\newcommand\cc[1]{\multicolumn{1}{c}{#1}}
% \renewcommand{\arraystretch}{1.2} % Tabellenzeilen ein bischen h?her machen.
\newcommand\m[2]{\multirow{#1}{*}{$#2$}}
% ##### Text symbole #####
% \newcommand\subdot[1]{\lower0.5em\hbox{$\stackrel{\displaystyle #1}{.}$}}
% \newcommand\subsubdot[1]{\lower0.5em\hbox{$\stackrel{#1}{.}$}}
\newcommand\stern\circledast
% ##### Textersetzung (Abk?rzungen) #####
% \newcommand\na{\textsl{Naive Algorithm}\xspace}
% \newcommand\sh{\textsl{Simple Heuristic}\xspace}
% \newcommand\ea{\textsl{Exact Algorithm}\xspace}
% \newcommand\rec{\textsl{Reconstruction Algorithm}\xspace}
\newcommand\rfe{\textit{R.~felis}\xspace}
\newcommand\rma{\textit{R.~massiliae}\xspace}
\newcommand\raf{\textit{R.~africae}\xspace}
\newcommand\rco{\textit{R.~conorii}\xspace}
\newcommand\rpr{\textit{R.~prowazekii}\xspace}
\newcommand\rty{\textit{R.~typhi}\xspace}
\newcommand\rbe{\textit{R.~bellii}\xspace}
\newcommand\ric{\textit{Rickettsia}\xspace}
\newcommand\rf{\textit{fel}\xspace}
\newcommand\rms{\textit{mas}\xspace}
\newcommand\ra{\textit{afr}\xspace}
\newcommand\rc{\textit{con}\xspace}
\newcommand\rp{\textit{pro}\xspace}
\newcommand\rt{\textit{typ}\xspace}
\newcommand\rb{\textit{bel}\xspace}
\newcommand\eg{e.\,g.\ } %\newcommand{\zB}{z.\,B.\ }
\newcommand\resp{resp.\ } %\newcommand{\bzw}{bzw.\ }%\newcommand{\iAllg}{i.\,Allg.\ }
\newcommand\ie{i.\,e.\ }%\renewcommand{\dh}{d.\,h.\ }
\newcommand\etal{~\textit{et al.\xspace}}
% \newcommand\etalcite[1]{~\textit{et al.} \cite{#1}\xspace}
% Abkuerzung fuer URLs: \hrefn{url}, Vorsicht bei Tilden (~) in den URLs
\newcommand{\hrefn}[1]{\href{#1}{#1}}
\newcommand{\myquote}[1]{\glqq{}#1\grqq{}} % richtige Anfuehrungszeichen: ,, Bla ''
% \newcommand{\str}[1]{{\tt{}#1}} % einheitliche formatierung fuer zeichenketten
% ##### draft #####
\newcommand{\ignore}[1]{}
\newcommand\info[1]{\marginpar{\begin{center}#1\end{center}}}
\newcommand\note{\marginpar{\begin{center}$\longleftarrow$\end{center}}}
\newcommand\picmis[1]{$$\boxed{\mbox{\ttfamily picture #1}}$$}
%Todo am Rand notieren
\begin{comment}
% DONE WITH \usepackage{todo}
\newcommand{\todo}[1]{%
\ensuremath{\bigstar}%
\marginpar{%
\begin{flushleft}%
\vspace{-1.5\baselineskip}%
{\small TODO\ \ensuremath{\bigstar}\\#1}%
\end{flushleft}%
}%
}%
\end{comment}
\newcommand\opdown[2]{\lower0.75em\hbox{$\stackrel{\displaystyle#1}{\scriptstyle#2}$}}
\newcommand\toconv[2]{\;\lower0.5em\hbox{$\stackrel{\longrightarrow}{\scriptstyle#1\to#2}$}}
\newcommand\wildcard[1]{\fbox{\ttfamily Platzhalter: #1}}
\newcommand{\sd}{\\ \hspace*{\fill} [SD]\hspace*{1cm}}
\newcommand{\jb}{\\ \hspace*{\fill} [JB]\hspace*{1cm}}
\newcommand{\jbsd}{\\ \hspace*{\fill} [JB,~SD]\hspace*{1cm}}
\newcommand{\argmax}{\textrm{argmax}}
\newcommand{\argmin}{\textrm{argmin}}
\newcommand{\matlab}{\lstset{
language=Matlab,
basicstyle=\small\sffamily,
breaklines=true,
frame=tblr,
backgroundcolor=\color{yellow!20},
numbers=none,
numbersep=4pt,
numberstyle=\small,
showstringspaces=false,
keywordstyle=\color{blue}\bfseries
}}
\newcommand\data[1]{\marginpar{\vspace{-35pt}\begin{center}
\includegraphics[width=1cm]{img/cd}
\end{center}\vspace{-15pt}\centering\footnotesize\texttt{#1}}}

View File

@ -0,0 +1,68 @@
%Environment f<>r Abschnitte, die nochmal korrektur gelesen werden sollen
\newenvironment{neu}
{$\blacklozenge$\marginpar{\includegraphics{graphics/workinprogress}}}%anfang
{$\blacklozenge$}%ende
%\theoremstyle{thmstyl}
\theoremstyle{remark}
%\theoremstyle{plain}
\newtheorem*{noteIt}{Note}
\newtheorem*{notation}{Notation}
% DONT FORGET autorefnames IN PACKAGES.TEX
\theoremstyle{definition}
\newtheorem{lemma}{Lemma}
\newtheorem{observation}{Observation}
\newtheorem{proposition}{Proposition}
\newtheorem*{sEG}{Example}
\newtheorem{claim}[proposition]{Claim}
%small Example without counter
% \newenvironment{sEG}
% {\par\noindent\textbf{Example.}}%\vspace{.9em}
% {\hfill${\scriptstyle\blacksquare}$\par\indent}%\vspace{.9em}
% %large Example without cont or label
% \newenvironment{lEG}[1]
% {\par\noindent\textbf{Example \refstepcounter{lEG}\arabic{lEG} {\normalfont(#1)}.}}%\vspace{.9em}
% {\hfill${\scriptstyle\blacksquare}$\par\indent}%\vspace{.9em}
% begin{bsp}{label}
% % \newenvironment{ex}[2]
% % {\par\noindent\textbf{Example \refstepcounter{lEG}\arabic{lEG} {\normalfont(#1)}.\label{#2}}}%\vspace{.9em}
% % {\hfill${\scriptstyle\blacksquare}$\vspace{.5em}\par\indent}%
% % % begin{bsp_fort}{label}
% % \newenvironment{contEx}[1]
% % {\begin{trivlist}\item[]\textbf{Example \ref{#1} (continued).}}
% % {\nopagebreak\end{trivlist}\indent\par}
% begin{bsp}{label}
% \newenvironment{ex}[2]
% {\noindent\textbf{Example \refstepcounter{lEG}\arabic{lEG} {\normalfont(#1)}.\label{#2}}}
% {\vspace{.5em}\indent\par}
% % begin{bsp_fort}{lanbel}
% \newenvironment{contEx}[1]
% {\begin{trivlist}\item[]\textbf{Example \ref{#1} (continued).}}
% {\nolinebreak$\hfill\diamond$\nopagebreak\end{trivlist}\indent}%\par}
\newtheoremstyle{example}% name of the style to be used
{}%{3pt}%{spaceabove}% measure of space to leave above the theorem. E.g.: 3pt
{}%{3pt}%{spacebelow}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{0pt}%{indent}% measure of space to indent
{\bfseries}% name of head font
{.}%{headpunctuation}% punctuation between head and body
{ }%{headspace}% space after theorem head; " " = normal interword space
{\thmname{#1}\ifthenelse{\equal{#3}{}}{\thmnumber{ #2}}{ \ref{\thmnote{#3}} (continued)\addtocounter{example}{-1}}}%{headspec}% Manually specify head
\theoremstyle{example}
\newtheorem{example}{Example}
\newtheoremstyle{defStyle}% name of the style to be used
{}%{3pt}%{spaceabove}% measure of space to leave above the theorem. E.g.: 3pt
{}%{3pt}%{spacebelow}% measure of space to leave below the theorem. E.g.: 3pt
{\itshape}% name of font to use in the body of the theorem
{0pt}%{indent}% measure of space to indent
{\bfseries}% name of head font
{:}%{headpunctuation}% punctuation between head and body
{ }%{headspace}% space after theorem head; " " = normal interword space
{\thmname{#1}\thmnumber{ #2}\ifthenelse{\equal{#3}{}}{}{ (\thmnote{#3})}}%{headspec}% Manually specify head
\theoremstyle{defStyle}
\newtheorem{definition}{Definition}
\newtheorem{theorem}{Theorem}

View File

@ -0,0 +1,18 @@
% Hier kommt eine leerzeichengetrennte Liste von W<>rtern hin
% mit entsprechenden Trennungsregeln
\hyphenation{
%Re-dun-danz
%Re-dun-danz-en
%Kom-press-or
%Kom-press-or-en
%bwboost % keine Trennung bei dem Programmnamen
%Huffman % dito, Eigenname
%Burrows
%Wheeler
% bachelor
}
%%
% Aus einem alten W<>rterbuch...
%%
% asym-pto-tisch
% kor-re-spon-die-ren

View File

@ -0,0 +1,88 @@
\usepackage{acronym} % acronym list and writing acronyms full length exactly once
% \usepackage{amsfonts}
\usepackage{amsmath} %\align
\usepackage{amssymb} %\leftrightsquigarrow,\rightsquigarrow
\usepackage{amsopn} %\DeclareMathOperator,\qopname
\usepackage{amsthm} %Theorems
%% algorithm needs to be after hyperref
%\usepackage{ae} % Umbruch von Woertern mit Umlauten
%\usepackage[english]{babel}
\usepackage[ngerman]{babel} % benutzt globales ngerman
\usepackage{bbold}
\usepackage{booktabs}
\usepackage{cancel}
\usepackage{caption}
\usepackage{color} %\colorbox
\usepackage{dsfont} %\mathds
\usepackage{epigraph}
% \usepackage{euler} % euler: uni, eucal: baake, ohne: standard
\usepackage{eucal} % euler calligraphy
\usepackage{float} % fuer die [H]-Option (genau hier!) bei Bildern
% \usepackage{floatflt} % fuer floating figures (vom text umschlossene bilder)
\usepackage[T1]{fontenc}
\usepackage{graphicx} %Bilder einbinden
\usepackage{icomma}
\usepackage{ifthen}
\usepackage[utf8x]{inputenc} %Zeichensatz
% \usepackage{latexsym} %\leadsto
% \usepackage{lscape} % landscape, rotates content, but not page
\usepackage{pdflscape} % shows page in pdf as landscape
\usepackage{listings} % wysiwyg code
\usepackage{layout}
\usepackage{makeidx} % Indexerstellung
% \usepackage{marvosym} % spez zeichen (kutline)
\usepackage{mathtools}
\usepackage{multirow}
\usepackage{nicefrac}
\usepackage[numbers,square]{natbib}
% \usepackage[draft]{pdfpages}
\usepackage{pdfpages}
%\usepackage{pst-all} % PSTricks-Grafikerstellung
%\usepackage{pstricks}
%\usepackage{qtree} % baum
% \usepackage[active]{srcltx} % dvi -> tex zeile
% \usepackage{pdfsync} % pdf -> tex zeile
\usepackage{rotating}
\usepackage[onehalfspacing]{setspace}
% \usepackage{stmaryrd}
% \usepackage{subfigure} %obsolete, use subfig or caption instead
%\usepackage{subfig}
\usepackage{subcaption}
\usepackage{tabularx} % tabellen mit definierter breite
% \usepackage{teubner}
\usepackage{textcomp}
\usepackage{times}
\usepackage{todonotes}
\usepackage[ugly]{units} % \unit[Wert]{Einheit}
% \usepackage{varioref} % schlaue referenzen: \vref{key} \vpageref[text]{key} \vrefrange, \vpagerefrange
\usepackage{verbatim} % \begin{comment} \end{comment}
\usepackage{wrapfig}
% \usepackage{wasysym}
\usepackage{xcolor}
\usepackage{xspace} % intelligent \makro_ whitespace
% ###### Caption ######
\captionsetup{margin=0.5cm, indention=0.5cm, font=small, labelfont=bf, format=plain,singlelinecheck=true,skip=3pt}
% [] options: global (table, figure) -> subfloat (subtable, subfigure)
\captionsetup[subfigure]{labelfont=md, margin=0pt, parskip=0pt, hangindent=0pt, indention=0.62cm, singlelinecheck=true} %removed captionskip=4pt
\captionsetup[table]{position=above,parskip=0pt,singlelinecheck=true,skip=2pt} %removed captionskip=4pt
\captionsetup[subtable]{position=bottom,labelfont=md,margin=0pt,parskip=0pt, hangindent=0pt, indention=0pt, singlelinecheck=true, captionskip=2pt}
% keywords: position=top,
% \usepackage{listings} % fuer pretty printing von Quellcode
% \renewcommand{\lstlistlistingname}{Algorithmenverzeichnis}
% \renewcommand{\lstlistingname}{Algorithmus}
% \lstset{basicstyle=\small,language=C++,tabsize=2,breaklines=true,breakautoindent=true,frame=tb,
% literate={!=}{{$\neq$}}1 {>=}{{$\geq$}}1 {<=}{{$\leq$}}1 {:=}{{$\gets$}}1}
% http://mirror.switch.ch/ftp/mirror/tex/macros/latex/contrib/hyperref/doc/manual.html
\usepackage[pdftitle={Sparse-Coding-Analysis in Underwater Images - Bachelor Thesis},pdfauthor={Johannes Brinkrolf and Stefan Dresselhaus},
bookmarks,colorlinks,citecolor=black,urlcolor=black,menucolor=black,linkcolor=black,pdfview=FitH,pdfpagelayout=TwoPageRight,bookmarksopen=true,bookmarksopenlevel=1]{hyperref}
%%%% Algorithm / algorithmic
\usepackage{algorithm} % see below
\usepackage[noend]{algorithmic}% \usepackage{algorithmic}
\renewcommand{\algorithmiccomment}[1]{//\emph{#1}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\renewcommand{\algorithmicrequire}{\textbf{Input:}} % Given:
% \algsetup{indent=2em}