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.
449 lines
15 KiB
TeX
449 lines
15 KiB
TeX
% pandoc WBH Prüfungsvorlage
|
|
%
|
|
% Diese Vorlage ist für Prüfungen an der Wilhelm-Büchner-Hochschule erstellt worden
|
|
% sie entspricht den Vorgaben für Hausarbeiten und Thesis zum aktuellen Zeitpunkt.
|
|
%
|
|
% Authoren:
|
|
%
|
|
% Created:
|
|
% Changed: 26.06.2020
|
|
|
|
\documentclass[
|
|
12pt,
|
|
a4paper,
|
|
$if(lang)$
|
|
$babel-lang$,
|
|
$endif$
|
|
bibliography=totocnumbered,
|
|
listof=totocnumbered
|
|
]{scrartcl}
|
|
|
|
% Support different languages
|
|
% default: en
|
|
% -----------------------------------------------------------------------
|
|
$if(lang)$
|
|
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
|
$if(babel-newcommands)$
|
|
$babel-newcommands$
|
|
$endif$
|
|
%\usepackage[utf8]{inputenc}
|
|
$endif$
|
|
|
|
\usepackage{amsmath} % For pandoc extensive `amsmath` collection of symbols for typesetting ordinary math
|
|
\usepackage{amsfonts} % More symboles for exotic currency notation and engeneering diagrams
|
|
\usepackage{amssymb} % More symboles for exotic currency notation and engeneering diagrams
|
|
\usepackage{siunitx} % For using SI Units https://www.ctan.org/pkg/siunitx
|
|
\usepackage{fancyhdr}
|
|
\usepackage{tabularx}
|
|
\usepackage[a4paper, top=27mm, left=20mm, right=40mm, bottom=35mm, headsep=10mm, footskip=12mm]{geometry} % Vorgabe 4cm Rand auf der rechten Seite.
|
|
\usepackage{setspace}
|
|
\usepackage[right]{eurosym}
|
|
\usepackage[printonlyused]{acronym}
|
|
\usepackage{subfig}
|
|
\usepackage{floatflt}
|
|
\usepackage[usenames,dvipsnames]{color}
|
|
\usepackage{colortbl}
|
|
\usepackage{paralist}
|
|
\usepackage{array}
|
|
\usepackage{parskip}
|
|
\usepackage[right]{eurosym}
|
|
\usepackage[subfigure,titles]{tocloft}
|
|
\usepackage{helvet}
|
|
|
|
$if(tables)$
|
|
\usepackage{longtable,booktabs} % This two Packages are needet for Pandoc Table support. Issue is opened: https://github.com/jgm/pandoc/issues/1023
|
|
$endif$
|
|
\usepackage{multirow}
|
|
|
|
$if(graphics)$
|
|
\usepackage{graphicx}
|
|
\makeatletter
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
|
|
\makeatother
|
|
% Scale images if necessary, so that they will not overflow the page
|
|
% margins by default, and it is still possible to overwrite the defaults
|
|
% using explicit options in \includegraphics[width, height, ...]{}
|
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
|
% Set default figure placement to htbp
|
|
\makeatletter
|
|
\def\fps@figure{htbp}
|
|
\makeatother
|
|
$endif$
|
|
|
|
% Support hyperref with colorisation
|
|
% -------------------------------------------------------------------------
|
|
\usepackage{xcolor}
|
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
|
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage[pdfpagelabels=true]{hyperref}}
|
|
\urlstyle{same} % disable monospaced font for URLs
|
|
|
|
$if(verbatim-in-note)$
|
|
\VerbatimFootnotes % allow verbatim text in footnotes
|
|
$endif$
|
|
|
|
$if(links-as-notes)$
|
|
% Make links footnotes instead of hotlinks:
|
|
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
|
|
$endif$
|
|
|
|
$if(strikeout)$
|
|
\usepackage[normalem]{ulem}
|
|
% Avoid problems with \sout in headers with hyperref
|
|
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
|
$endif$
|
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
|
|
|
% PDF Metadata
|
|
\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$},
|
|
$if(author)$
|
|
pdfauthor={$if(author.name)$$author.name$$else$$author$$endif$$if(author.matrikelnr)$, Matrikelnummer: $author.matrikelnr$$endif$},
|
|
$endif$
|
|
$if(studium.studiengang)$
|
|
pdfsubject={Studiengang: $studium.studiengang$},
|
|
$endif$
|
|
pdfcreator={\LaTeX\ with package \flqq hyperref\frqq via pandoc},
|
|
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$},
|
|
pdfnewwindow=true,
|
|
$if(lang)$
|
|
pdflang=$lang$,
|
|
$endif$
|
|
pdfdisplaydoctitle=true,
|
|
$if(colorlinks)$
|
|
colorlinks=true,
|
|
linkcolor=$if(linkcolor)$$linkcolor$$else$gray$endif$,
|
|
filecolor=$if(filecolor)$$filecolor$$else$magenta$endif$,
|
|
citecolor=$if(citecolor)$$citecolor$$else$gray$endif$,
|
|
urlcolor=$if(urlcolor)$$urlcolor$$else$black$endif$,
|
|
$else$
|
|
hidelinks,
|
|
$endif$
|
|
}
|
|
|
|
% Designing blockquote
|
|
% ------------------------------------------------------------------
|
|
\definecolor{blockquote-border}{RGB}{221,221,221}
|
|
\definecolor{blockquote-text}{RGB}{119,119,119}
|
|
\usepackage{mdframed}
|
|
\newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote}
|
|
\renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}%
|
|
\item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}}
|
|
|
|
% Syntax Highligting with colors
|
|
% -----------------------------------------------------------------
|
|
$if(highlighting-macros)$
|
|
$highlighting-macros$
|
|
$endif$
|
|
$if(verbatim-in-note)$
|
|
\usepackage{fancyvrb}
|
|
$endif$
|
|
|
|
$if(listings)$
|
|
\usepackage{listings}
|
|
\newcommand{\passthrough}[1]{#1}
|
|
\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
|
|
$endif$
|
|
|
|
% \pdfinfo{/CreationDate (D:20170605133321)}
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
|
|
% Pandoc tightlisting
|
|
\providecommand{\tightlist}{%
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
|
|
|
|
% Support for citation
|
|
% -------------------------------------------------------------------
|
|
$if(natbib)$
|
|
\usepackage[$natbiboptions$]{natbib}
|
|
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
|
$endif$
|
|
$if(biblatex)$
|
|
\usepackage[backend=bibtex]{biblatex}
|
|
$for(bibliography)$
|
|
\addbibresource{$bibliography$}
|
|
$endfor$
|
|
$endif$
|
|
|
|
\usepackage[T1]{fontenc}
|
|
|
|
$if(csl-refs)$
|
|
\newlength{\cslhangindent}
|
|
\setlength{\cslhangindent}{1.5em}
|
|
\newenvironment{cslreferences}%
|
|
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
|
|
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
|
|
{\par}
|
|
$endif$
|
|
|
|
$if(numbersections)$
|
|
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
|
|
$else$
|
|
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
|
|
%\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
|
|
$endif$
|
|
|
|
% ----------------------------------------------------------------------------
|
|
% begin document
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\begin{document}
|
|
|
|
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Kopf und Fußzeile
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
\renewcommand{\sectionmark}[1]{\markright{#1}}
|
|
\renewcommand{\leftmark}{\rightmark}
|
|
\pagestyle{fancy}
|
|
\lhead{}
|
|
\chead{}
|
|
\rhead{\thesection\space\contentsname}
|
|
\lfoot{\tiny $if(aufgabe.typ)$$aufgabe.typ$ des Studenten: $endif$$if(author.name)$$author.name$$endif$ $if(author.matrikelnr)$(Matrikelnr.: $author.matrikelnr$)$endif$ $if(studium.studiengang)$Studiengang: $studium.studiengang$$endif$ $if(aufgabe.code)$- Prüfung: $aufgabe.code$ $endif$}
|
|
\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}
|
|
$if(logo)$
|
|
\includegraphics[scale=0.2]{$logo$}\\
|
|
$endif$
|
|
\vspace*{2cm}
|
|
\Large
|
|
$if(studium.studiengang)$
|
|
\textbf{Studiengang:}\\
|
|
\textbf{$studium.studiengang$}\\
|
|
\vspace*{2cm}
|
|
$endif$
|
|
\Huge
|
|
$if(aufgabe.typ)$
|
|
\textbf{$aufageb.typ$}\\
|
|
\vspace*{0.5cm}
|
|
$endif$
|
|
$if(title)$
|
|
\textbf{$title$} \\
|
|
$endif$
|
|
\vspace*{0.3cm}
|
|
\large
|
|
$if(aufgabe.code)$
|
|
$aufgabe.code$ \\
|
|
$endif$
|
|
\vspace*{1cm}
|
|
$if(studium.fach)$
|
|
\textbf{$studium.fach$}\\
|
|
$endif$
|
|
\vspace*{2cm}
|
|
|
|
\vfill
|
|
\normalsize
|
|
\newcolumntype{x}[1]{>{\raggedleft\arraybackslash\hspace{0pt}}p{#1}}
|
|
\begin{tabular}{x{6cm}p{7.5cm}}
|
|
$if(author.name)$
|
|
\rule{0mm}{5ex}\textbf{Student:} & $author.name$
|
|
$if(author.email)$
|
|
\newline $author.email$
|
|
$endif$ \\
|
|
$endif$
|
|
$if(author.matrikelnr)$
|
|
\rule{0mm}{5ex}\textbf{Matrikelnummer:} & $author.matrikelnr$ \\
|
|
$endif$
|
|
$if(date)$
|
|
\rule{0mm}{5ex}\textbf{Abgabedatum:} & $date$ \\
|
|
$else$
|
|
\rule{0mm}{5ex}\textbf{Abgabedatum:} & \today \\
|
|
$endif$
|
|
\end{tabular}
|
|
\end{center}
|
|
\pagebreak
|
|
|
|
$if(abstract)$
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Abstract
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
\begin{abstract}
|
|
$abstract$
|
|
\end{abstract}
|
|
$endif$
|
|
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Content
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
|
|
$if(toc)$
|
|
$if(toc-title)$
|
|
\renewcommand*\contentsname{$toc-title$}
|
|
$endif$
|
|
{
|
|
$if(colorlinks)$
|
|
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
|
|
$endif$
|
|
|
|
\setcounter{tocdepth}{$toc-depth$}
|
|
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Verzeichnisse
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% TODO Typ vor Nummer
|
|
\renewcommand{\cfttabpresnum}{Tab. }
|
|
\renewcommand{\cftfigpresnum}{Abb. }
|
|
\settowidth{\cfttabnumwidth}{Abb. 10\quad}
|
|
\settowidth{\cftfignumwidth}{Abb. 10\quad}
|
|
|
|
\singlespacing
|
|
\rhead{$if(lang)$INHALTSVERZEICHNIS$else$TABLE OF CONTENTS$endif$}
|
|
\renewcommand{\contentsname}{I $if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}
|
|
\phantomsection
|
|
\addcontentsline{toc}{section}{\texorpdfstring{I \hspace{0.35em}$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}{$if(lang)$Inhaltsverzeichnis$else$Table of contents$endif$}}
|
|
\addtocounter{section}{1}
|
|
\tableofcontents
|
|
\pagebreak
|
|
}
|
|
$endif$
|
|
|
|
$if(lot)$
|
|
\rhead{$if(lang)$TABELLENVERZEICHNIS$else$LIST OF TABLES$endif$}
|
|
\pagebreak
|
|
\listoftables
|
|
$endif$
|
|
$if(lof)$
|
|
$if(lot)$
|
|
% Workaround for the HEADING if you don't use a list of tables
|
|
$else$
|
|
\rhead{$if(lang)$ABBILDUNGSVERZEICHNIS$else$LIST OF FIGURES$endif$}
|
|
$endif$
|
|
\listoffigures
|
|
\pagebreak
|
|
$endif$
|
|
|
|
$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
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Kopfzeile
|
|
\renewcommand{\sectionmark}[1]{\markright{#1}}
|
|
\renewcommand{\subsectionmark}[1]{}
|
|
\renewcommand{\subsubsectionmark}[1]{}
|
|
\lhead{$if(lang)$Abschnitt$else$Chapter$endif$ \thesection}
|
|
\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}
|
|
%\renewcommand{\includegraphics}[1][]{\includegraphics[width=0.9\columnwidth,keepaspectratio]{#1}}
|
|
|
|
$body$
|
|
|
|
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Literatur
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
$if(biblatex)$
|
|
\pagebreak
|
|
\lhead{}
|
|
\rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
|
|
\renewcommand{\refname}{Quellenverzeichnis}
|
|
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
|
|
\pagebreak
|
|
$endif$
|
|
$if(natbib)$
|
|
$if(bibliography)$
|
|
\pagebreak
|
|
\lhead{}
|
|
\rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
|
|
\renewcommand{\refname}{Quellenverzeichnis}
|
|
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
|
|
$endif$
|
|
$endif$
|
|
$if(csl-refs)$
|
|
\lhead{}
|
|
\rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
|
|
$endif$
|
|
|
|
|
|
%$if(biblatex)$
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Literatur
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% \pagebreak
|
|
% \lhead{}
|
|
% \rhead{QUELLENVERZEICHNIS} %hier kann die rechte Seite der Kopfzeile editiert werden!
|
|
% \renewcommand{\refname}{Quellenverzeichnis}
|
|
|
|
% \ bibliographystyle{myalpha}
|
|
% \bibliography{bibo}
|
|
% \pagebreak
|
|
|
|
%\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
|
|
%$endif$
|
|
|
|
$if(insurance)$
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
% Erklärung zur selbstständigkeit
|
|
% ----------------------------------------------------------------------------------------------------------
|
|
\newpage
|
|
\thispagestyle{empty}
|
|
\begin{center}
|
|
\vspace*{5em}
|
|
\huge\textbf{Erklärung}\\
|
|
\end{center}
|
|
\vspace{2em}
|
|
Ich, $author.name$, versichere durch meine Unterschrift, dass ich die vorliegende Arbeit selbstständig erstellt habe. Andere als die angegebenen Hilfsmittel habe ich nicht ver-wendet.
|
|
|
|
Soweit ich fremde Gedankengänge oder Texte verwendet habe, sind diese von mir als solche kenntlich gemacht und dem Urheber eindeutig zuordenbar. Dazu zählen sowohl wört-liche als auch nicht wörtliche Übernahmen.
|
|
|
|
\vspace{4em}
|
|
\begin{minipage}{\linewidth}
|
|
\begin{tabular}{p{15em}p{15em}}
|
|
Datum: $date$& .......................................................\\
|
|
& \centering ($author.name$)\\
|
|
\end{tabular}
|
|
\end{minipage}
|
|
$endif$
|
|
$for(include-after)$
|
|
$include-after$
|
|
|
|
$endfor$
|
|
\end{document}
|