2019-07-08 13:56:14 +02:00
|
|
|
\RequirePackage[l2tabu, orthodox]{nag}
|
|
|
|
|
|
|
|
\documentclass[
|
|
|
|
a4paper,
|
|
|
|
% draft, %% produce only a draft version (mark lines that need manual edition and don't show graphics)
|
|
|
|
bibliography=totoc, % add bibilography to table of contents
|
|
|
|
11pt, %% set default font size to 11 point
|
|
|
|
DIV=14, % replace this with a larger number to get less padding around all text (or use calc for the ideal border)
|
|
|
|
parskip=half, % how much space between paragraphs. If you prefer indention instead of space between paragraphs remove it
|
|
|
|
oneside, % replace with twoside before printing
|
|
|
|
%draft, % uncomment for faster compilation
|
2019-07-15 16:24:38 +02:00
|
|
|
american, % language of the document
|
2019-07-08 13:56:14 +02:00
|
|
|
%appendixprefix=true % in case you want Appendix A written in front of appendix headings
|
|
|
|
]{scrbook}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%--------------------------- Important Packages --------------------------------
|
|
|
|
|
|
|
|
%\usepackage[ngerman]{babel}
|
2019-07-10 11:41:32 +02:00
|
|
|
\usepackage[american]{babel}
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
% required for proper characters
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
\usepackage[T1]{fontenc}
|
2019-08-20 16:32:22 +02:00
|
|
|
\DeclareUnicodeCharacter{2212}{-}
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
% helps with equations
|
|
|
|
\usepackage{amsmath,amssymb,amstext}
|
|
|
|
\usepackage{amsthm}
|
|
|
|
|
|
|
|
|
|
|
|
\usepackage{microtype} %slightly changes letter spacing to make text fit better
|
|
|
|
|
|
|
|
\usepackage{aas_macros} % this imports the aas_macros.sty file that is required to print bibtex exported from ADS
|
|
|
|
|
2019-07-15 13:44:02 +02:00
|
|
|
\usepackage[svgnames]{xcolor} % allows defining colors
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
%------------------------------- Helpful Features ---------------------------------
|
|
|
|
|
|
|
|
% properly format
|
|
|
|
\usepackage{siunitx}
|
2019-07-09 15:48:53 +02:00
|
|
|
\DeclareSIUnit{\nothing}{\relax}
|
2019-07-08 13:56:14 +02:00
|
|
|
\sisetup{
|
|
|
|
per-mode=fraction, % create a fraction instead of km h^-1
|
|
|
|
% locale=DE,
|
|
|
|
locale=US,
|
2019-07-09 15:48:53 +02:00
|
|
|
output-decimal-marker = {.}, % useful even for German
|
2019-07-08 13:56:14 +02:00
|
|
|
separate-uncertainty = true,
|
|
|
|
quotient-mode=fraction
|
|
|
|
}
|
|
|
|
|
|
|
|
%\usepackage{nicefrac}
|
|
|
|
\usepackage[autostyle=true]{csquotes} % automatically create nice quotes with \enquote{text}
|
|
|
|
\usepackage{pdflscape}
|
|
|
|
%\usepackage{cancel} % In case you want to cancel out some values in an equation
|
|
|
|
\usepackage{physics} % lots of shortcuts for physics equations (e.g. $\dv{a}$)
|
|
|
|
|
|
|
|
\usepackage{subcaption} % allows to nicely put two images next to each other
|
|
|
|
\usepackage{tabularx}
|
|
|
|
\usepackage{booktabs} % nicer table seperations
|
2019-09-19 16:51:10 +02:00
|
|
|
%\usepackage{todonotes}
|
2019-08-20 16:32:22 +02:00
|
|
|
|
|
|
|
\usepackage{pgf}
|
|
|
|
|
2019-07-08 13:56:14 +02:00
|
|
|
%----------------------------------- Style decisions -----------------------------------
|
|
|
|
|
|
|
|
\hyphenpenalty=750 % break less words than default - try different values for success
|
|
|
|
\interfootnotelinepenalty=10000 % splitting footnotes between pages is really ugly and should only be done if really necessary
|
2019-07-15 16:24:38 +02:00
|
|
|
%\usepackage[sc]{mathpazo} % use the Palatino font and a fitting math font
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
\pagestyle{headings}
|
|
|
|
% how the header of the pages looks like
|
|
|
|
% for something nicer take a look at fancyhdr
|
|
|
|
|
2019-07-15 13:44:02 +02:00
|
|
|
% xcolor is already defined above
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
% not sure what these two do, but they definitly do something
|
|
|
|
\colorlet{bluebookmarks}{blue}
|
|
|
|
\colorlet{blueallcolors}{blue}
|
|
|
|
|
2019-08-12 14:12:20 +02:00
|
|
|
% footnotes don't start new every chapter
|
|
|
|
\counterwithout{footnote}{chapter}
|
|
|
|
|
2019-07-08 13:56:14 +02:00
|
|
|
%----------------------------------- Bibliography ----------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
\PassOptionsToPackage{hyphens}{url}\usepackage[
|
|
|
|
backend=biber,
|
2019-07-09 15:48:53 +02:00
|
|
|
style=authoryear-comp, % choose a style from https://de.overleaf.com/learn/latex/Biblatex_citation_styles
|
2019-07-08 13:56:14 +02:00
|
|
|
%sortlocale=de_AT,
|
2019-08-29 10:56:46 +02:00
|
|
|
sortlocale=en_US,
|
2019-07-08 13:56:14 +02:00
|
|
|
backref=true % use if you like it -- puts a link to the page where it is cited into the bibliography
|
|
|
|
]{biblatex}
|
|
|
|
|
|
|
|
\addbibresource{bibliographie.bib}
|
|
|
|
|
|
|
|
|
|
|
|
%---------------------------------- Source Code -----------------------------------------
|
|
|
|
|
2019-07-10 11:41:32 +02:00
|
|
|
\usepackage[scaled=.9]{FiraMono}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{scrhack} % should fix warning
|
|
|
|
\definecolor{strings}{HTML}{008000}
|
|
|
|
\definecolor{keywords}{HTML}{000080}
|
|
|
|
\definecolor{mygray}{rgb}{0.58,0,0.82}
|
|
|
|
|
|
|
|
\lstset{ %
|
|
|
|
% backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
|
|
|
|
basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
|
|
|
|
basewidth=0.5em,
|
|
|
|
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
|
|
|
|
breaklines=true, % sets automatic line breaking
|
|
|
|
captionpos=b, % sets the caption-position to bottom
|
|
|
|
% commentstyle=\color{mygreen}, % comment style
|
|
|
|
deletekeywords={...}, % if you want to delete keywords from the given language
|
|
|
|
escapeinside={(*}{*)}, % if you want to add LaTeX within your code
|
|
|
|
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
|
|
|
|
frame=single, % adds a frame around the code
|
|
|
|
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
|
|
|
|
keywordstyle=\color{keywords}, % keyword style
|
|
|
|
morekeywords={*,...}, % if you want to add more keywords to the set
|
|
|
|
numbers=none, % where to put the line-numbers; possible values are (none, left, right)
|
|
|
|
numbersep=5pt, % how far the line-numbers are from 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))
|
|
|
|
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
|
|
|
|
showstringspaces=false, % underline spaces within strings only
|
|
|
|
showtabs=false, % show tabs within strings adding particular underscores
|
|
|
|
stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
|
|
|
|
stringstyle=\color{strings}, % string literal style
|
|
|
|
tabsize=2, % sets default tabsize to 2 spaces
|
2019-07-16 15:55:32 +02:00
|
|
|
language=bash,
|
|
|
|
flexiblecolumns=true
|
2019-07-10 11:41:32 +02:00
|
|
|
}
|
|
|
|
\lstset{literate=% support Umlauts in listings
|
|
|
|
{Ö}{{\"O}}1
|
|
|
|
{Ä}{{\"A}}1
|
|
|
|
{Ü}{{\"U}}1
|
|
|
|
{ß}{{\ss}}1
|
|
|
|
{ü}{{\"u}}1
|
|
|
|
{ä}{{\"a}}1
|
|
|
|
{ö}{{\"o}}1
|
|
|
|
}
|
2019-07-08 13:56:14 +02:00
|
|
|
|
|
|
|
|
2019-08-05 17:53:24 +02:00
|
|
|
%\lstset{literate=%
|
|
|
|
% *{0}{{{\color{red!20!violet}0}}}1
|
|
|
|
% {1}{{{\color{red!20!violet}1}}}1
|
|
|
|
% {2}{{{\color{red!20!violet}2}}}1
|
|
|
|
% {3}{{{\color{red!20!violet}3}}}1
|
|
|
|
% {4}{{{\color{red!20!violet}4}}}1
|
|
|
|
% {5}{{{\color{red!20!violet}5}}}1
|
|
|
|
% {6}{{{\color{red!20!violet}6}}}1
|
|
|
|
% {7}{{{\color{red!20!violet}7}}}1
|
|
|
|
% {8}{{{\color{red!20!violet}8}}}1
|
|
|
|
% {9}{{{\color{red!20!violet}9}}}1
|
|
|
|
%}
|
2019-07-16 15:55:32 +02:00
|
|
|
|
2019-07-08 13:56:14 +02:00
|
|
|
%--------------------------------------- PDF output and hyperlinks ----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
\usepackage{graphicx} % support graphics
|
|
|
|
|
|
|
|
\pdfcompresslevel=9 % create small files (I think it is by default when using hyperref)
|
|
|
|
\pdfsuppresswarningpagegroup=1 % https://tex.stackexchange.com/a/78020/66733
|
|
|
|
|
|
|
|
|
|
|
|
% support hyperlinks in the PDF
|
|
|
|
|
|
|
|
\usepackage[ %
|
|
|
|
colorlinks=false, %% turn on colored links (true is better for on-screen reading, false is better for printout versions)
|
|
|
|
linkcolor = blue,
|
|
|
|
allcolors=blue,
|
|
|
|
%%% PDF-specific display options
|
|
|
|
bookmarks=true, %% if true, generate PDF bookmarks (requires two passes of pdflatex)
|
|
|
|
bookmarksopen=false, %% if true, show all PDF bookmarks expanded
|
|
|
|
bookmarksnumbered=false, %% if true, add the section numbers to the bookmarks
|
|
|
|
%pdfstartpage={1}, %% determines, on which page the PDF file is opened
|
|
|
|
% pdfpagemode=None %% None, UseOutlines (=show bookmarks), UseThumbs (show thumbnails), FullScreen
|
|
|
|
draft=false
|
|
|
|
]{hyperref}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|