132 lines
5.1 KiB
TeX
132 lines
5.1 KiB
TeX
\documentclass[a4paper]{article} % Default text size and document class
|
|
|
|
% Format -----------------------------------------------------------------------------
|
|
\usepackage[ % To set up the page
|
|
a4paper, % A4 paper
|
|
width=160mm, % Text body width
|
|
top=25mm,bottom=25mm, % Top and bottom margins
|
|
bindingoffset=6mm % Offset of left and right pages for printing
|
|
]
|
|
{geometry}
|
|
\usepackage{setspace} % So set spacings (e.g. line height)
|
|
\onehalfspacing % Sets line width to 1.5
|
|
%\usepackage{sectsty} % To control sectional headers
|
|
% \chapternumberfont{\huge} % Set size of chapter number
|
|
% \chaptertitlefont{\huge} % Set size of chapter title
|
|
|
|
\usepackage{multicol} % Writes in multiple columns
|
|
\usepackage{wrapfig}
|
|
\usepackage{lipsum} % Inserts blind text for previewing
|
|
\usepackage{placeins} % adding float barriers
|
|
\setlength{\parindent}{0pt} % remove indentation for new paragraphs
|
|
|
|
% Language ---------------------------------------------------------------------------
|
|
\usepackage[english]{babel} % To enable language support other than us english
|
|
\usepackage[babel]{csquotes} % Omits spell checking in quotations
|
|
|
|
% Images, long tables & append pdf pages ---------------------------------------------
|
|
\usepackage{float} % Enables some options for image placement
|
|
\usepackage{graphicx} % To include graphics
|
|
\usepackage{ % Long table stuff
|
|
csvsimple, % So a csv can be converted to a table
|
|
longtable, % To make long tables
|
|
booktabs % To page break long tables properly
|
|
}
|
|
\usepackage{pdfpages} % Appends pdf pages
|
|
\usepackage{xcolor}
|
|
|
|
% Custom fancy image caption ---------------------------------------------------------
|
|
\usepackage{caption}
|
|
\captionsetup[figure]{labelsep=space}
|
|
% \captionsetup[table]{labelsep=space}
|
|
\newcommand{\mycaption}[2]{\caption[#1]{\textbar\,\textbf{#1} #2}}
|
|
|
|
% Math and code support -----------------------------------------------------------------------
|
|
\usepackage{amsmath, amsfonts} % For fancy math
|
|
\usepackage[separate-uncertainty = true]{siunitx} % for SI units
|
|
\sisetup{detect-all}
|
|
\usepackage{xcolor}
|
|
\NewDocumentCommand{\codeword}{v}{%
|
|
\texttt{\textcolor{black}{#1}}%
|
|
}
|
|
% Citation setup ---------------------------------------------------------------------
|
|
\usepackage[]{hyperref} % To make clickable links
|
|
\hypersetup{hidelinks,} % To draw no boxes around the links
|
|
\usepackage[ % Citation setup
|
|
backend=biber, % Citation backend
|
|
style=apa, % Citation format
|
|
% minbibnames=1,
|
|
% maxbibnames=99,
|
|
%maxnames=2, % Max number of names displayed in text
|
|
%sortlocale=de_DE, % Sorts by german conventions (ß = ss)
|
|
%natbib=true, % Enables \citep and \citet. Use \parencite and \textcite in future
|
|
url=false, % Disaples url
|
|
doi=true, % To print the doi
|
|
eprint=false % Disables link to eprint (?)
|
|
]{biblatex}
|
|
\DeclareDelimFormat[parencite]{finalnamedelim}{\addspace and\space} % disabels & and uses 'and'
|
|
|
|
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{\addspace and\space} % disabels & and uses 'and' in the bibfile
|
|
|
|
\addbibresource{chirpdetection.bib} % Where the bibliography file is
|
|
\renewcommand{\familydefault}{\sfdefault}
|
|
\usepackage{tgheros}
|
|
\usepackage{wrapfig}
|
|
%\setlength{\marginparwidth}{1.8cm}
|
|
\usepackage[disable]{todonotes}
|
|
%\DeclareUnicodeCharacter{0301}{\textcolor{red}{*************************************}} % for finding unicode erros in the pdf
|
|
|
|
|
|
\setlength\bibitemsep{2\itemsep}
|
|
|
|
% Abstract title same size as sectional headers --------------------------------------
|
|
% see here: https://tex.stackexchange.com/questions/366169/how-to-change-font-size-for-abstract-title
|
|
\makeatletter
|
|
\renewenvironment{abstract}{%
|
|
\if@twocolumn
|
|
\section*{\abstractname}%
|
|
\else %% <- here I've removed \small
|
|
\begin{center}%
|
|
{\bfseries \Large\abstractname\vspace{\z@}}% %% <- here I've added \Large
|
|
\end{center}%
|
|
\quotation
|
|
\fi}
|
|
{\if@twocolumn\else\endquotation\fi}
|
|
\makeatother
|
|
|
|
% Document ---------------------------------------------------------------------------
|
|
\begin{document}
|
|
\input{chapters/titlepage.tex} % Add the path to the titlepage here
|
|
\listoftodos
|
|
\section{Introduction}
|
|
\label{chap:introduction}
|
|
\input{chapters/introduction.tex}
|
|
|
|
\pagebreak
|
|
\section{Methods}
|
|
\label{chap:methods}
|
|
\input{chapters/methods.tex}
|
|
|
|
\pagebreak
|
|
\section{Results}
|
|
\label{chap:results}
|
|
\input{chapters/results.tex}
|
|
|
|
\pagebreak
|
|
\section{Discussion}
|
|
\label{chap:discussion}
|
|
\input{chapters/discussion.tex}
|
|
|
|
\pagebreak
|
|
\printbibliography
|
|
%\pagebreak
|
|
%\section{Appendix}
|
|
% \label{chap:appendix}
|
|
% \input{chapters/appendix.tex}
|
|
|
|
% Append pdf outputs from other programs to the document
|
|
% \includepdf[pages=-]{appendix/ab.pdf}
|
|
% \includepdf[pages=-]{appendix/cd.pdf}
|
|
% \includepdf[pages=-]{appendix/ef.pdf}
|
|
|
|
\end{document} |