Skip to content

Commit

Permalink
added LaTeX files, copied from overleaf.
Browse files Browse the repository at this point in the history
Version 1.0
  • Loading branch information
barona586 authored Aug 21, 2020
1 parent 1a3a655 commit 6e760fe
Show file tree
Hide file tree
Showing 15 changed files with 713 additions and 0 deletions.
13 changes: 13 additions & 0 deletions abstract.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
\begin{center}
\textbf{\thesistitle}

\authorname, \authordegrees.

School of Computing and Communications, Lancaster University

A thesis submitted for the degree of \textit{Doctor of Philosophy}. \monthyeardate\today
\end{center}

\section*{\centering Abstract}

\textbf{This is the beginning of the abstract that according to the regulations should not be any longer than 300 words. See point 14 in appendix 2 of the regulations \url{https://bit.ly/2Q4H43I}.}
3 changes: 3 additions & 0 deletions acknowledgements.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
\section*{\centering Acknowledgements}

Acknowledgements you may want to make. \textbf{(this is not required when submitting your thesis before your viva and you can add a dedication in your final thesis after your viva if you wish.)}
4 changes: 4 additions & 0 deletions appendix/introduction.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\section{Additional Tables}
Some extra tables \ref{table:appendix_introduction} that should go in the appendix.

\input{tables/appendix/introduction/appendix_table}
8 changes: 8 additions & 0 deletions chapters/conclusion.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\section{Introduction}
Example of a figure \ref{fig:conclusion}:
\begin{figure}[!h]
\centering
\includegraphics[scale=0.8]{figures/conclusion/ucrel_logo.png}
\caption{UCREL logo.}
\label{fig:conclusion}
\end{figure}
6 changes: 6 additions & 0 deletions chapters/introduction.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\section{Section Name}
Start of your introduction, with a reference to the relevant appendix \ref{appendix_introduction}. Example of different citation styles \citep{moore-rayson-2018-bringing}, and \citet{moore-rayson-2018-bringing}. Example of a table \ref{table:introduction}:

\input{tables/introduction/intro_table}

\lipsum[2-10]
1 change: 1 addition & 0 deletions chapters/middle.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Middle.
4 changes: 4 additions & 0 deletions declaration.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\section*{\centering Declaration}
I declare that the work presented in this thesis is, to the best of my knowledge and belief, original and my own work. The material has not been submitted, either in whole or in part, for a degree at this, or any other university. This thesis does not exceed the maximum permitted word length of 80,000 words including appendices and footnotes, but excluding the bibliography. A rough estimate of the word count is: \quickwordcount{main}\vspace{48pt}

\noindent \authorname
Binary file added figures/conclusion/ucrel_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
357 changes: 357 additions & 0 deletions figures/lu-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
185 changes: 185 additions & 0 deletions main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
%% PhD thesis template
%% School of Computing and Communications, Lancaster University,

%% Copyright 2020 Andrew Moore and Alistair Baron
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Alistair Baron
%
% This work consists of the files main.tex, and the other example tex files referenced within.


%
% Heavily based on the formatting and content of Alistair Baron's thesis https://eprints.lancs.ac.uk/id/eprint/84887/1/2011Baronphd.pdf, Kelly Widdicks's thesis https://eprints.lancs.ac.uk/id/eprint/143606/1/2019widdicksphd.pdf, and Andrew Moore's thesis (not yet publicly available but when is will be found here on his google scholar https://scholar.google.co.uk/citations?user=mJRN_SIAAAAJ&hl=en). The thesis is also somewhat based on the Cambridge thesis template: https://github.com/kks32/phd-thesis-template
%
% This was created by Andrew Moore and Alistair Baron with help from Paul Rayson, and Edward Dearden.
%
% Conforms with Lancaster University MANUAL OF ACADEMIC REGULATIONS AND PROCEDURES (MARP) 2019-20 for POSTGRADUATE RESEARCH. This can be found here: https://www.lancaster.ac.uk/media/lancaster-university/content-assets/documents/student-based-services/asq/marp/PGR-Regs.pdf
% For layout information the most relevant pages of that document are pages 30 and 31 (Appendix 2)

% Please check that your thesis complies with the current regulations. If not available from the above link, details will be on the PGR Moodle space (https://modules.lancaster.ac.uk/course/view.php?id=22985)

% If you have any useful updates for this template, which you think will benefit others, please make these available via github (https://github.com/InfoLab21/scc-thesis-template).


\documentclass[oneside,12pt]{report}
\usepackage[paper=a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{svg}
\usepackage{hyperref}
\hypersetup{
colorlinks=false,
breaklinks=true
}
% All sections and sub sections have to be labelled in the table of contents and thesis. This does this down to the level of subsubsection.
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}

%discourages hyphenated words at end of lines
\hyphenpenalty=5000
\tolerance=1000


% biblography formatting
% NOTE: At the moment both URL and DOI will be displayed, if you have a bib entry that has both URL and DOI please remove the URL so that only one link is displayed, in this case to the DOI.
\usepackage[style=authoryear,backend=biber,url=true, doi=true, sorting=nyt, natbib=true]{biblatex}
\usepackage{bibentry}
\addbibresource{ref.bib}

% Appendix formatting
\usepackage[title, titletoc]{appendix}
\renewcommand{\appendixpagename}{Appendix}


% for the title page
\usepackage{datetime}
\newdateformat{monthyeardate}{%
\monthname[\THEMONTH], \THEYEAR}
% For the declaration
% NOTE IF NOT USING OVERLEAF PLEASE REMOVE THIS AND ADD THE WORD COUNT MANUALLY. The software overleaf uses is this: https://app.uio.no/ifi/texcount/
% This has come from overleaf and has been slightly adapted. This counts everything including footnotes and captions I believe and the appendix, but not bibliography.
% https://www.overleaf.com/learn/how-to/Is_there_a_way_to_run_a_word_count_that_doesn%27t_include_LaTeX_commands%3F
\newcommand{\quickwordcount}[1]{%
\immediate\write18{texcount -0 -sum -merge #1.tex > #1-words.sum }%
\input{#1-words.sum}%
}
%
% TO BE FILLED IN
%
\newcommand\thesistitle{Title of your thesis}
\newcommand\authorname{First (Middle) Last name} % Full name
\newcommand\authordegrees{BSc (Hons), MRes} % This does not have to be filled in, but the regulations state that you should include any degrees you have.

\newgeometry{left=38mm, right=25mm, top=25mm, bottom=25mm, includeheadfoot} % This has to come before the header and footer information

% HEADER AND FOOTER STYLE
% https://en.wikibooks.org/wiki/LaTeX/Customizing_Page_Headers_and_Footers
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
% For preamble
\fancypagestyle{preamble}{ %
\fancyhf{} % remove everything
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{preamble}

% For the main pages
\fancypagestyle{main}{
\fancyhf{}
%\fancyhead[R]{\thepage}
\fancyfoot[C]{\thepage}
\fancyhead[L]{\textit{ \nouppercase{\leftmark}} }
\fancyhead[R]{\textit{ \nouppercase{\rightmark}} }
\renewcommand{\headrulewidth}{1pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
}

% For title and chapter pages
\fancypagestyle{plain}{ %
\fancyhf{} % remove everything
\fancyfoot[C]{\thepage} %should keep page number
\renewcommand{\headrulewidth}{0pt} % remove lines as well
\renewcommand{\footrulewidth}{0pt}
}

\usepackage{lipsum} % just to add random text as an example

%
%


\begin{document}
\pagenumbering{roman}

\input{title_page}

I dedicate this thesis to someone. \textbf{(this is not required when submitting your thesis before your viva and you can add a dedication in your final thesis after your viva if you wish.)}

\clearpage

\input{declaration}

\clearpage

\input{abstract}

\clearpage

\input{publications}

\clearpage

\input{acknowledgements}

\clearpage

\tableofcontents

\clearpage

\listoffigures

\clearpage

\listoftables

\clearpage
\pagestyle{main}
\pagenumbering{arabic}

\chapter{Introduction}
\input{chapters/introduction}



\chapter{Middle chapters}
\input{chapters/middle}

\chapter{Conclusions}
\input{chapters/conclusion}

\begin{appendices}

\chapter{Introduction}
\label{appendix_introduction}
\input{appendix/introduction}

\end{appendices}

\clearpage % Required to make sure the references table of contents page number is correct.
\printbibliography[heading=bibintoc,title=References]

\end{document}

20 changes: 20 additions & 0 deletions publications.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
\section*{\centering Publications}
(This is an example taken from Andrew Moore's thesis, adapt this to suit your own thesis.)

\textbf{NOTE: If you have done joint research e.g. whereby you are not the first author and you feel you need to state the contributions you have made in those papers that relate to your thesis then create another section like `Contribution Statements' whereby you state your contributions in those papers that relate to the thesis. See Kelly Widdicks thesis (page 11) for a great example. If you do create a `Contribution Statements' section that you may want to revise the your `Declaration', of which Kelly Widdicks declaration is a good example. Kelly's thesis link \url{https://eprints.lancs.ac.uk/id/eprint/143606/1/2019widdicksphd.pdf}. Also for more details on the regulations by the university on declaring contribution statements see point 18 in appendix 2 of \url{https://bit.ly/2Q4H43I}}

\textbf{ADDITIONAL NOTE: If you have any papers under review perhaps speak with your supervisor before adding them here for anonymity reasons.}\vspace{1cm}

Only one publication, shown below, has been created directly from the thesis, from which large portions of this published work is used within chapter 3:\bigskip

\noindent \fullcite{moore-rayson-2018-bringing}\vspace{24pt}

\noindent The following publication have been generated while developing this thesis, and to an extent has guided the thesis into what it has become:\bigskip

\noindent \fullcite{moss-etal-2019-fiesta}\bigskip

\noindent \fullcite{moore-rayson-2017-lancaster}\bigskip

\noindent \fullcite{el-haj-etal-2016-learning}\bigskip

\noindent \fullcite{moore2016domain}
63 changes: 63 additions & 0 deletions ref.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@inproceedings{moore-rayson-2018-bringing,
title = "Bringing replication and reproduction together with generalisability in {NLP}: Three reproduction studies for Target Dependent Sentiment Analysis",
author = "Moore, Andrew and
Rayson, Paul",
booktitle = "Proceedings of the 27th International Conference on Computational Linguistics",
month = aug,
year = "2018",
address = "Santa Fe, New Mexico, USA",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/C18-1097",
pages = "1132--1144",
}
@inproceedings{el-haj-etal-2016-learning,
title = "Learning Tone and Attribution for Financial Text Mining",
author = "El-Haj, Mahmoud and
Rayson, Paul and
Young, Steve and
Moore, Andrew and
Walker, Martin and
Schleicher, Thomas and
Athanasakou, Vasiliki",
booktitle = "Proceedings of the Tenth International Conference on Language Resources and Evaluation ({LREC}'16)",
month = may,
year = "2016",
address = "Portoro{\v{z}}, Slovenia",
publisher = "European Language Resources Association (ELRA)",
url = "https://www.aclweb.org/anthology/L16-1287",
pages = "1820--1825",
}
@inproceedings{moore-rayson-2017-lancaster,
title = "Lancaster A at {S}em{E}val-2017 Task 5: Evaluation metrics matter: predicting sentiment from financial news headlines",
author = "Moore, Andrew and
Rayson, Paul",
booktitle = "Proceedings of the 11th International Workshop on Semantic Evaluation ({S}em{E}val-2017)",
month = aug,
year = "2017",
address = "Vancouver, Canada",
publisher = "Association for Computational Linguistics",
doi = "10.18653/v1/S17-2095",
pages = "581--585",
}
@inproceedings{moore2016domain,
title={Domain adaptation using stock market prices to refine sentiment dictionaries},
author={Moore, Andrew and Rayson, Paul Edward and Young, Steven Eric},
year={2016},
booktitle={Proceedings of the Emotion and Sentiment Analysis Workshop LREC 2016, Portoro{\v{z}}, Slovenia},
pages={63--66},
url={http://gsi.dit.upm.es/esa2016/Proceedings-ESA2016.pdf}
}
@inproceedings{moss-etal-2019-fiesta,
title = "{FIESTA}: Fast {I}d{E}ntification of State-of-The-Art models using adaptive bandit algorithms",
author = "Moss, Henry and
Moore, Andrew and
Leslie, David and
Rayson, Paul",
booktitle = "Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics",
month = jul,
year = "2019",
address = "Florence, Italy",
publisher = "Association for Computational Linguistics",
doi = "10.18653/v1/P19-1281",
pages = "2920--2930",
}
9 changes: 9 additions & 0 deletions tables/appendix/introduction/appendix_table.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\begin{table}[!h]
\centering
\begin{tabular}{c|c}
5 & 6 \\
7 & 8
\end{tabular}
\caption{Caption}
\label{table:appendix_introduction}
\end{table}
9 changes: 9 additions & 0 deletions tables/introduction/intro_table.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\begin{table}[!h]
\centering
\begin{tabular}{c|c}
1 & 2 \\
3 & 4
\end{tabular}
\caption{A table}
\label{table:introduction}
\end{table}
31 changes: 31 additions & 0 deletions title_page.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


\begin{titlepage}

\center

\includesvg[scale=0.6]{figures/lu-logo.svg}\vspace{1cm} % This logo was taken from the main Lancaster University website https://www.lancaster.ac.uk/ The same logo can be found, that is not publicly available, in EPS format: https://www.lancaster.ac.uk/current-staff/communications-and-marketing/marketing/resources/#d.en.417655

\huge \textbf{\thesistitle}

\vspace{2cm}

\Large \textbf{\authorname, \authordegrees}

School of Computing and Communications

Lancaster University

\vfill

\large

A thesis submitted for the degree of

\textit{Doctor of Philosophy}

\vspace{0.5cm}

\monthyeardate\today

\end{titlepage}

0 comments on commit 6e760fe

Please sign in to comment.