Files
dhbw_praxisarbeit_latex_tem…/settings/preamble.tex
2024-08-06 16:41:26 +02:00

161 lines
4.9 KiB
TeX

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pdfpages}
\usepackage[titletoc]{appendix}
\RedeclareSectionCommand[
beforeskip=-1\baselineskip,
%afterskip=0.5\baselineskip
]{chapter}
%Mathematische Schreibweise und Konformität mit DIN 1304, DIN 1338, DIN 461
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{siunitx}
\sisetup{
output-decimal-marker = {,},
per-mode = symbol, % für den Bruchstrich statt der Schrägstriche in Einheiten
detect-all = true % damit siunitx die Schriftarten des Hauptdokuments verwendet
}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepackage{ifthen}
% Boolean-Wert definieren, der steuert, ob der Sperrvermerk & der rote Punkt gezeigt wird
\newboolean{sperrvermerk}
\setboolean{sperrvermerk}{true} % Setzen Sie dies auf false, um den Sperrvermerk & Punkt zu verstecken
\usepackage{tocbasic}
\DeclareNewTOC[
type=equation,
name={Gl.},
types=equations,
listname={Formelverzeichnis},
tocentrynumwidth=2.2em
]{equ}
\newcommand{\equationentry}[2][\theequation]{%
\addxcontentsline{equ}{equation}[{#1}]{#2}%
}
\BeforeStartingTOC[equ]{\def\autodot{}}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{lipsum}
\usepackage{csquotes}
\usepackage[backend=biber, autocite=inline, style=numeric]{biblatex}
\addbibresource{settings/literatur.bib}
\newcommand{\bilduntertitel}[3]{\caption[#1]{#2 \\(Quelle:~#3)}}
\newcommand{\tabellenuntertitel}[2]{\caption[#1]{#1}\label{#2}}
\newcommand{\tabellenuntertitelquelle}[3]{\caption[#1]{#1 \\(Quelle:~#2)}\label{#3}}
\usepackage{scrhack}
\usepackage{listings}
\lstset{
language=C++, % the language of the code
basicstyle=\ttfamily\footnotesize, % the size of the fonts that are used for the code
keywordstyle=\color{blue}, % keyword style
commentstyle=\color{green}, % comment style
stringstyle=\color{red}, % string literal style
numbers=left, % where to put the line-numbers
numberstyle=\tiny\color{gray},% the style that is used for the line-numbers
stepnumber=1, % the step between two line-numbers. If it is 1, each line will be numbered
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white},% choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=single, % adds a frame around the code
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
title=\lstname, % show the filename of files included with \lstinputlisting; also try caption instead of title
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
morekeywords={*,...} % if you want to add more keywords to the set
}
\usepackage[german]{varioref}
\usepackage{adjustbox}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{fnpct}
\usepackage{makeidx}
\usepackage{acro}
\usepackage[draft]{listofsymbols}
%\usepackage[final]{listofsymbols}
\renewcommand{\symheadingname}{Symbolverzeichnis}
\renewcommand{\symheading}{\chapter*{\symheadingname}}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
% Schriftart: serifenbehaftet
\usepackage{times}
% Zeilenabstand 1,5
\usepackage[onehalfspacing]{setspace}
% Randabstand allseits mindestens 2,5 cm
\geometry{
a4paper,
top=25mm,
bottom=25mm,
left=25mm,
right=25mm
}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
% Kopf- und Fußzeilen löschen
\clearpairofpagestyles
% Kopfzeile
\ihead*{\headmark} % Innenseite der Kopfzeile
\chead*{} % Zentrierter Text in der Kopfzeile
\ohead*{} % Außenseite der Kopfzeile
% Fußzeile
\ifoot*{Autor: \vorname \ \nachname} % Innenseite der Fußzeile
\cfoot*{} % Zentrierter Text in der Fußzeile; auch auf plain Seiten
\ofoot*{\pagemark} % Außenseite der Fußzeile
\usepackage{float}
\newcommand{\BildTitelQuelle}[6]{
\begin{figure}[H]
\center
\includegraphics[width=#2\textwidth]{#1}
\bilduntertitel{#3}{#4}{#5}
\label{fig:#6}
\end{figure}
}
\newcommand{\BildTitel}[5]{
\begin{figure}[H]
\center
\includegraphics[width=#2\textwidth]{#1}
\caption[#3]{#4}
\label{fig:#5}
\end{figure}
}
\usepackage[hidelinks]{hyperref}
\urlstyle{same}
\usepackage{multirow}
\usepackage{circuitikz}