This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/oekologie/energieverbrauch/main_with_bibliography.tex

65 lines
1.6 KiB
TeX

\documentclass[12pt,a4paper]{article}
%Font settings
\usepackage[default]{sourcesanspro}
\usepackage[T1]{fontenc}
%Support for German
\usepackage[utf8]{inputenc}
\usepackage{ngerman}
%Support for images
\usepackage{graphicx}
%Support for Code Snippets and Syntax Highlighting
\usepackage{listings}
\usepackage{color}
\usepackage{sourcecodepro}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{
basicstyle=\ttfamily,
language=bash,
breaklines,
literate={ö}{{\"o}}1
{ä}{{\"a}}1
{ü}{{\"u}}1,
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
keywordstyle=\color{blue}, % keyword style
stringstyle=\color{mymauve}, % string literal style
showstringspaces=false, % Removes the strange symboles where spaces are
}
% Listing with a box around it
\usepackage[most]{tcolorbox}
\newtcblisting{sexylisting}[2][]{sharp corners,
fonttitle=\bfseries, colframe=gray, listing only,
listing options={basicstyle=\ttfamily,language=bash},
title=\thetcbcounter #2, #1}
%\begin{sexylisting}{Some Code}
%\end{sexylisting}{Some Code}
%Document information
\title{}
\author{Andreas Zweili}
\begin{document}
\begin{titlepage}
\begin{center}
\huge\bfseries{Titel}
\end{center}
\vfill
%\includegraphics{titelbild.png}
\end{titlepage}
\newpage
\tableofcontents
\newpage
\bibliographystyle{plain}
\bibliography{bibliography}
\end{document}