generated from tobias-hilfiker/latex-base
Initial commit
This commit is contained in:
137
main.tex
Normal file
137
main.tex
Normal file
@@ -0,0 +1,137 @@
|
||||
% Preamble
|
||||
\documentclass[11pt]{article}
|
||||
|
||||
% Packages
|
||||
\usepackage[utf8]{inputenc} % Inputencoding to UTF-8
|
||||
\usepackage[a4paper, top=1.85cm, bottom=2cm, left=2.5cm, right=2cm]{geometry} % Set the margin and size of a page
|
||||
|
||||
\usepackage{titling}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{wasysym}
|
||||
\usepackage{array}
|
||||
\usepackage{rotating} % Rotate pictures in Latex
|
||||
\usepackage{smartdiagram} % Chevron-Diagrams in Latex
|
||||
\usepackage{wrapfig} % Figures floating in text
|
||||
\usepackage{enumerate} % Enumerations in Latex
|
||||
\usepackage{capt-of} % Captions for pictures without figure-environment
|
||||
\usepackage{xcolor} % Custom colors
|
||||
\usepackage{subcaption} % Better cpationing of pictures and tables
|
||||
\usepackage[de]{datetime2} % Get dates in german format
|
||||
\usepackage{pdflscape} % Landscaped pages in Pdf
|
||||
\usepackage{setspace} % Better Line spacing
|
||||
\usepackage{lastpage} % Custom page numbering
|
||||
\usepackage{fancyhdr} % Custom page numbering
|
||||
\usepackage{tcolorbox} % In-Text Code formatting
|
||||
\usepackage{pdfpages} % Import PDF into LaTeX document
|
||||
\usepackage{cleveref} % Better referencing on elements
|
||||
\usepackage{xspace}
|
||||
\usepackage{parskip} % Stop LaTeX from making indents after every paragraph
|
||||
|
||||
% UML-Diagrams in LaTeX
|
||||
\usepackage{pgf-umlcd}
|
||||
\usepackage{pgf-umlsd}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{tikz}
|
||||
\usepackage{lineno}
|
||||
\usepackage{caption}
|
||||
|
||||
% Advanced Table functions
|
||||
\usepackage{tabularx}
|
||||
\newcolumntype{W}{>{\hsize=1.5\hsize}X}
|
||||
\newcolumntype{w}{>{\hsize=1.25\hsize}X}
|
||||
\newcolumntype{m}{X}
|
||||
\newcolumntype{S}{>{\hsize=.75\hsize}X}
|
||||
\newcolumntype{s}{>{\hsize=.5\hsize}X}
|
||||
%ATTENTION WHEN USING COLUMNS -> They have to sum up to the correct count of cols: two cols mean that the sizes have to in sum be two
|
||||
|
||||
% Bibliography management
|
||||
\usepackage{natbib}
|
||||
\bibliographystyle{apalike}
|
||||
|
||||
% Formatting for Abacus-Style
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{uarial}
|
||||
\renewcommand{\familydefault}{\sfdefault}
|
||||
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
|
||||
|
||||
%Format titles with correct size and color
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\section}{\Large\bfseries\color[HTML]{282828}}{\thesection}{1em}{}
|
||||
\titleformat{\subsection}{\large\bfseries\color[HTML]{282828}}{\thesubsection}{1em}{}
|
||||
\titleformat{\subsubsection}{\normalsize\bfseries\color[HTML]{282828}}{\thesubsubsection}{1em}{}
|
||||
\newcommand{\subsubsubsection}[1]{\paragraph{#1}\mbox{}\\}
|
||||
|
||||
%Recolor itemize-dots
|
||||
\usepackage{enumitem}
|
||||
\usepackage{kinematikz}
|
||||
\setlist[itemize]{label={\color[HTML]{282828}\textbullet}, itemsep=0.1ex}
|
||||
|
||||
% change commands to german
|
||||
\renewcommand\contentsname{Inhaltsverzeichnis}
|
||||
\renewcommand{\figurename}{Abb.}
|
||||
\DTMsetdatestyle{german}
|
||||
\renewcommand{\listfigurename}{Abbildungsverzeichnis}
|
||||
\renewcommand{\bibsection}{\section{Literaturverzeichnis}}
|
||||
\renewcommand{\listtablename}{Tabellenverzeichnis}
|
||||
\renewcommand{\tablename}{Tabelle}
|
||||
\crefname{table}{Tabelle}{Tabellen}
|
||||
\Crefname{table}{Tabelle}{Tabellen}
|
||||
\crefname{figure}{Abb.}{Abb.}
|
||||
\Crefname{figure}{Abb.}{Abb.}
|
||||
|
||||
% Configure page numbering & footer
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\lfoot{<TEXT_FOR_LEFT_FOOTNOTE>}
|
||||
\cfoot{Seite \thepage \hspace{1pt} von~\pageref{LastPage}}
|
||||
\rfoot{\today}
|
||||
|
||||
\begin{document}
|
||||
% Load titlepage from titlepage.tex and insert here
|
||||
\input{titlepage}
|
||||
\pagebreak %PAGEBREAK
|
||||
|
||||
\section{Title}
|
||||
|
||||
\subsection{SubTitle}
|
||||
|
||||
\textbf{This is a line with bold text}\\
|
||||
\textit{This is a line with italic text}\\
|
||||
\underline{This is a line with underlined text}\\
|
||||
|
||||
\subsubsection{SubSubTitle}
|
||||
|
||||
Table with two columns of different width:\\
|
||||
\begin{center}
|
||||
\begin{tabularx}{\textwidth}{| S | w |}
|
||||
\hline
|
||||
\textbf{Header 1} & \textbf{Header 2} \\ \hline
|
||||
Content 1.1 & Content 1.2 \\ \hline
|
||||
Content 2.1 & Content 2.2 \\ \hline
|
||||
\end{tabularx}
|
||||
\end{center}
|
||||
|
||||
The next table has equally wide columns. Additionally, it only occupies 80\% of the textwidth:\\
|
||||
\begin{center}
|
||||
\begin{tabularx}{0.8\textwidth}{| m | m |}
|
||||
\hline
|
||||
\textbf{Header 1} & \textbf{Header 2} \\ \hline
|
||||
Content 1.1 & Content 1.2 \\ \hline
|
||||
Content 2.1 & Content 2.2 \\ \hline
|
||||
\end{tabularx}
|
||||
\end{center}
|
||||
|
||||
The next table defines multiple columns in all sizes:
|
||||
|
||||
\begin{center}
|
||||
\begin{tabularx}{\textwidth}{| s | S | m | w | W |}
|
||||
\hline
|
||||
\textbf{Header 1} & \textbf{Header 2} & \textbf{Header 3} & \textbf{Header 4} & \textbf{Header 5} \\ \hline
|
||||
Content 1.1 & Content 1.2 & Content 1.3 & Content 1.4 & Content 1.5\\ \hline
|
||||
Content 2.1 & Content 2.2 & Content 2.3 & Content 2.4 & Content 2.5\\ \hline
|
||||
\end{tabularx}
|
||||
\end{center}
|
||||
|
||||
\subsubsubsection{SubSubSubTitle}
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user