University of Liverpool Thesis Template designed for a EEE final project dissertation.
Based off TCD NPCAM Template by Luke Eugene Fehily and Prof. Mike Brady
\documentclass[a4paper,oneside,12pt]{book}
\newcommand{\thesistitle}{Latex Template} % Your thesis title
\newcommand{\degree}{BEng Electrical Engineering} % Your degree name, this is used in the title page and abstract
\newcommand{\typeofthesis}{Final Year Project} % dissertation, Final Year Project, report, etc.
\newcommand{\authorname}{Your Name} % Your name, this is used in the title page and PDF stuff
\newcommand{\authorid}{123456789} %Your Student ID can go here
\newcommand{\keywords}{this, that, more} % Keywords for your thesis (optional)
\newcommand{\school}{DEPARTMENT OF ELECTRICAL ENGINEERING AND ELECTRONICS} % Your school's name, this is used in the title page
\AtBeginDocument{
\hypersetup{pdftitle=\thesistitle} % Set the PDF's title to your title
\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
\hypersetup{pdfkeywords=\keywords} % Set the PDF's keywords to your keywords
\hypersetup{pdfsubject=\degree} % Set the PDF's keywords to your keywords
}
%% Language and font encodings
\usepackage{pdflscape}
\usepackage{listings}
\usepackage{caption,subcaption}
\usepackage{float}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum}
\usepackage{ragged2e} %allows for text alignment preferences
%% Bibliographical stuff
\usepackage[numbers,sort]{natbib}
%% Document size
\usepackage[a4paper,top=2.56cm,bottom=2.56cm,left=2.56cm,right=2.56cm, head = 16pt]{geometry}
\setlength{\marginparwidth}{2cm}
%% Useful packages
\usepackage{amsmath}
\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography
\usepackage[pdftex]{graphicx}
\usepackage[colorlinks=true, allcolors=black]{hyperref}
\usepackage[table,xcdraw]{xcolor}
\usepackage{caption}
\usepackage{tocbibind}% if no caption, no colon
%\usepackage{sfmath} %use sans-serif in the maths sections too
\usepackage[parfill]{parskip} % Begin paragraphs with an empty line rather than an indent
\usepackage{setspace} % to permit one-and-a-half or double spacing
\usepackage{enumerate} % fancy enumerations like (i) (ii) or (a) (b) and suchlike
\usepackage{booktabs} % To thicken table lines
\usepackage{fancyhdr}
\usepackage{tikz}
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} %defines \checkmark which can be useful
%Defines Style for embedded code, can be modified
\definecolor{tcdblue}{cmyk}{0.94, 0.38, 0, 0.27}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{backcolour},
commentstyle=\color{codegreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage}
\ifdefined\authorid
\chead{\it \authorname\ (\authorid)}
\else
\chead{\it \authorname}
\fi
\usepackage{mathpazo}
\renewcommand{\theequation}{\arabic{equation}}
%% Format Chapter headings appropriately
\usepackage{titlesec}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{tcdblue}{|}\hsp}{0pt}{\Huge\bfseries}
\title{\thesistitle}
\author{\authorname}
\frontmatter
\begin{document}
\input{title/title.tex}
\pagenumbering{roman}
\doublespacing
\newpage
\chapter{Abstract}
Summarise your project here \cite{solarfarm} \cite{lm7805spec}.
\newpage
\raggedright %\raggedright turns off justification and hypenation
\newpage \tableofcontents
\newpage \listoffigures
\newpage \listoftables
\newpage
\mainmatter
\setlength{\parindent}{3ex}
\input{introduction/introduction.tex}
\input{Experimental Methods/experiment}
\input{Results/results}
\input{conclusion/conclusion.tex}
\bibliographystyle{IEEEtran} %IEEE bibliography style by default
\bibliography{bibs/sample}
\appendix
\renewcommand{\thechapter}{A\arabic{chapter}}
\input{appendix/appendix.tex}
\end{document}