summaryrefslogtreecommitdiff
path: root/assignment3/mystyle.sty
blob: 54befe8c54330d5f4b70f39a6473be575b767ffd (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
% adjustwidth environment
\RequirePackage{changepage}

% nicer ellipses
%\RequirePackage{ellipsis}

% nicer numbers
\RequirePackage{numprint}
\npthousandsep{,}

% nicer tables
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage{color, colortbl}
\definecolor{rowhighlight}{gray}{0.95}

% fix overfull hboxes
\setlength{\emergencystretch}{1.5em}

% embed images
\RequirePackage{graphicx}

% add border around figures
\RequirePackage{float}
\floatstyle{boxed}
\restylefloat{figure}

% smaller caption, align with text instead of ``figure'', bold ``figure''
\RequirePackage[hang,small,bf]{caption}

% nicer descriptions
%\RequirePackage{enumitem}
% inparaenum
\RequirePackage{paralist}

\RequirePackage{fontspec}
\setmainfont[
  RawFeature={protrusion=default},
  Ligatures=TeX,
  Extension=.otf,
  UprightFont=*-regular,
  BoldFont=*-bold,
  ItalicFont=*-italic,
  BoldItalicFont=*-bolditalic
]{texgyretermes}

\RequirePackage{setspace}
  \onehalfspacing

% reset section counter for each part
\usepackage{chngcntr}
  \counterwithin*{section}{part}

% mini-toc
\RequirePackage{titletoc}

% links
\RequirePackage[usenames,dvipsnames,svgnames]{xcolor}
\definecolor{link}{HTML}{224466}
\RequirePackage[unicode,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=link,linktoc=all,hypertexnames=false]{hyperref}
\urlstyle{same}


%\pdfprotrudechars2 % 1 if you don't want to change line breaking
%\RequirePackage[protrusion=true,expansion]{microtype}

%\RequirePackage{polyglossia}
%  \setmainlanguage{english}

\RequirePackage[american]{babel}
\RequirePackage{csquotes}
\RequirePackage[backend=biber,style=apa,mincitenames=1,maxcitenames=2]{biblatex}
\DeclareLanguageMapping{american}{american-apa}

% add 3cm margin on the left
%\RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=2cm]{geometry}
\RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=3.25cm]{geometry}

% header: 1.25cm
% footer: 1.25cm
\usepackage{fancyhdr}
\setlength{\headheight}{1.25cm}
\setlength{\footskip}{1.25cm}
\pagestyle{fancyplain}

\renewcommand{\headrulewidth}{0.2pt}
\renewcommand{\footrulewidth}{0.2pt}
%\newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\headlinefont\Huge\textbf{#1}\end{center}}}
\newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\Large\textbf{#1}\end{center}}}

\fancyhead{}
\fancyhead[R]{\leftmark{}}
\fancyfoot{}
\fancyfoot[L]{\footnotesize{Ricardo Wurmus (3607635), Assigment 3, 72296 Environmental Impact Assessment}}
\fancyfoot[R]{\thepage}

\RequirePackage[toc,title]{appendix}
\usepackage[nottoc,numbib]{tocbibind}