mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m.internship-documentation.git
synced 2024-11-22 23:13:35 +01:00
98 lines
1.9 KiB
TeX
98 lines
1.9 KiB
TeX
%%
|
|
%% Thesis Preamble
|
|
%%
|
|
|
|
|
|
%%%
|
|
%%% Packages
|
|
%%%
|
|
|
|
% For Bibliography
|
|
\usepackage[sorting=none,natbib=true,citestyle=numeric-comp,backend=bibtex]{biblatex}
|
|
|
|
% Document
|
|
\usepackage{amsmath}
|
|
\usepackage{mathtools}
|
|
%\usepackage{cancel}
|
|
\usepackage{todo}
|
|
|
|
% Graphics
|
|
\usepackage{placeins}
|
|
\usepackage{xcolor}
|
|
\usepackage{graphicx}
|
|
\usepackage{epstopdf}
|
|
|
|
\usepackage{caption}
|
|
\usepackage{subcaption}
|
|
\usepackage[colorlinks=true]{hyperref}
|
|
\usepackage{cleveref}
|
|
\usepackage{grffile}
|
|
|
|
\usepackage[english]{babel} % for proper word breaking at line ends
|
|
\usepackage[switch]{lineno}
|
|
|
|
%\usepackage{listings}
|
|
\usepackage{csquotes}
|
|
\usepackage[margin=1.0in]{geometry}
|
|
\usepackage[nobottomtitles]{titlesec}
|
|
\usepackage{subfiles}
|
|
|
|
|
|
%%%
|
|
%%% Settings
|
|
%%%
|
|
|
|
\titleformat{\chapter}[hang] % shape
|
|
{\normalfont\bfseries\huge} % format
|
|
{\thechapter.} % label
|
|
{0.5ex} % sep
|
|
{
|
|
} % before-code
|
|
[
|
|
] % after-code
|
|
|
|
\setlength{\parindent}{0cm}
|
|
|
|
%% Automatic float barriers for section and subsection
|
|
\let\Oldsection\section
|
|
\renewcommand{\section}{\FloatBarrier\Oldsection}
|
|
|
|
\let\Oldsubsection\subsection
|
|
\renewcommand{\subsection}{\FloatBarrier\Oldsubsection}
|
|
|
|
%\let\Oldsubsubsection\subsubsection
|
|
%\renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}
|
|
|
|
%%%
|
|
%%% Shortcuts
|
|
%%%
|
|
|
|
\newcommand*{\captionsource}[2]{%
|
|
\caption[{#1}]{%
|
|
#1%
|
|
\\\hspace{\linewidth}%
|
|
\textbf{Source:} #2%
|
|
}%
|
|
}
|
|
|
|
% Math
|
|
\newcommand{\dif}[1]{\mathop{}\!\mathrm{d} #1}
|
|
\newcommand{\pdif}[1]{\mathop{}\!\mathrm{\partial} #1}
|
|
\newcommand{\dbyd}[2]{\ensuremath{\mathrm{d}{#1}/\mathrm{d}{#2}}}
|
|
|
|
|
|
% Units
|
|
\newcommand{\eV}{\text{e\kern-0.15exV}}
|
|
\newcommand{\MeV}{\text{M\eV}}
|
|
\newcommand{\GeV}{\text{G\eV}}
|
|
\newcommand{\TeV}{\text{T\kern-0.1ex\eV}}
|
|
|
|
\newcommand{\ns}{\text{ns}}
|
|
|
|
\newcommand{\MHz}{\text{MHz}}
|
|
|
|
|
|
% Names
|
|
\newcommand{\PA}{Pierre~Auger}
|
|
\newcommand{\PAObs}{\PA\ Observatory}
|
|
\newcommand{\GRAND}{Giant Radio Array for Neutrino Detection}
|