119 Zeilen
3.0 KiB
TeX
119 Zeilen
3.0 KiB
TeX
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{abschlussarbeit}
|
|
%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
|
|
% KOMA-Konfiguration
|
|
\KOMAoptions{
|
|
fontsize=11pt,
|
|
captions=tablesignature,
|
|
toc=flat,
|
|
numbers=enddot
|
|
}
|
|
\addtokomafont{caption}{\small\bfseries}
|
|
%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},
|
|
pdflang={de},
|
|
pdfdisplaydoctitle=true,
|
|
xetex,
|
|
hidelinks,
|
|
linktoc=page
|
|
}
|
|
\let\runauthor\@author
|
|
\let\runtitle\@title
|
|
}
|
|
\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}}
|