thesis-template/preamble.tex
2025-06-28 19:49:29 +02:00

74 lines
2.3 KiB
TeX

% !TeX root = thesis.tex
% general layout and fonts
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% english language using babel package
\usepackage[english]{babel}
% configure font (Times New Roman)
\usepackage{fontspec}
\setmainfont{Times New Roman}
\linespread{1.3}
\frenchspacing
% configure paper
\usepackage[a4paper, total={6in, 8in}, top=3cm, bottom=2cm, textwidth=426pt]{geometry}
% common packages
\usepackage{graphicx} % images
\usepackage{float} % positioning
\usepackage{hyperref} % tables
\usepackage{multirow} % merged table rows
\usepackage{booktabs} % prettier tables
\usepackage{csquotes} % quotations
\usepackage{amssymb} % maths
\usepackage{array} % vectors
\usepackage{todonotes} % todo notes
\usepackage{cleveref} % references
% tables
\usepackage{tabulary}
\usepackage{tabularray}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{ragged2e}
\usepackage{vcell}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{colortbl}
% image captions
\usepackage{caption}
% \captionsetup[table]{skip=10pt}
% caption below table, figure etc.
\captionsetup{position=top}
% suppress section numbering in table of contents (used for appendix)
\usepackage{titletoc}
% acronym definitions (see acronyms.tex)
\usepackage{acro}
\acsetup{
pages/display=all,
pages/name=false,
link-only-first=true
}
\input{sections/acronyms.tex}
% TikZ
\usepackage{tikz}
\usetikzlibrary{shapes}
% for Citations: --explanation--
% this template uses the Harvard citation style (authoryear) per default, if you need to use a different style, take a look at the documentation of the biblatex package
% processor: biber
% maximal number of authors listed in citations: 3, if more authors are included "et al." will be used
% minimal number of authors listed in citations: 1
% nohasothers=true: "et al." instead of "andothers"
% dashed=false: does not use dashes if authors of references have the same name, instead uses the name of the author
% url=false: no urls in bibliography section, if urls are nedded, instead use url=true
\usepackage[style=authoryear, backend=biber, maxnames=3, minnames=1, nohashothers=true, dashed=false, url=false]{biblatex}
\addbibresource{bibliography.bib} % this is the name of your bibliography file