\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{etf}[2024/10/04 ETF style]

% set the margins to 2.5 cm, as per ETF style guide
\RequirePackage[margin=2.5cm]{geometry}

% line spacing of 1.5, as per ETF style guide
\RequirePackage{setspace}
\onehalfspacing

% Depending on whether the paper includes front matter (title page, table of contents,
% etc.) different rules apply for numbering pages. Pages in the body of the paper are
% numbered with Arabic numerals in the upper right corner, except for the first pages
% of chapters, where the number is centered at the bottom of the page.
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
% ETF style guide mandates 12pt text, so we should enlarge the headheight a bit
\setlength{\headheight}{14.49998pt}
\addtolength{\topmargin}{-2.49998pt}

% hyperref without colored links
\RequirePackage[hidelinks]{hyperref}

\RequirePackage{csquotes}
\RequirePackage[backend=biber]{biblatex-chicago}


%% Notes font size should be 10pt, as per ETF style guide
\renewcommand*{\footnotesize}{\fontsize{10}{12}\selectfont}

% ensure that titles are included in short notes
% see https://tex.stackexchange.com/a/602565
\renewbibmacro*{cite:short:ibid}{%
  \usebibmacro{cite:short}{\thefield{entrytype}}}
