105 lines
4.7 KiB
TeX
105 lines
4.7 KiB
TeX
% -----------------------------------------
|
|
% This LaTeX file is a default preamble
|
|
% for different document types.
|
|
% It is part of a general purpose document.
|
|
% -----------------------------------------
|
|
% Copyright (C) 2020 by Nils Freydank,
|
|
% <nils.freydank@posteo.de>
|
|
% License: CC BY-SA 4.0 International.
|
|
% see COPYING-CC-BY-SA for more details
|
|
% ----------------------------------------- %
|
|
\documentclass[% % define the general type of document
|
|
paper=a4, % use DIN A4 as the piper size
|
|
12pt, % text size in unit "points"
|
|
abstract=off, % for an abstract with a title
|
|
twoside=on, % for twosided layout
|
|
bindingoffset=10mm, % let's assume some offset for binding
|
|
chapterprefix=false % toggle the "chapter" prefix in front of each chapter
|
|
]%
|
|
% --- choose one of the following document types ---
|
|
% see https://komascript.de/komascriptbestandteile
|
|
% --- choose one of the following document types ---
|
|
% see https://komascript.de/komascriptbestandteile and
|
|
% for more details https://www.namsu.de/Extra/latex-klassen.html
|
|
%{scrartcl} % for _really_ short documents, starts at \section level
|
|
%{scrbook}
|
|
%{scrlettr}
|
|
%{scrlttr2}
|
|
{scrreprt} % for longer texts like a thesis, starts at \chapter level
|
|
% --------------------------------------------------
|
|
\directlua{ % create PDFs version 2.0
|
|
pdf.setmajorversion(2)
|
|
pdf.setminorversion(0)
|
|
}
|
|
%
|
|
\setlength{\parindent}{0pt} % avoid the indent at the start of a new paragraph
|
|
%
|
|
\usepackage[ % configure the page geometry
|
|
a4paper,
|
|
top=2cm,
|
|
bottom=3cm,
|
|
left=3cm,
|
|
right=2cm
|
|
]{geometry}
|
|
%\usepackage[onehalfspacing]{setspace} % configure the line spacing
|
|
%
|
|
\usepackage{polyglossia}
|
|
\usepackage{csquotes} % bibtex yells if it is not loaded
|
|
\setdefaultlanguage[ % global language configuration for TOC etc.
|
|
variant=german,
|
|
spelling=new,
|
|
latesthyphen=true
|
|
]{german}
|
|
%
|
|
\usepackage[
|
|
backend=biber, % modern backend
|
|
style=numeric, % reference by numbers
|
|
sorting=none % i.e. same order as in text
|
|
]{biblatex} % load the bibliography package
|
|
\addbibresource[datatype=bibtex]{\bibpath}
|
|
%
|
|
\usepackage[pdfusetitle]{hyperref} % for internal links; pdf use title for metadata inside the PDF
|
|
\hypersetup{unicode=true} % let links support unicode/utf-8
|
|
%
|
|
\usepackage{fontspec} % load the font, choose linux libertine in the next line
|
|
\usepackage{libertine} % https://r2src.github.io/top10fonts/
|
|
\setmonofont{inconsolata} % use inconsolata for source code listings
|
|
%
|
|
\usepackage{graphicx} % for graphics via \includegraphics
|
|
\usepackage{flafter} % to place the included graphics properly
|
|
%\usepackage{subcaption} % for graphics consisting of different parts
|
|
% --- BEGIN OF UTTERLY WEIRD STUFF --------------------
|
|
% We *must* load for \includegraphics with size configs either
|
|
% - graphicx instead of graphics, or
|
|
% - graphics plus tikz, or
|
|
% - graphics plus cirkuitikz
|
|
% --> we need grapicx XOR graphics + any tikz
|
|
\usepackage{tikz} % for graphics "compilation"
|
|
\usetikzlibrary{shapes,arrows}
|
|
\usepackage[siunitx]{circuitikz} % for graphs and circuits
|
|
% --- END OF U.W.S. -----------------------------------
|
|
\usepackage{siunitx} % use proper units
|
|
\sisetup{locale=DE}
|
|
%\usepackage{pdfpages} % to include whole PDF pages
|
|
%
|
|
\usepackage[headsepline]{scrlayer-scrpage} % for heading and footer modification
|
|
\pagestyle{scrheadings}
|
|
\clearpairofpagestyles
|
|
%
|
|
\usepackage[cache=false]{minted} % for code listings; needs pygments and -shell-escape inside the LaTeX call!
|
|
\usemintedstyle{github} % take a look at "pygmentize -L styles"
|
|
%
|
|
\usepackage{amsmath} % to draw bold in math mode with \boldsymbol{}
|
|
%
|
|
\usepackage{scrextend} % load the package for footnote manipulations
|
|
%
|
|
\raggedbottom % avoid large vertical spaces between paragraphs
|
|
%
|
|
\deffootnote[2em]{2em}{1em}% % configure the indentation of footnotes
|
|
{\textsuperscript{\thefootnotemark}\,}
|
|
%
|
|
\newcommand*{\fullref}[1]{% % combine ref and nameref into one command with one link
|
|
\hyperref[{#1}]{\ref*{#1}~\nameref*{#1}}%
|
|
}
|
|
% vim:fileencoding=utf-8:ts=4:syntax=tex:colorcolumn=81:noexpandtab
|