-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.sty
107 lines (83 loc) · 3.07 KB
/
settings.sty
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
99
100
101
102
103
104
105
106
\RequirePackage{silence}
\WarningsOff[longtable]
\WarningsOff[array]
\usepackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\RequirePackage{csquotes}
\RequirePackage{graphicx}
\RequirePackage[hyphens]{url}
\RequirePackage[main=british]{babel}
\raggedright
\RequirePackage{fontawesome}
\newcommand{\smallcaps}[1]{\textsc{\lowercase{#1}}}
\RequirePackage[a4paper,nohead,nofoot,hmargin=1cm,vmargin=0.5cm]{geometry}
\RequirePackage{relsize}
\RequirePackage[dvipsnames,svgnames]{xcolor}
\RequirePackage{tikz}
\usetikzlibrary{shapes,shadows}
\RequirePackage{comment}
\definecolor{SwishLineColour}{HTML}{88AC0B}
\definecolor{MarkerColour}{HTML}{B6073F}
\newcommand{\colorpale}[1]{\small{\color{SwishLineColour}#1}}
% If you're not a researcher nor an academic, you probably don't need biblatex; delete this line.
\RequirePackage[backend=biber,bibstyle=apa,sorting=ydnt,uniquename=init,maxnames=7,defernumbers=true]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\RequirePackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,text=white,fill=MarkerColour!80!black,font=\slshape\sffamily\scriptsize\bfseries,inner sep=1pt,text height=1.35ex,minimum width=1.5em,text centered] (char) {#1};}}
\newcounter{bibitem}
\AtBeginBibliography{\setcounter{bibitem}{1}}
\AtEveryBibitem{\makebox[2.5em][l]{\circled{\thebibitem}\stepcounter{bibitem}}}
% \renewcommand{\bibfont}{\small}
\setlength{\bibitemsep}{1.5ex}
\setlength{\bibhang}{2.7em}
\NewBibliographyString{retrieved}
\NewBibliographyString{from}
\DefineBibliographyStrings{british}{
from = {\textcolor{MarkerColour!80!black}{\faLink}},
retrieved = {}
}
\headerscale{1}
%\setlength{\headerspace}{6pt}
\rubricfont{\slshape\Large\bfseries\sffamily}
\setlength{\rubricspace}{0pt}
%\setlength{\rubricafterspace}{-9pt}
\setlength{\rubricafterspace}{-3pt}
\setlength{\subrubricspace}{3pt}
\setlength{\subrubricbeforespace}{4pt}
\def\@@rubrichead#1{%
\begin{tikzpicture}[baseline]%\
\shade[left color=MarkerColour!60!white, right color=white] rectangle (\textwidth,2.5pt);
\node[font={\@rubricfont},color=MarkerColour!90!white,inner sep=0pt,text ragged,anchor=south west,text depth=.5ex,text height=1.5ex] at (1pt,2pt) {#1};
\end{tikzpicture}%
\vspace\rubricspace%
}
\subrubricfont{\slshape\large\bfseries\sffamily}
%\subrubricalignment{l}
\newcommand{\makefield}[2]{\makebox[1.5em]{\color{MarkerColour!80!black}#1} #2\hspace{2em}}
\keyalignment{r}
\rubricalignment{l}
\renewcommand{\arraystretch}{1.25}
\urlstyle{tt}
\newcommand{\prefixmarker}[1]{\def\@prefixmarker{#1}}
\def\@prefixmarker{\relscale{.9}\faBookmark}
\prefix{%
\hspace*{-1ex}
\color{MarkerColour!80!black}\@prefixmarker%
\hspace*{1ex}%
}
\newcommand{\makerubrichead}[1]{\vskip\baselineskip\@@rubrichead{#1}}
\defbibheading{subbibliography}{\vskip\subrubricbeforespace{\@subrubricfont\hspace{3pt}#1}\par}
\defbibfilter{booksandchapters}{%
( type=book or type=incollection )
}
\RequirePackage[colorlinks=true,allcolors=black,breaklinks=true]{hyperref}