2018-02-18 10:04:32 +00:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
2018-02-20 08:14:58 +00:00
|
|
|
\ProvidesPackage{abschlussarbeit}[2018/02/20 Latextemplate für Abschlussarbeiten]
|
|
|
|
\LoadClass{scrreprt}
|
2018-02-18 10:04:32 +00:00
|
|
|
%die Benötigten Pakete
|
|
|
|
\RequirePackage{datetime} %Zeit
|
|
|
|
\RequirePackage{xparse} % Argumentparsing
|
|
|
|
\RequirePackage[ngerman]{babel} % Deutsche Sprache
|
|
|
|
\RequirePackage{blindtext} % Blindtext
|
|
|
|
\RequirePackage{scrlayer-scrpage} % Paket zur besseren Kompatibelität mit anderen Paketen
|
|
|
|
\RequirePackage[
|
|
|
|
backend=biber,
|
|
|
|
sorting=nty,
|
|
|
|
style=numeric-comp,
|
|
|
|
block=ragged
|
|
|
|
]{biblatex} % Quellen
|
|
|
|
\RequirePackage{csquotes} % Zitate
|
|
|
|
\RequirePackage{graphicx} % Grafiken
|
|
|
|
\RequirePackage[rightcaption]{sidecap} % Bessere Darstellung von Graphiken
|
|
|
|
\RequirePackage[xetex, cmyk, dvipsnames, table]{xcolor} % Farben
|
|
|
|
\RequirePackage{hyperref} % Links
|
|
|
|
\RequirePackage[printonlyused]{acronym} % Akronyme
|
|
|
|
\RequirePackage{ifxetex} % XeTeX Spezifische Optionen
|
|
|
|
\RequirePackage{wrapfig} % Platz vom Text
|
|
|
|
\RequirePackage{nameref} % namensreferenzen
|
2018-02-24 12:12:12 +00:00
|
|
|
\RequirePackage{float} % verhindert das Tabellen ans Ende fliegen
|
2018-02-25 00:50:35 +00:00
|
|
|
\RequirePackage[outputdir=build]{minted} % Quellcode listings
|
2018-02-18 10:04:32 +00:00
|
|
|
% KOMA-Konfiguration
|
|
|
|
\KOMAoptions{
|
|
|
|
fontsize=11pt,
|
|
|
|
captions=tablesignature,
|
|
|
|
toc=flat,
|
|
|
|
numbers=enddot
|
|
|
|
}
|
|
|
|
\addtokomafont{caption}{\small\bfseries}
|
2018-02-25 00:50:35 +00:00
|
|
|
%minted Konfig
|
|
|
|
\definecolor{quellbg}{rgb}{0.4,0.4,0.4}
|
|
|
|
\setminted{
|
|
|
|
bgcolor=quellgb,
|
|
|
|
langlinenos=true,
|
|
|
|
section,
|
|
|
|
breakanywhere=true,
|
|
|
|
breaklines=true,
|
|
|
|
encoding=utf-8,
|
|
|
|
tabsize=4,
|
|
|
|
python3=true,
|
|
|
|
autogobble=true,
|
|
|
|
}
|
2018-02-18 10:04:32 +00:00
|
|
|
%PDF-Konfiguration
|
|
|
|
\makeatletter
|
|
|
|
\let\orgdescriptionlabel\descriptionlabel
|
|
|
|
\renewcommand*{\descriptionlabel}[1]{%
|
|
|
|
\let\orglabel\label
|
|
|
|
\let\label\@gobble
|
|
|
|
\phantomsection
|
|
|
|
\edef\@currentlabel{#1}%
|
|
|
|
%\edef\@currentlabelname{#1}%
|
|
|
|
\let\label\orglabel
|
|
|
|
\orgdescriptionlabel{#1}%
|
|
|
|
}
|
|
|
|
\AtBeginDocument{
|
|
|
|
\hypersetup{
|
|
|
|
pdfauthor={\@author},
|
|
|
|
pdftitle={\@title},
|
|
|
|
pdfsubject={Abschlussarbeit},
|
2018-02-19 08:08:25 +00:00
|
|
|
pdfcreator={\@author},
|
2018-02-18 10:04:32 +00:00
|
|
|
hidelinks,
|
|
|
|
linktoc=page
|
|
|
|
}
|
|
|
|
\let\runauthor\@author
|
|
|
|
\let\runtitle\@title
|
2018-02-19 14:27:05 +00:00
|
|
|
\let\runsubtitle\@subtitle
|
2018-02-18 10:04:32 +00:00
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
%einstellungen für verzeichnisse
|
|
|
|
\defbibheading{bibliography}{\section{#1}}
|
|
|
|
\makeatletter
|
|
|
|
\renewcommand\listoffigures{
|
|
|
|
\section{\listfigurename}
|
|
|
|
\@mkboth{\MakeUppercase\listfigurename}
|
|
|
|
{\MakeUppercase\listfigurename}
|
|
|
|
\@starttoc{lof}
|
|
|
|
}
|
|
|
|
\renewcommand\listoftables{
|
|
|
|
\section{\listtablename}
|
|
|
|
\@mkboth{\MakeUppercase\listtablename}
|
|
|
|
{\MakeUppercase\listtablename}
|
|
|
|
\@starttoc{lot}
|
|
|
|
|
|
|
|
}
|
|
|
|
\renewcommand\tableofcontents{
|
|
|
|
\chapter{\contentsname}
|
|
|
|
\@mkboth{\MakeUppercase\contentsname}
|
|
|
|
{\MakeUppercase\contentsname}
|
|
|
|
\@starttoc{toc}
|
|
|
|
}
|
|
|
|
\makeatother
|
|
|
|
%Bilder
|
|
|
|
\NewDocumentCommand{\bild}{m o o}{
|
|
|
|
\begin{wrapfigure}{r}{0.4\textwidth}
|
|
|
|
\centering
|
|
|
|
\includegraphics[width=0.4\textwidth]{#1}
|
|
|
|
\IfNoValueF{#2}{
|
|
|
|
\caption{#2}
|
|
|
|
\IfNoValueF{#3}{
|
|
|
|
\label{bild:#3}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\end{wrapfigure}
|
|
|
|
}
|
|
|
|
%Seitenstileinstellungen
|
|
|
|
\RequirePackage[
|
|
|
|
a4paper,
|
|
|
|
left=2.5cm,
|
|
|
|
right=2.5cm,
|
|
|
|
top=2.5cm,
|
|
|
|
bottom=2.5cm,
|
|
|
|
head=21pt,
|
|
|
|
]{geometry}
|
|
|
|
\setlength{\footheight}{21pt}
|
|
|
|
\linespread{1.5}
|
|
|
|
\RedeclareSectionCommand[beforeskip=0pt,afterskip=0cm]{chapter}
|
|
|
|
\RedeclareSectionCommand[beforeskip=0pt,afterskip=10pt]{section}
|
|
|
|
%Fonts
|
|
|
|
\ifxetex
|
|
|
|
\RequirePackage[no-config]{fontspec}
|
|
|
|
\RequirePackage{noto}
|
|
|
|
\else
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
\RequirePackage[utf8]{inputenc}
|
|
|
|
\fi
|
|
|
|
%Kommandos
|
|
|
|
\newcommand{\cori}{\textsuperscript{\textcopyright}}
|
|
|
|
\newcommand{\regi}{\textsuperscript{\textregistered}}
|