-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththesis.sty
More file actions
121 lines (105 loc) · 3.15 KB
/
thesis.sty
File metadata and controls
121 lines (105 loc) · 3.15 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
\ProvidesPackage{prettytex/thesis}
\RequirePackage{prettytex/base}
\usepackage{microtype}
\usepackage[all]{nowidow}
\usepackage{lastpage}
\usepackage[backend=biber, style=authoryear, maxbibnames=20]{biblatex}
\usepackage[toc, acronym, style=long3col, indexonlyfirst=true, nogroupskip=true]{glossaries}
\usepackage{csquotes}
\usepackage{titlesec}
\makeatletter
\newcommand{\theRealAuthor}{\@author}
\makeatother
\setlength\bibitemsep{0.12cm}
\setlength\glsdescwidth{0.8\linewidth}
\captionsetup{font=small,labelfont=bf}
\captionsetup[figure]{margin=10pt}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand*{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{citeyear}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\parencite}[\mkbibparens]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand*{\parencite}[\mkbibparens]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{citeyear}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\footcite}[\mkbibfootnote]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{ \usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\textcite}
{\boolfalse{cbx:parens}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\printnames{labelname}%
\printtext{ (\printfield{year}\printtext{)}}}}
{\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
\multicitedelim}
{\usebibmacro{textcite:postnote}}
\DeclareCiteCommand{\citeauthor}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\citeyear}
{}
{\bibhyperref{\printdate}}
{\multicitedelim}
{}
% define the pagestyles
\setlength{\headheight}{15.3pt}
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand\headrule{}
\fancyfoot[C]{\thepage\ \text{ / } \pageref{LastPage}}
}
\fancypagestyle{normal}{
\fancyhf{}
\fancyhead[R]{\theRealAuthor \enspace \textcolor{themecolor3}{\textbullet}}
\fancyhead[L]{\leftmark}
\fancyfoot[C]{\thepage\ \text{ / } \pageref{LastPage}}
\renewcommand\headrule{\vspace{-0.18cm}\color{headrulecolor}\hrulefill}
}
\pagestyle{normal}
% make the refcheck package recognize \cref
\makeatletter
\ltx@ifpackageloaded{refcheck}{
\newcommand{\refcheckize}[1]{%
\expandafter\let\csname @@\string#1\endcsname#1%
\expandafter\DeclareRobustCommand\csname relax\string#1\endcsname[1]{%
\csname @@\string#1\endcsname{##1}\wrtusdrf{##1}}%
\expandafter\let\expandafter#1\csname relax\string#1\endcsname
}
\refcheckize{\cref}
\refcheckize{\Cref}
}{}
\makeatother