forked from sdstrowes/Glasgow-Thesis-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.tex
138 lines (109 loc) · 3.84 KB
/
header.tex
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
\documentclass[oneside,hidelinks]{glasgowthesis}
% ^^ draft shows overfilled boxes.
% ^^ replace "oneside" with "twoside" to set the gutter correctly for
% two-sided printing.
% ^^ add "nogutter" option for digital copy (without binding offsets),
% if printed copy is twoside, use [twoside,nogutter] for digital copy.
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{url}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{mcaption}
\usepackage[font=scriptsize]{subfig}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bookmark}
%\usepackage{natbib}
\usepackage{color}
\usepackage{changebar}
\usepackage{soul}
\hyphenation{Internet analysis analyse}
\newcommand\TLSins[1]{
\cbstart{}
{
\color{blue}
\ul{#1}
}
\cbend{}
}
\newcommand\TLSdel[1]{
\cbdelete{}
{
\color{red}
\st{#1}
}
}
\usepackage{fancyhdr} % Fancy Header and Footer
\pagestyle{fancy} % Sets fancy header and footer
\fancyfoot{} % Delete current footer settings
\renewcommand{\headrulewidth}{0.2pt}
\fancyhead[LE,RO]{\bfseries\thepage} % Page number (boldface): left-even, right-odd
%\fancyhead[RE]{\bfseries\nouppercase{\leftmark}} % Chapter in the right on even pages
\fancyhead[LO]{\bfseries\nouppercase{\rightmark}} % Section in the left on odd pages
\setlength{\headheight}{15pt} % adjust for fancyhdr warning
% \pagestyle{fancy} % clear all header and footer fields
% \fancyhf{}
% \fancyhead[L]{\slshape \rightmark} % put section heading left
% \fancyhead[R]{\thepage} % put page number right
% % redefine "plain" to fix page numbering (on first page of chapters)
\fancypagestyle{plain} { %
\fancyhf{} % clear all header and footer fields
\fancyhead[L]{\slshape \rightmark} % no section heading for these pages
\fancyhead[R]{\bfseries\thepage}
\renewcommand{\headrulewidth}{0pt} % no headrule for these pages
\renewcommand{\footrulewidth}{0pt}
}
\newenvironment{codelisting}
{\begin{list}{}{\setlength{\leftmargin}{1em}}\item\scriptsize\bfseries}
{\end{list}}
\newcommand{\note}[1]{\emph{\textbf{Note:}[#1]}}
% =============================================================================
\begin{document}
\pagestyle{empty}
\pagenumbering{gobble}
\title{A Really Awesome University Guideline-Compliant Thesis}
\author{Your Name}
\date{Month Year}
\maketitle
\cleardoublepage
\input{"abstract.tex"}
%\addcontentsline{toc}{chapter}{Abstract}
\newpage
\input{"acknowledgements.tex"}
%\addcontentsline{toc}{chapter}{Acknowledgments}
\cleardoublepage
\vspace*{1.75in}
\begin{flushright} Dedication. (Is what you need.)\end{flushright}
%\pagenumbering{roman}
%\setcounter{page}{1}
% -----------------------------------------------------------------------------
%\newpage
%\vspace*{1.75in}
%\begin{center} {\bf Education Use Consent}\end{center}
%\noindent I hereby give my permission for this project to be shown to other
%University of Glasgow students and to be distributed in an electronic
%format. {\bf Please note that you are under no obligation to sign this
% declaration, but doing so would help future students. }
%\begin{description}
%\item [Your Name]\ \\ \ \\ \ \\
%\HRule
%\end{description}
%\addcontentsline{toc}{chapter}{Education Use Consent}
% -----------------------------------------------------------------------------
%\newpage
% -----------------------------------------------------------------------------
% -----------------------------------------------------------------------------
%\newpage
%\thispagestyle{empty}
\tableofcontents
\listoftables
\listoffigures
% -----------------------------------------------------------------------------
\cleardoublepage
% Reset page numbering
\pagestyle{fancy}
\pagenumbering{arabic}
\setcounter{page}{1}
% Number chapter boomarks
\bookmarksetup{numbered}