-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_tex.vishbkp150518
288 lines (208 loc) · 10.3 KB
/
main_tex.vishbkp150518
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Masters/Doctoral Thesis
% LaTeX Template
% Version 1.43 (17/5/14)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original authors:
% Steven Gunn
% http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/
% and
% Sunil Patel
% http://www.sunilpatel.co.uk/thesis-template/
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Note:
% Make sure to edit document variables in the Thesis.cls file
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[12pt, twoside]{Thesis} % The default font size, sides to print and document class
\usepackage[backend=biber,
style=authoryear,
url=false]{biblatex}
%For Square Brackets around citations
%http://tex.stackexchange.com/questions/16765/biblatex-author-year-square-brackets
\makeatletter
\newrobustcmd*{\parentexttrack}[1]{%
\begingroup
\blx@blxinit
\blx@setsfcodes
\blx@bibopenparen#1\blx@bibcloseparen
\endgroup}
\AtEveryCite{%
\let\parentext=\parentexttrack%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\makeatother
%------------------------------------------------------
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption} % For Subfigures
\usepackage{parskip} %Adds extra space between paragraphs
\usepackage{listings} %This is for the VBA code in the appendices
\usepackage{amsmath} %For aligning all equations on the equal to sign
\usepackage{pdfpages}
%----------------------------------------------------------------------------------------
% The following allows creation of columns of defined width
% See here for more details on this
%http://tex.stackexchange.com/questions/12703/how-to-create-fixed-width-table-columns-with-text-raggedright-centered-raggedlef
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%----------------------------------------------------------------------------------------
% The next few lines are for customising tables
\usepackage[justification=justified,singlelinecheck=false]{caption}
\usepackage{rotating} % for landscape tables use begin{sidewaystable}
%----------------------------------------------------------------------------------------
%Bibligraphy file from Zotero
\addbibresource{zot.bib}
%----------------------------------------------------------------------------------------
\graphicspath{Figures/} % Specifies the directory where pictures are stored
\hypersetup{urlcolor=black, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying
\title{\ttitle} % Defines the thesis title - don't touch this
%----------------------------------------------------------------------------------------
% BEGIN DOCUMENT -- BEGIN DOCUMENT -- BEGIN DOCUMENT -- BEGIN DOCUMENT -- BEGIN DOCUMENT
%----------------------------------------------------------------------------------------
\begin{document}
\frontmatter % Use roman page numbering style (i, ii, iii, iv...) for the pre-content pages
\setstretch{2.0} % Line spacing of 2.0 although I have set \doublespace set somewhere else
% Define the page headers using the FancyHdr package and set up for one-sided printing
\fancyhead{} % Clears all page headers and footers
\rhead{\thepage} % Sets the right side header to show the page number
\lhead{} % Clears the left side page header
\pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page
% PDF meta-data
\hypersetup{pdftitle={\ttitle}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
%----------------------------------------------------------------------------------------
% TITLE PAGE - Reformatted to Univ of Glasgow guidelines
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\HRule \\[0.4cm] % Horizontal line
{\huge \bfseries \ttitle}\\[0.4cm] % Thesis title
\HRule \\[1.5cm] % Horizontal line
\begin{minipage}{1\textwidth}
\begin{center} \large
\setstretch{1.3}
\textbf{by} \\
\vspace{1.1cm}
\textbf{\authornames}\\
\textbf{M.B.B.S., M.R.C.S., Dip.N.B.}\\
\vspace{1.1cm}
\normalsize
\textbf{SUBMITTED IN FULFILMENT OF THE REQUIREMENTS}\\
\textbf{FOR THE DEGREE OF DOCTOR OF MEDICINE}\\
\vspace{1.1cm}
\textbf{to}\\
\vspace{1.1cm}
\textbf{THE UNIVERSITY OF GLASGOW}\\
\vspace{1.1cm}
\textbf{BASED ON RESEARCH CONDUCTED IN THE} \\
\textbf{UNIVERSITY DEPARTMENT OF SURGERY,}\\
\textbf{GLASGOW ROYAL INFIRMARY}\\
\textbf{AUGUST 2015}\\
\vspace{1.1cm}
\textcopyright \textbf{Vishnu V Chandrabalan 2015}
\end{center}
\end{minipage}
\vfill
\end{center}
\end{titlepage}
%----------------------------------------------------------------------------------------
% QUOTATION PAGE
%----------------------------------------------------------------------------------------
\pagestyle{empty} % No headers or footers for the following pages
\dedicatory{Pebbles on the beach.}%Never again.
\clearpage % Start a new page
%----------------------------------------------------------------------------------------
% DEDICATION
%----------------------------------------------------------------------------------------
\pagestyle{empty} % Page style needs to be empty for this page
\dedicatory{Dedicated to A, I, A} % Dedication text
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
%----------------------------------------------------------------------------------------
% ABSTRACT PAGE
%----------------------------------------------------------------------------------------
\addtotoc{Abstract} % Add the "Abstract" page entry to the Contents
\abstract{\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
To be finalised...
}
%----------------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------
\pagestyle{fancy} % The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back
\lhead{\emph{Contents}} % Set the left side page header to "Contents"
\tableofcontents % Write out the Table of Contents
\lhead{\emph{List of Figures}} % Set the left side page header to "List of Figures"
\listoffigures % Write out the List of Figures
\lhead{\emph{List of Tables}} % Set the left side page header to "List of Tables"
\listoftables % Write out the List of Tables
\clearpage
%----------------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%----------------------------------------------------------------------------------------
\acknowledgements{\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
I would like to thank the following people, for their help, advice and encouragement:
Professor Donald C McMillan,\\
University Department of Surgery, Glasgow Royal Infirmary
Professor Paul Horgan,\\
University Department of Surgery, Glasgow Royal Infirmary
}
\clearpage % Start a new page
%----------------------------------------------------------------------------------------
% DECLARATION PAGE
% Your institution may give you a different text to place here
%----------------------------------------------------------------------------------------
\Declaration{
\addtocontents{toc}{\vspace{1em}} % Add a gap in the Contents, for aesthetics
I declare that the work presented in this thesis was carried out solely by me, as a clinical research fellow in the University Dept of Surgery, Royal Infirmary, Glasgow, except where indicated below:
Measurement of biochemical and haematological data was performed by the hospital laboratory service.
Statistical analysis was performed with the assistance of Prof Donald C McMillan, University Dept of Surgery, Royal Infirmary, Glasgow.
In addition, no work referred to in this thesis has been submitted in support of an application for another degree or qualification in this or any other university.
}
%----------------------------------------------------------------------------------------
% ABBREVIATIONS
%----------------------------------------------------------------------------------------
\input{Chapters/Abbreviations}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter % Begin numeric (1,2,3...) page numbering
\pagestyle{fancy} % Return the page headers back to the "fancy" style
% Include the chapters of the thesis as separate files from the Chapters folder
\input{Chapters/Chapter01}
\input{Chapters/Chapter02}
\input{Chapters/Chapter03}
\input{Chapters/chapter04}
\input{Chapters/Chapter05}
\input{Chapters/chapter06}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - APPENDICES
%----------------------------------------------------------------------------------------
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\appendix % Cue to tell LaTeX that the following 'chapters' are Appendices
% Include the appendices of the thesis as separate files from the Appendices folder
% Uncomment the lines as you write the Appendices
\input{Appendices/AppendixExcelMacros}
\input{Appendices/AppendixCPETRawData}
%\input{Appendices/AppendixC}
\addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
\backmatter
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
\label{Bibliography}
\lhead{\emph{Bibliography}} % Change the page header to say "Bibliography"
%\bibliographystyle{unsrtnat} % Use the "unsrtnat" BibTeX style for formatting the Bibliography
\printbibliography % The references (bibliography) information are stored in the file named "Bibliography.bib"
\end{document}