From e5b08d48032d7e2fda134a97136b9b44e270d12a Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Tue, 13 Sep 2022 10:23:58 +0200 Subject: [PATCH] Use bachelor template --- example/example.tex | 59 +++++++++------ main.tex | 163 +++++++++++++++++++++++++--------------- titlepage/titlepage.tex | 31 ++++---- vorspiel/vorspiel.tex | 10 +++ 4 files changed, 167 insertions(+), 96 deletions(-) create mode 100644 vorspiel/vorspiel.tex diff --git a/example/example.tex b/example/example.tex index 8917601..48f8fcc 100644 --- a/example/example.tex +++ b/example/example.tex @@ -1,36 +1,53 @@ -\section{Example} +\chapter{Bilder} \label{sec:pictures} + +\section{Einzeln} \begin{figure}[H] \begin{center} - \includegraphics[width=0.8\textwidth]{example} - \caption{Example Image} - \label{fig:example} + \includegraphics[width=0.5\linewidth]{example} + \caption{Beispielbild 1} + \label{fig:example-1} \end{center} \end{figure} -\cite[vgl. dazu][]{example-book} +\section{Doppelt} -This Picture (\ref{fig:example}) is awesome +\begin{figure}[H] + \begin{center} + \begin{subfigure}[b]{0.48\linewidth} + \includegraphics[width=\textwidth]{example} + \caption{Beispielbild 2} + \label{fig:example-2} + \end{subfigure} + \begin{subfigure}[b]{0.48\linewidth} + \includegraphics[width=\textwidth]{example} + \caption{Beispielbild 3} + \label{fig:example-3} + \end{subfigure} + \caption{Beispielbilder} + \label{fig:examples} + \end{center} +\end{figure} -\cite[vgl. dazu][]{example-online} +Die \refa{fig:example-2} ist super! -\newpage +Schau dir mal \refk{sec:pictures} an! -\section{Requirements} +\chapter{Bibliography} -\srequirement{should} -lala und lulu +\cite[vgl.][]{example-book} -\corequirement{could} -lala und lulu +\cite[][ein Bild]{example-online} -\morequirement{could} -lala und lulu +Vielleicht reicht auch Google\wwwlink{google.de}... -\wrequirement{could} -lala und lulu +\chapter{Abkürzungen} -\section{Programming} +\ac{html} ist super. \acf{js} wird ausgeschrieben \engl{written out}. \acs{js} wird nur abgekürzt. + +\chapter{Programmierung} + +\section{Lstlisting} \begin{lstlisting}[language=Bash] #!/bin/bash @@ -38,11 +55,7 @@ lala und lulu echo "Hello World" \end{lstlisting} -\begin{lstlisting}[language=Python] -# same in python - -print("Hello World") -\end{lstlisting} +\section{Verbatim} \begin{verbatim} $ sudo apt-get update diff --git a/main.tex b/main.tex index a81332e..b5e70de 100644 --- a/main.tex +++ b/main.tex @@ -1,58 +1,61 @@ \documentclass[ - a4paper, - oneside, + paper=a4, + twoside=false, parskip=half, listof=entryprefix, listof=totoc, index=totoc, - bibliography=totoc -]{scrartcl} + bibliography=totoc, + headsepline, +]{scrbook} \usepackage{silence} \WarningFilter{biblatex}{File 'ngerman-iso.lbx'} \WarningFilter{biblatex}{'\mainlang'} +\WarningFilter{biblatex}{Bibliography string 'online' untranslated} +\WarningFilter{hyperref}{Token not allowed in a PDF string} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Fonts Fonts Fonts +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} -\usepackage{pdfpages,graphicx,subcaption,lastpage} +\usepackage{scrhack} +\usepackage{pdfpages,graphicx,subcaption,lastpage,xspace} \graphicspath{ {./images} } - -\usepackage{geometry} -\geometry{a4paper, top=2.5cm, left=2.5cm, right=2.5cm, bottom=2.5cm} -\usepackage{float,listings,xcolor,csquotes,microtype,scrlayer-scrpage,etoolbox} +\usepackage{float,xcolor,csquotes,microtype,etoolbox} +\MakeOuterQuote{"} +\usepackage[automark,markcase=ignoreuppercase,autooneside=false]{scrlayer-scrpage} \usepackage[official]{eurosym} +\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,filecolor=black,urlcolor=black]{hyperref} -\definecolor{codegreen}{rgb}{0,0.6,0} -\definecolor{codegray}{rgb}{0.5,0.5,0.5} -\definecolor{codepurple}{rgb}{0.58,0,0.82} -\definecolor{backcolour}{rgb}{0.95,0.95,0.92} -\definecolor{weborange}{rgb}{1,0.65,0} - -\lstdefinestyle{mystyle}{ - backgroundcolor=\color{backcolour}, - commentstyle=\color{codegreen}, - keywordstyle=\color{magenta}, - numberstyle=\tiny\color{codegray}, - stringstyle=\color{codepurple}, - emph={int,char,double,float,unsigned,void,bool}, - emphstyle={\color{weborange}}, - basicstyle=\ttfamily\footnotesize, - breakatwhitespace=false, - breaklines=true, - captionpos=b, - keepspaces=true, - numbers=left, - numbersep=5pt, - showspaces=false, - showstringspaces=false, - showtabs=false, - tabsize=2, - firstnumber=1, +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Listings Paket +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{listings,caption} +\definecolor{codebg}{rgb}{0.95,0.95,0.95} +\lstset{ + basicstyle =\ttfamily\color{black}\small, + keywordstyle =, + commentstyle =\color{teal}, + stringstyle =\itshape, + tabsize=2, + breaklines=true, + captionpos=b, + breakatwhitespace, + backgroundcolor={\color{codebg}}, + basewidth=0.5em, } -\lstset{style=mystyle} +\lstloadlanguages{ + bash, +} +\usepackage{pmboxdraw} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Bibliography +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setuptoc{toc}{totoc} \usepackage[ @@ -64,15 +67,8 @@ mincitenames=1, maxcitenames=3 ]{biblatex} -\addbibresource{bib/online.bib} -\addbibresource{bib/book.bib} - -\DefineBibliographyStrings{ngerman}{ - andothers = {{et\,al\adddot}}, - online = {{online}}, - urlseen = {{Zugriff am:}}, - urlfrom = {{Verfügbar unter:}}, -} +\addbibresource{./bib/online.bib} +\addbibresource{./bib/book.bib} \DeclareNameAlias{default}{family-given/given-family} @@ -87,29 +83,76 @@ } \AfterTOCHead[lof]{\appto\autodot{:}} -\definecolor{must-have-brown}{RGB}{51, 22, 18} -\definecolor{should-have-red}{RGB}{229, 24, 31} -\definecolor{could-have-orange}{RGB}{246, 121, 28} -\definecolor{wont-have-blue}{RGB}{32, 169, 215} -\newcommand{\morequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{must-have-brown}{must-have}}\\} -\newcommand{\srequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{should-have-red}{should-have}}\\} -\newcommand{\corequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{could-have-orange}{could-have}}\\} -\newcommand{\wrequirement}[1]{\paragraph{#1}\hfill\textbf{\textcolor{wont-have-blue}{won't-have}}\\} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Fussnoten +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}} +\addtolength{\skip\footins}{\baselineskip} +\setlength{\dimen\footins}{10\baselineskip} +\interfootnotelinepenalty=10000 % Verhindert das Fortsetzen von + % Fussnoten auf der gegen�berligenden Seite -\ihead{Example Header} -\chead{} -\ohead{Surname Lastname} -\ofoot{Seite~\thepage{}/\pageref{LastPage}} -\cfoot{} -\title{Example Title} -\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,filecolor=black,urlcolor=black]{hyperref} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Commands +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\workDatum}{\today\xspace} +\newcommand{\workDateTime}{\today{} - \thistime\ Uhr} +\newcommand{\workFirma}{\xspace} +\newcommand{\workTitel}{} +\newcommand{\workNameStudent}{\xspace} +\newcommand{\workTyp}{\xspace} +\newcommand{\www}[1]{\href{http://#1}{#1}} +\newcommand{\wwwhttp}[1]{\href{#1}{#1}} +\newcommand{\wwwlink}[1]{\footnote{\www{#1}}} + +\newcommand{\zB}{\mbox{z.\,B.}\xspace} +\newcommand{\ua}{\mbox{u.\,a.}\xspace} +\newcommand{\dah}{\mbox{d.\,h.}\xspace} +\newcommand{\uAe}{\mbox{u.\,a.}\xspace} + +\newcommand{\refp}[1]{Seite~\pageref{#1}\xspace} +\newcommand{\refk}[1]{Kapitel~\ref{#1}\xspace} +\newcommand{\refa}[1]{Abbildung~\ref{#1}\xspace} +\newcommand{\reft}[1]{Tabelle~\ref{#1}\xspace} +\newcommand{\reflst}[1]{Listing~\ref{#1}\xspace} + +\newcommand{\engl}[1]{(engl: \textit{#1})\xspace} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Kopf und Fusszeilen +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{scrtime} +\pagestyle{scrheadings} +\clearpairofpagestyles +\ihead[]{\leftmark} +\ohead[]{\rightmark} +\counterwithout{footnote}{chapter} +\ifoot[\workDateTime]{\workDateTime} +\ofoot[\pagemark]{\pagemark} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Acronyms +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{acro} + +\DeclareAcronym{html}{short=HTML,long=HyperText Markup Language} +\DeclareAcronym{js}{short=JS,long=JavaScript} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Dokument +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \include{titlepage/titlepage} + \include{vorspiel/vorspiel} + \tableofcontents \newpage \listoffigures + \printacronyms + \addcontentsline{toc}{chapter}{Abkürzungen} + \include{example/example} \printbibliography[title=Literaturverzeichnis] diff --git a/titlepage/titlepage.tex b/titlepage/titlepage.tex index 7914b74..a703186 100644 --- a/titlepage/titlepage.tex +++ b/titlepage/titlepage.tex @@ -8,21 +8,26 @@ \includegraphics[width=5cm]{example} \HRule{13pt}{1pt} \centering - \Large \vlinespace{5}\\ - Something for\\ - \huge - \textbf{Someone}\\ - \Large - \vlinespace{3} - Lala und Lullu\\ - writing in \LaTeX\\ - \vlinespace{6} - \huge - \textbf{Surname Lastname}\\ - \Large + \workTyp\\ + \begin{Large} + \textbf{Titel}\\ + \textbf{und mehr}\\ + \end{Large} + \vlinespace{4} + im Studiengang\\ + \\ + am \workDatum\\ + \vlinespace{4} + vorgelegt von\\ + \begin{Large} + \textbf{\workNameStudent}\\ + \end{Large} + \vlinespace{1} + Matrikelnummer: <12345> \vfill \raggedright{} \HRule{13pt}{1pt} \\ - \titleemph{Something else:} Oh yeah + \titleemph{Erstprüfer:} Prof. \\ + \titleemph{Zweitprüfer:} Prof. \end{titlepage} \ No newline at end of file diff --git a/vorspiel/vorspiel.tex b/vorspiel/vorspiel.tex new file mode 100644 index 0000000..8d99bff --- /dev/null +++ b/vorspiel/vorspiel.tex @@ -0,0 +1,10 @@ +\chapter*{Eidesstattliche Erklärung} + +Hiermit versichere ich, die vorliegende Arbeit selbstständig und unter ausschließlicher Verwendung der angegebenen Literatur und Hilfsmittel erstellt zu haben. + +Die Arbeit wurde bisher in gleicher oder Ähnlicher Form keiner anderen Prüfungsbehörde vorgelegt und auch nicht veröffentlicht. + +\begin{tabbing} + Esslingen, den \workDatum ~~ \= \rule{5cm}{0.3mm}\\ + \> Unterschrift +\end{tabbing}