You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

274 lines
9.2 KiB
TeX

8 years ago
% TeX für WBH B-Prüfungen
\documentclass[12pt,a4paper,bibliography=totocnumbered,listof=totocnumbered]{scrartcl}
% Support German annotation
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
% Symbols:
% Pandoc imports the extensive `amsmath` collection of symbols
% for typesetting ordinary math.
\usepackage{amsmath}
% if you use exotic symbols you need to import specific packages, eg. for
% electrical engineering diagrams, musical notation, exotic currency symbols,
% the unspeakable rites of freemasonry etc.
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{tabularx}
\usepackage{geometry}
\usepackage{setspace}
\usepackage[right]{eurosym}
\usepackage[printonlyused]{acronym}
\usepackage{subfig}
\usepackage{floatflt}
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
\usepackage{paralist}
\usepackage{array}
\usepackage{titlesec}
\usepackage{parskip}
\usepackage[right]{eurosym}
%\usepackage{picins}
\usepackage[subfigure,titles]{tocloft}
\usepackage[pdfpagelabels=true]{hyperref}
\usepackage{helvet}
% This two Packages are needet for Pandoc Table support. Issue is opened: https://github.com/jgm/pandoc/issues/1023
\usepackage{longtable}
\usepackage{booktabs}
% Syntax Highligting with colors
8 years ago
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
8 years ago
8 years ago
\usepackage{listings}
\lstset{basicstyle=\footnotesize, captionpos=b, breaklines=true, showstringspaces=false, tabsize=2, frame=lines, numbers=left, numberstyle=\tiny, xleftmargin=2em, framexleftmargin=2em}
\makeatletter
\def\l@lstlisting#1#2{\@dottedtocline{1}{0em}{1em}{\hspace{1,5em} Lst. #1}{#2}}
\makeatother
8 years ago
\geometry{a4paper, top=27mm, left=20mm, right=40mm, bottom=35mm, headsep=10mm, footskip=12mm} % Vorgabe des 4cm Rand auf der rechten Seiten.
8 years ago
\hypersetup{unicode=false, pdftoolbar=true, pdfmenubar=true, pdffitwindow=false, pdfstartview={FitH},
pdftitle={$if(title)$$title$$endif$: $if(aufgabe.code)$$aufgabe.code$$endif$ - $if(author.name)$$author.name$$endif$},
pdfauthor={$if(author.name)$$author.name$$endif$, Matrikelnummer: $if(author.matrikelnr)$$author.matrikelnr$$endif$},
pdfsubject={Studiengang: $studium.studiengang$},
8 years ago
pdfcreator={\LaTeX\ with package \flqq hyperref\frqq},
pdfproducer={pdfTeX \the\pdftexversion.\pdftexrevision},
pdfkeywords={$if(aufgabe.typ)$$aufgabe.typ$$endif$, $if(author.matrikelnr)$$author.matrikelnr$$endif$, $if(aufgabe.code)$$aufgabe.code$$endif$ $if(keywords)$ $for(keywords)$$keywords$$sep$, $endfor$ $endif$},
8 years ago
pdfnewwindow=true,
pdflang=de,
pdfdisplaydoctitle=true,
colorlinks=true,linkcolor=black,citecolor=gray,filecolor=magenta,urlcolor=black}
% \pdfinfo{/CreationDate (D:20170605133321)}
8 years ago
\renewcommand{\familydefault}{\sfdefault}
8 years ago
% Pandoc tightlisting
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
8 years ago
\begin{document}
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}
% ----------------------------------------------------------------------------------------------------------
% Kopf und Fußzeile
% ----------------------------------------------------------------------------------------------------------
8 years ago
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\leftmark}{\rightmark}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{\thesection\space\contentsname}
\lfoot{\tiny $if(aufgabe.typ)$$aufgabe.typ$$endif$ des Studenten: $if(author.name)$$author.name$$endif$ (Matrikelnr.: $if(author.matrikelnr)$$author.matrikelnr$$endif$) Studiengang: $studium.studiengang$ - Prüfung: $if(aufgabe.code)$$aufgabe.code$$endif$}
8 years ago
\cfoot{}
\rfoot{\ \linebreak Seite \thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
% Vorspann
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\theHsection}{\Roman{section}}
\pagenumbering{Roman}
% Pagebreak after each Section
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}
% ----------------------------------------------------------------------------------------------------------
% Titelseite
% ----------------------------------------------------------------------------------------------------------
\thispagestyle{empty}
\begin{center}
8 years ago
$if(logo)$
\includegraphics[scale=0.2]{$logo$}\\
$endif$
\vspace*{2cm}
8 years ago
\Large
\textbf{Studiengang:}\\
\textbf{$studium.studiengang$}\\
8 years ago
\vspace*{2cm}
\Huge
\textbf{$aufageb.typ$}\\
8 years ago
\vspace*{0.5cm}
$if(title)$\textbf{$title$}$endif$ \\
\vspace*{0.3cm}
8 years ago
\large
$if(aufgabe.code)$$aufgabe.code$$endif$ \\
8 years ago
\vspace*{1cm}
\textbf{$studium.fach$}\\
8 years ago
\vspace*{2cm}
\vfill
\normalsize
\newcolumntype{x}[1]{>{\raggedleft\arraybackslash\hspace{0pt}}p{#1}}
\begin{tabular}{x{6cm}p{7.5cm}}
\rule{0mm}{5ex}\textbf{Student:} & $if(author.name)$$author.name$$endif$
$if(author.email)$ \newline $author.email$ $endif$ \\
\rule{0mm}{5ex}\textbf{Matrikelnummer:} & $if(author.matrikelnr)$$author.matrikelnr$$endif$ \\
8 years ago
\rule{0mm}{5ex}\textbf{Abgabedatum:} & $date$ \\
\end{tabular}
\end{center}
\pagebreak
% ----------------------------------------------------------------------------------------------------------
% Abstract
% ----------------------------------------------------------------------------------------------------------
8 years ago
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
% ----------------------------------------------------------------------------------------------------------
% Inhalt
% ----------------------------------------------------------------------------------------------------------
8 years ago
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
{
$if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
$endif$
\setcounter{tocdepth}{$toc-depth$}
8 years ago
% ----------------------------------------------------------------------------------------------------------
% Verzeichnisse
% ----------------------------------------------------------------------------------------------------------
% TODO Typ vor Nummer
\renewcommand{\cfttabpresnum}{Tab. }
\renewcommand{\cftfigpresnum}{Abb. }
\settowidth{\cfttabnumwidth}{Abb. 10\quad}
\settowidth{\cftfignumwidth}{Abb. 10\quad}
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\singlespacing
\rhead{INHALTSVERZEICHNIS}
\renewcommand{\contentsname}{I Inhaltsverzeichnis}
8 years ago
\phantomsection
\addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}Inhaltsverzeichnis}{Inhaltsverzeichnis}}
8 years ago
\addtocounter{section}{1}
\tableofcontents
\pagebreak
}
$endif$
$if(lot)$
\rhead{TABELLENVERZEICHNIS}
8 years ago
\pagebreak
\listoftables
$endif$
$if(lof)$
% Workaround for the HEADING if you don't use a list of tables
$if(lot)$$else$\rhead{ABBILDUNGSVERZEICHNIS}$endif$
8 years ago
\listoffigures
\pagebreak
$endif$
8 years ago
$if(abk)$
% ----------------------------------------------------------------------------------------------------------
% Abkürzungen
% ----------------------------------------------------------------------------------------------------------
\section{Abkürzungsverzeichnis}
\begin{acronym}[OSGi] % längste Abkürzung steht in eckigen Klammern
\setlength{\itemsep}{-\parsep} % geringerer Zeilenabstand
\acro{OSGi}{Open Service Gateway initiative}
\end{acronym}
\newpage
$endif$
% ----------------------------------------------------------------------------------------------------------
% Inhalt
% ----------------------------------------------------------------------------------------------------------
% Abstände Überschrift
\titlespacing{\section}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}
\titlespacing{\subsection}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}
\titlespacing{\subsubsection}{0pt}{12pt plus 4pt minus 2pt}{-6pt plus 2pt minus 2pt}
% Kopfzeile
\renewcommand{\sectionmark}[1]{\markright{#1}}
\renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{}
\lhead{Abschnitt \thesection}
8 years ago
\rhead{} %hier kann die rechte Seite der Kopfzeile editiert werden!
\onehalfspacing
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\theHsection}{\arabic{section}}
\setcounter{section}{0}
\pagenumbering{arabic}
\setcounter{page}{1}
$body$
$if(biblatex)$
% ----------------------------------------------------------------------------------------------------------
% Literatur
% ----------------------------------------------------------------------------------------------------------
\renewcommand\refname{Quellenverzeichnis}
\bibliographystyle{myalpha}
\bibliography{bibo}
\pagebreak
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
% ----------------------------------------------------------------------------------------------------------
% Erklärung zur selbstständigkeit
% ----------------------------------------------------------------------------------------------------------
$if(insurance)$
8 years ago
\newpage
\thispagestyle{empty}
\begin{center}
\vspace*{5em}
\huge\textbf{Erklärung}\\
\end{center}
\vspace{2em}
Hiermit versichere ich, dass ich meine Abschlussarbeit selbständig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe.
\vspace{4em}
\begin{minipage}{\linewidth}
\begin{tabular}{p{15em}p{15em}}
Datum: & .......................................................\\
& \centering ($author$)\\
\end{tabular}
\end{minipage}
$endif$
8 years ago
\end{document}