Files
master_thesis/AdditionalPackages.tex
nb72soza Bittner d84f02b12b Update on Overleaf.
2025-05-13 21:57:19 +00:00

79 lines
1.9 KiB
TeX

% !TeX root = ./Thesis.tex
\graphicspath{{./Graphics/}}
% need to pass languages explicitly
\PassOptionsToPackage{capitalize, noabbrev, ngerman, english}{cleveref}
\usepackage{cleveref}
\usepackage{datetime} % for formating submission date
\usepackage{lipsum} % for template text
% include Git commit hash when drafting
\makeatletter
\ifthenelse{\boolean{ct@drafting}}{
\usepackage{gitinfo2}
\renewcommand{\PrelimText}{\footnotesize[\,\today\ at \thistime\ -- version \myVersion{} -- git \gitAbbrevHash\,]}
}{}
\makeatother
% nice cv style for PhD theses
\iftoggle{phd}{
\usepackage[LabelsAligned]{currvita}
}{}
% to enable wide text/floats taking the space of margin notes (435pt instead of 336pt)
% note that this changes the \linewidth (not \textwidth), so follow this example
% to include a wide figure:
% \begin{figure}
% \begin{wide}
% \includegraphics[width=\linewidth]{logos/tud-logo}
% \caption{Athene logo of TU Darmstadt.}
% \end{wide}
% \end{figure}
\usepackage[strict]{changepage}
\newlength{\fullwidthlen}
\setlength{\fullwidthlen}{\marginparwidth}
\addtolength{\fullwidthlen}{\marginparsep}
\newenvironment{wide}{%
\begin{adjustwidth*}{}{-\fullwidthlen}\hsize=\linewidth%
}{%
\end{adjustwidth*}%
}
% TikZ/PGFPlots
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{
chains,
positioning,
quotes,
}
\def\StripPrefix#1>{}
\def\isOverleaf{\fi
\def\overleafJobname{output}% overleaf defaults to 'output' as \jobname
\edef\overleafJobname{\expandafter\StripPrefix\meaning\overleafJobname}%
\edef\job{\jobname}%
\ifx\job\overleafJobname
}
% To cache tikz pictures you have to run pdflatex with -shell-escape or --enable-write18
\ifnum\pdfshellescape=1
\usepgfplotslibrary{external}
\if\isOverleaf
\tikzexternaldisable
\else
\tikzexternalize[prefix=GraphicsCache/]
\fi
\fi
% Lengths for matlab2tikz
\newlength\figureheight
\newlength\figurewidth