merge paragraphs
[study/eia.git] / assignment3 / mystyle.sty
1 % adjustwidth environment
2 \RequirePackage{changepage}
3
4 % nicer ellipses
5 %\RequirePackage{ellipsis}
6
7 % nicer numbers
8 \RequirePackage{numprint}
9 \npthousandsep{,}
10
11 % nicer tables
12 \RequirePackage{tabularx}
13 \RequirePackage{booktabs}
14 \RequirePackage{color, colortbl}
15 \definecolor{rowhighlight}{gray}{0.95}
16
17 % fix overfull hboxes
18 \setlength{\emergencystretch}{1.5em}
19
20 % embed images
21 \RequirePackage{graphicx}
22
23 % add border around figures
24 \RequirePackage{float}
25 \floatstyle{boxed}
26 \restylefloat{figure}
27
28 % smaller caption, align with text instead of ``figure'', bold ``figure''
29 \RequirePackage[hang,small,bf]{caption}
30
31 % nicer descriptions
32 %\RequirePackage{enumitem}
33 % inparaenum
34 \RequirePackage{paralist}
35
36 \RequirePackage{fontspec}
37 \setmainfont[
38 RawFeature={protrusion=default},
39 Ligatures=TeX,
40 Extension=.otf,
41 UprightFont=*-regular,
42 BoldFont=*-bold,
43 ItalicFont=*-italic,
44 BoldItalicFont=*-bolditalic
45 ]{texgyretermes}
46
47 \RequirePackage{setspace}
48 \onehalfspacing
49
50 % reset section counter for each part
51 \usepackage{chngcntr}
52 \counterwithin*{section}{part}
53
54 % mini-toc
55 \RequirePackage{titletoc}
56
57 % links
58 \RequirePackage[usenames,dvipsnames,svgnames]{xcolor}
59 \definecolor{link}{HTML}{224466}
60 \RequirePackage[unicode,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=link,linktoc=all,hypertexnames=false]{hyperref}
61 \urlstyle{same}
62
63
64 %\pdfprotrudechars2 % 1 if you don't want to change line breaking
65 %\RequirePackage[protrusion=true,expansion]{microtype}
66
67 %\RequirePackage{polyglossia}
68 % \setmainlanguage{english}
69
70 \RequirePackage[american]{babel}
71 \RequirePackage{csquotes}
72 \RequirePackage[backend=biber,style=apa,mincitenames=1,maxcitenames=2]{biblatex}
73 \DeclareLanguageMapping{american}{american-apa}
74
75 % add 3cm margin on the left
76 %\RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=2cm]{geometry}
77 \RequirePackage[left=3cm,right=2.5cm,top=2cm,bottom=3.25cm]{geometry}
78
79 % header: 1.25cm
80 % footer: 1.25cm
81 \usepackage{fancyhdr}
82 \setlength{\headheight}{1.25cm}
83 \setlength{\footskip}{1.25cm}
84 \pagestyle{fancyplain}
85
86 \renewcommand{\headrulewidth}{0.2pt}
87 \renewcommand{\footrulewidth}{0.2pt}
88 %\newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\headlinefont\Huge\textbf{#1}\end{center}}}
89 \newcommand{\headline}[1]{{\begin{center}\linespread{0.9}\Large\textbf{#1}\end{center}}}
90
91 \fancyhead{}
92 \fancyhead[R]{\leftmark{}}
93 \fancyfoot{}
94 \fancyfoot[L]{\footnotesize{Ricardo Wurmus (3607635), Assigment 3, 72296 Environmental Impact Assessment}}
95 \fancyfoot[R]{\thepage}
96
97 \RequirePackage[toc,title]{appendix}
98 \usepackage[nottoc,numbib]{tocbibind}