101 lines
1.8 KiB
TeX
101 lines
1.8 KiB
TeX
|
|
|
|
% Font
|
|
\usepackage{fontspec}
|
|
\setmainfont{TeX Gyre Termes} % Times New Roman alternative
|
|
\usepackage[onehalfspacing]{setspace} % 1.5 interline spacing
|
|
\defaultfontfeatures[\rmfamily,\sffamily]{Ligatures=TeX}
|
|
\setkomafont{disposition}{\bfseries}
|
|
|
|
% Float
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage{float}
|
|
\RequirePackage{caption}
|
|
\RequirePackage{subcaption}
|
|
\RequirePackage{xcolor}
|
|
\RequirePackage{csquotes}
|
|
\RequirePackage[english]{babel}
|
|
% Math
|
|
\RequirePackage{amsmath}
|
|
\RequirePackage{amsthm}
|
|
\RequirePackage{amssymb}
|
|
|
|
\usepackage{enumitem}
|
|
|
|
\usepackage{lipsum}
|
|
|
|
% References
|
|
\usepackage[
|
|
maxcitenames=2,
|
|
style=authoryear-comp,
|
|
backend=biber,
|
|
citestyle=authoryear-comp,
|
|
natbib=true
|
|
]{biblatex}
|
|
|
|
\RequirePackage{doi}
|
|
\RequirePackage{xurl}
|
|
% \AtEveryBibitem{\clearfield{number}}
|
|
\DeclareSortingNamekeyScheme{
|
|
\keypart{
|
|
\namepart{given}
|
|
}
|
|
\keypart{
|
|
\namepart{prefix}
|
|
}
|
|
\keypart{
|
|
\namepart{family}
|
|
}
|
|
\keypart{
|
|
\namepart{suffix}
|
|
}
|
|
}
|
|
|
|
\RequirePackage{orcidlink}
|
|
|
|
\RequirePackage[
|
|
type={CC},
|
|
modifier={by-sa},
|
|
version={4.0},
|
|
]{doclicense}
|
|
|
|
\RequirePackage[
|
|
nameinlink,
|
|
noabbrev
|
|
]{cleveref}
|
|
|
|
|
|
\usepackage[
|
|
abbreviations, % create "abbreviations" glossary
|
|
nomain, % don't create "main" glossary
|
|
stylemods=longbooktabs, % do the adjustments for the longbooktabs styles,
|
|
automake
|
|
]{glossaries-extra}
|
|
\setabbreviationstyle[acronym]{long-short}
|
|
|
|
\usepackage{hyperref}
|
|
|
|
% Force text on right side, float on left side (does not work well)
|
|
%\usepackage{sty/floatlefttextright}
|
|
|
|
\renewcommand\maketitle{\include{titlepage}}
|
|
|
|
\hypersetup{
|
|
hidelinks
|
|
}
|
|
|
|
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}
|
|
\renewcommand*{\mkbibnameprefix}[1]{\textsc{#1}}
|
|
|
|
% Ensure summary is on even page
|
|
\newcommand*\cleartoleftpage{
|
|
\clearpage\ifodd\c@page
|
|
\hbox{}
|
|
\vspace*{\fill}
|
|
\thispagestyle{empty}
|
|
\newpage
|
|
\fi
|
|
}
|
|
|
|
\usepackage{scrhack}
|