81 lines
1.6 KiB
TeX
81 lines
1.6 KiB
TeX
|
|
% Font
|
|
\usepackage{fontspec}
|
|
\setmainfont{TeX Gyre Termes} % Times New Roman alternative
|
|
\usepackage{setspace}
|
|
\onehalfspacing % 1.5 interline spacing
|
|
\defaultfontfeatures[\rmfamily,\sffamily]{Ligatures=TeX}
|
|
|
|
|
|
% 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}
|
|
|
|
\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}
|
|
|
|
\usepackage{hyperref}
|
|
|
|
% Force text on right side, float on left side
|
|
% \usepackage{sty/floatlefttextright}
|
|
|
|
|
|
\makeglossaries
|
|
\makeindex
|
|
\renewcommand\maketitle{\include{titlepage}}
|
|
|
|
% Abstract
|
|
\providecommand{\abstractname}{Abstract} % not in scrbook class
|
|
\newenvironment{abstract}[1]{%
|
|
\hrule
|
|
\small\textbf{\abstractname: }
|
|
%\small\emph #1 % emph takes an argument
|
|
\small\emph{#1} % or \small\textit{#1}
|
|
\itshape % use this if you want the text to be in italics
|
|
}{%
|
|
\newline\hrule
|
|
\vspace{0.6cm}
|
|
}
|