| Download
Project: Peter's Files
Views: 3893Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu1804\usepackage[english]{babel} % English language hyphenation12\usepackage{microtype} % Better typography34\usepackage{amsmath,amsfonts,amsthm} % Math packages for equations56\usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'78\usepackage[hang, small, labelfont=bf, up, textfont=it]{caption} % Custom captions under/above tables and figures910\usepackage{booktabs} % Horizontal rules in tables1112\usepackage{lastpage} % Used to determine the number of pages in the document (for "Page X of Total")1314\usepackage{graphicx} % Required for adding images1516\usepackage{enumitem} % Required for customising lists17\setlist{noitemsep} % Remove spacing between bullet/numbered list elements1819\usepackage{sectsty} % Enables custom section titles20\allsectionsfont{\usefont{OT1}{phv}{b}{n}} % Change the font of all section commands (Helvetica)2122%----------------------------------------------------------------------------------------23% MARGINS AND SPACING24%----------------------------------------------------------------------------------------2526\usepackage{geometry} % Required for adjusting page dimensions2728\geometry{29top=1cm, % Top margin30bottom=1.5cm, % Bottom margin31left=2cm, % Left margin32right=2cm, % Right margin33includehead, % Include space for a header34includefoot, % Include space for a footer35%showframe, % Uncomment to show how the type block is set on the page36}3738\setlength{\columnsep}{7mm} % Column separation width3940%----------------------------------------------------------------------------------------41% FONTS42%----------------------------------------------------------------------------------------4344\usepackage[T1]{fontenc} % Output font encoding for international characters45\usepackage[utf8]{inputenc} % Required for inputting international characters4647\usepackage{XCharter} % Use the XCharter font4849%----------------------------------------------------------------------------------------50% HEADERS AND FOOTERS51%----------------------------------------------------------------------------------------5253\usepackage{fancyhdr} % Needed to define custom headers/footers54\pagestyle{fancy} % Enables the custom headers/footers5556\renewcommand{\headrulewidth}{0.0pt} % No header rule57\renewcommand{\footrulewidth}{0.4pt} % Thin footer rule5859\renewcommand{\sectionmark}[1]{\markboth{#1}{}} % Removes the section number from the header when \leftmark is used6061%\nouppercase\leftmark % Add this to one of the lines below if you want a section title in the header/footer6263% Headers64\lhead{} % Left header65\chead{\textit{\thetitle}} % Center header - currently printing the article title66\rhead{} % Right header6768% Footers69\lfoot{} % Left footer70\cfoot{} % Center footer71\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}} % Right footer, "Page 1 of 2"7273\fancypagestyle{firstpage}{ % Page style for the first page with the title74\fancyhf{}75\renewcommand{\footrulewidth}{0pt} % Suppress footer rule76}7778%----------------------------------------------------------------------------------------79% TITLE SECTION80%----------------------------------------------------------------------------------------8182\newcommand{\authorstyle}[1]{{\large\usefont{OT1}{phv}{b}{n}\color{DarkBlue}#1}} % Authors style (Helvetica)8384\newcommand{\institution}[1]{{\footnotesize\usefont{OT1}{phv}{m}{sl}\color{Black}#1}} % Institutions style (Helvetica)8586\usepackage{titling} % Allows custom title configuration8788\newcommand{\HorRule}{\color{DarkGoldenrod}\rule{\linewidth}{1pt}} % Defines the gold horizontal rule around the title8990\pretitle{91\raggedright92\vspace{15pt} % Move the entire title section up9394\HorRule9596\vspace{40pt} % Horizontal rule before the title97\fontsize{47}{47}\usefont{OT1}{phv}{b}{n}\selectfont % Helvetica98\color{DarkBlue} % Text colour for the title and author(s)99}100101\posttitle{\par\vskip 40pt} % Whitespace under the title102103\preauthor{} % Anything that will appear before \author is printed104105\postauthor{ % Anything that will appear after \author is printed106\vspace{40pt} % Space before the rule107108\par\HorRule % Horizontal rule after the title109\vspace{15pt} % Space after the title section110}111112%----------------------------------------------------------------------------------------113% ABSTRACT114%----------------------------------------------------------------------------------------115116\usepackage{lettrine} % Package to accentuate the first letter of the text (lettrine)117\usepackage{fix-cm} % Fixes the height of the lettrine118119\newcommand{\initial}[1]{ % Defines the command and style for the lettrine120\lettrine[lines=3,findent=4pt,nindent=0pt]{% Lettrine takes up 3 lines, the text to the121\begin{verbatim}122123\end{verbatim}124right of it is indented 4pt and further indenting of lines 2+ is stopped125\color{DarkGoldenrod}% Lettrine colour126{#1}% The letter127}{}%128}129130\usepackage{xstring} % Required for string manipulation131132\newcommand{\lettrineabstract}[1]{133\StrLeft{#1}{1}[\firstletter] % Capture the first letter of the abstract for the lettrine134\initial{\firstletter}\textbf{\StrGobbleLeft{#1}{1}} % Print the abstract with the first letter as a lettrine and the rest in bold135}136137%----------------------------------------------------------------------------------------138% BIBLIOGRAPHY139%----------------------------------------------------------------------------------------140141\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)142143\addbibresource{example.bib} % The filename of the bibliography144145\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography146147148149150151152153154\usepackage{amssymb}155156157158159160161162163164165166167168169