← All templates

Cranfield University thesis (cranfieldthesis)

A cranfieldthesis style for Cranfield University theses on the book class, modelled on Cranfield's Word thesis template: title pages with school, centre, qualification, supervisor and copyright, abstract with keywords, contents and lists of figures, tables, algorithms and code, lists of abbreviations, symbols and publications, and sample chapters with cleveref examples, equations, a table and an algorithm.

Create an account to use this
Category
Thesis
Document class
book (book.cls) — ships with TeX Live
Workflow
Thesis / dissertation — submissions and revision rounds
Author
Brandon Corbett (cranfieldthesis)
Source
Brandon Corbett (cranfieldthesis)
Licence
book.cls: LaTeX Project Public License (installed with TeX). The sample text is Brandon Corbett (cranfieldthesis)'s, provided for authors preparing a submission.

These are the publisher’s own files. This project starts from Brandon Corbett (cranfieldthesis)’s package for this publication — their manuscript, their book.cls, their bibliography style — so what compiles here is what they would have given you.

Brandon Corbett (cranfieldthesis) serves this exact file to Cranfield University. Check Brandon Corbett (cranfieldthesis)’s author pages for the current instructions.

Where this differs from the publisher’s download.

  • Note: A community template: cranfieldthesis is written by Brandon Corbett, based on Daniel Auger's earlier unofficial Cranfield style; it is not issued or endorsed by Cranfield University. Check it against the current thesis regulations of your university.

What you get

  • Example/cranfieldthesis.sty · 11 KB
  • Example/example.tex — the file that is compiled · 5 KB
  • LICENSE · 1 KB

These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.

Source

Example/cranfieldthesis.sty · 11 KB
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load Up
\ProvidesPackage{cranfieldthesis}[26/01/2020 Brandon Corbett : Based on 2014/08/05 Daniel Auger's unofficial Cranfield thesis .sty file]
\typeout{Cranfield thesis style file.}
\typeout{This file was prepared by Brandon Corbett}
\typeout{It does not have `official' endorsement. But meets all of Cranfields guidelines.}
\typeout{The author is not able to offer support individual users.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Pre defined Packages
\RequirePackage{geometry,setspace,calc,mathptmx,etoolbox,helvet,fancyhdr,listings}
\usepackage[chapter]{algorithm}
\usepackage[font=footnotesize,labelfont=it,textfont=it,justification=centering]{subcaption}
\usepackage[font=footnotesize,labelfont=bf,textfont=it,justification=raggedright,singlelinecheck=false]{caption}
\usepackage[hidelinks]{hyperref}

\usepackage[autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
% \itemsep 0em 

\usepackage{cleveref}
\crefname{table}{Table}{Tables}
\Crefname{table}{Table}{Tables}
\crefname{figure}{Figure}{Figures}
\Crefname{figure}{Figure}{Figures}
\crefname{equation}{equation}{equations}
\Crefname{equation}{Equation}{Equations}
\Crefname{chapter}{Chapter}{Chapters}
\crefname{chapter}{Chapter}{Chapters}
\Crefname{section}{Section}{Sections}
\crefname{section}{Section}{Sections} 
\Crefname{appendix}{Appendix}{Appendicies}
\crefname{appendix}{Appendix}{Appendicies} 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Page Setup
% \setlength{\topmargin}{3cm-1in}
% \setlength{\paperheight}{297mm}
% \setlength{\paperwidth}{210mm}
% \setlength{\marginparsep}{0pt}
% \setlength{\marginparwidth}{0pt}

% \setlength{\textwidth}{\paperwidth-60mm}
% \setlength{\textheight}{\paperheight-60mm-\headheight-\headsep-\footskip}
\setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm}
\geometry{
 left = 30mm,
 right = 30mm,
 top = 30mm,
 bottom = 30mm
 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Headings Style Set Up

% \def\@makechapterhead#1{
% {\parindent \z@ \raggedright \normalfont
% 			\interlinepenalty\@M 
% 			\Large \bfseries \thechapter . \hspace*{10\p@} \uppercase{#1} 
% 			\vskip 20\p@ }}

% to matek \@chapapp uppercase \MakeUppercase{\@chapapp}
% If just Chapter Definition headings are desired for when new chapters are shown. Uncomment lines 64-70 and comment out lines 57-61
\setcounter{secnumdepth}{3}
\def\@makechapterhead#1{
{\parindent \z@ \raggedright \normalfont
				\interlinepenalty\@M 
				\LARGE \bfseries \@chapapp\space \space \thechapter
				\vspace{10\p@}\linebreak
				\noindent \Huge #1
				\vskip 40\p@ }}

\def\@makeschapterhead#1{
{\parindent \z@ \raggedright \normalfont
    			\interlinepenalty\@M
    			\Huge \bfseries #1 \par\nobreak
   				\vskip 20\p@ }}

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-2ex \@plus -1ex \@minus -.2ex}%
                                   {1ex \@plus.2ex}%
                                   {\normalfont\Large\bfseries}}% from \Large
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-2ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%
                                     {\normalfont\large\bfseries}}% from \large
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-2ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}																 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Header and Footer Set Up
\pagestyle{fancy} % enable fancy page style
% \renewcommand{\headrulewidth}{0pt} % comment if you want the rule
\fancyhf{} % clear header and footer
\renewcommand{\chaptermark}[1]{\markboth{\uppercase{ \@chapapp\space \space \thechapter.\space#1}}{}}
% \fancyhead[LE]{\textit{\leftmark}}
% \fancyhead[RO]{\textit{\rightmark}}
\fancyhead[LE]{\leftmark}
\fancyhead[RO]{\rightmark}
\fancyfoot[C]{\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Additional Fonts
% \usepackage[T1]{fontenc}
\newcommand\romanFont[1]{\renewcommand{\familydefault}{\rmdefault}}
\newcommand\arialFont[1]{\renewcommand{\familydefault}{\sfdefault}}

\renewcommand{\ttdefault}{pcr}
\newcommand\monoFont[1]{\renewcommand{\familydefault}{\ttdefault}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title Page Set Up
\newcommand\school[1]{\def\theschool{#1}}
\newcommand\supervisor[1]{\def\thesupervisor{#1}}
% \newcommand\course[1]{\def\thecourse{#1}}
\newcommand\centre[1]{\def\thecentre{#1}}
\newcommand\qualification[1]{\def\thequalification{#1}}
\newcommand\academicyear[1]{\def\theacademicyear{#1}}
\renewcommand\date[1]{\def\thedate{#1}}
\renewcommand\author[1]{\def\theauthor{#1}}
\renewcommand\title[1]{\def\thetitle{\textbf{#1}}}
\newcommand\copyrightyear[1]{\def\thecopyrightyear{#1}}
\newcommand\fulfilment[1]{\def\thefulfilment{#1}}

\fulfilment{This thesis is submitted in partial fulfilment of the requirements for the qualification of \thequalification.\par\vfill}

\author{$\backslash$author\{A.\ Student\}}
\centre{$\backslash$centre\{Automotive Engineering\}}
% \course{$\backslash$course\{Automotive Engineering\}}
\qualification{$\backslash$qualification\{Ph.D\}}
\academicyear{$\backslash$academicyear\{2013--2014\}}
\date{$\backslash$date\{August 2014\}}
\supervisor{$\backslash$supervisor\{Dr A.\ Supervisor\}}
\title{$\backslash$title\{My Thesis Title\}}
\copyrightyear{$\backslash$copyrightyear\{2014\}}
\school{\protect{$\backslash$school\{Defence and Security\}}}

\newcommand\maketitlepages{
\clearpage
{  \makeatletter
    \centering\Large\singlespacing%
    \pagestyle{empty}%
    \null\vfill
    CRANFIELD UNIVERSITY \par
    \vfill%
    \MakeUppercase{\theauthor}\par
    \vfill
    \MakeUppercase{\thetitle}\par
    \vfill%
    SCHOOL OF~\MakeUppercase{\theschool}\\%
    \thecentre\par%
    \vfill
    \thequalification\\
     Academic Year: \theacademicyear\par
   \vfill
   Supervisor: \thesupervisor\\%
   \thedate\par
    \vfill\null\cleardoublepage
    \centering\Large%
    \pagestyle{empty}
    \null\vfill
    CRANFIELD UNIVERSITY\par
    \vfill%
    SCHOOL OF~\MakeUppercase{\theschool}\\%
    \thecentre\par%
    \vfill
    \thequalification\par%
    \vfill
    Academic Year: \theacademicyear\par%
    \vfill
    \MakeUppercase{\theauthor}\par
    \vfill
    \thetitle\par
    \vfill
    Supervisor: \thesupervisor\\
    \thedate\par
     \vfill
     \thefulfilment
     \copyright\ Cranfield University \thecopyrightyear. All rights reserved.
     No part of this publication may be reproduced without the written
     permission of the copyright owner.
      \null\vfill
    \cleardoublepage
    \makeatother
}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Table of Contents
\setcounter{tocdepth}{2}
\newcommand\sstableofcontents{
	\cleardoublepage
	\singlespacing\tableofcontents\doublespacing
}

\newcommand\sslistoffigures{
	\cleardoublepage
	\addcontentsline{toc}{chapter}{\uppercase{List of Figures}}
	\singlespacing\listoffigures\doublespacing
}

\newcommand\sslistoftables{
	\cleardoublepage
	\addcontentsline{toc}{chapter}{\uppercase{List of Tables}}
	\singlespacing\listoftables\doublespacing
}

\newcommand\sslistofcode{
	\cleardoublepage
	\addcontentsline{toc}{chapter}{\uppercase{List of Programming Codes}}
	\singlespacing\lstlistoflistings\doublespacing
}

\newcommand\sslistofalgorithms{
	\cleardoublepage
	\addcontentsline{toc}{chapter}{\uppercase{List of Algorithms}}
	\singlespacing\listofalgorithms\doublespacing
}

% \usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}

\patchcmd{\l@chapter}{#1}{\uppercase{#1}}{}{}
\renewcommand\contentsname{Table of Contents}
\renewcommand\listfigurename{List of Figures}
\renewcommand\listtablename{List of Tables}
\renewcommand\listalgorithmname{List of Algorithms}

% \renewcommand{\lstlistingname}{Programming Code}% Listing -> Algorithm
% \renewcommand{\lstlistlistingname}{List of Programming Codes}% 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Abstract Set Up
\newenvironment{abstract}{
	\cleardoublepage
	\chapter*{\Huge Abstract}
	\markboth{ABSTRACT}{}
	\markright{ABSTRACT}{}
	\addcontentsline{toc}{chapter}{\uppercase{Abstract}}
}{}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Further Lists
\newenvironment{listofabbreviations}{
	\cleardoublepage
	\chapter*{\Huge Abbreviations}
	\markboth{ABBREVIATIONS}{}
	\markright{ABBREVIATIONS}{}
	\addcontentsline{toc}{chapter}{\uppercase{Abbreviations}}
}{}%
\newcommand{\abbrev}[2]{{\noindent\parbox[t]{1in-3ex}{#1}\rule{3ex}{0ex}\parbox[t]{0.99\textwidth-1in}{#2}\par}}

\newenvironment{listofpublications}{
	\cleardoublepage
	\chapter*{\Huge Publications}
	\markboth{PUBLICATIONS}{}
	\markright{PUBLICATIONS}{}
	\addcontentsline{toc}{chapter}{\uppercase{Publications}}
}{}%
\newcommand{\pub}[1]{\noindent {#1} \par \vspace{1em}}
\newcommand{\pubhead}[1]{\section*{#1}}

\newenvironment{listofsymbols}{
	\cleardoublepage
	\chapter*{\Huge Symbols, Units and Names}
	\markboth{SYMBOLS, UNITS and NAMES}{}
	\markright{SYMBOLS, UNITS and NAMES}{}
	\addcontentsline{toc}{chapter}{\uppercase{Symbols, Units and Names}}

	\noindent\rule{\textwidth}{1.5pt}
	\vspace{-1.1cm}

	\noindent
	\parbox[c][1em][c]{1in-3ex}{\textbf{Symbol}}
	\rule{3ex}{0ex} 
	\parbox[c][1em][c]{1in-3ex}{\textbf{Unit}} 
	\rule{3ex}{0ex}
	\parbox[c][1em][c]{0.99\textwidth-2in}{\textbf{Name}}\par

	\vspace{-0.5cm}
	\noindent\rule{\textwidth}{1.5pt}
}{}
\newcommand{\symb}[3]{
	\noindent
	\parbox[c][1em][c]{1in-3ex}{#1}
	\rule{3ex}{0ex} 
	\parbox[c][1em][c]{1in-3ex}{#2} 
	\rule{3ex}{0ex}
	\parbox[c][1em][c]{0.99\textwidth-2in}{#3}\par
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Acknowledgements
\newenvironment{acknowledgements}{
	\cleardoublepage
	\chapter*{\Huge Acknowledgements}
	\markboth{\uppercase{Acknowledgements}}{}
	\markright{\uppercase{Acknowledgements}}{}
	\addcontentsline{toc}{chapter}{\uppercase{Acknowledgements}}
}{}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Other
\DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
Example/example.tex — the file that is compiled · 5 KB
\documentclass[12pt]{book}

% \usepackage[backend=bibtex, sorting=none, style=authoryear-ibid, citestyle=authoryear]{biblatex}
% \addbibresource{BibTexCollection.bib}

\usepackage{blindtext}% Just used so we can generate some example text
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xfrac}
\usepackage{algorithmic}

% Place style file after other packages.
\usepackage{cranfieldthesis}

% Title Page Set Up
\title{Your paper}
\author{First Name \ Surname}
\date{January 2020}
\school{Defence and Security}
\centre{Centre for Electronic Warfare, Information and Cyber}
\qualification{Doctor of Philosophy}
\academicyear{2020}
\supervisor{Supervisor}
\copyrightyear{2020}
\fulfilment{}

% \romanFont
\arialFont
% \monoFont

\begin{document}

% Form Title Pages
\maketitlepages

% Sets page numbering to roman for all pages before main body.
\pagenumbering{Roman}

% Abstract and Keywords
\begin{abstract}
    \blindtext
    \section*{Keywords}
    Keyword 1; keyword 2; keyword 3.
\end{abstract}

% Table of Contents
\sstableofcontents

% List of Figures
\sslistoffigures

% List of Tables
\sslistoftables

% List of Algorithms
\sslistofalgorithms

% List of Code
\sslistofcode

% The list of abbreviations can't be automatically generated so you need to populate it yourself
\begin{listofabbreviations}
    \abbrev{EWIC}{Centre for Electronic Warfare, Information and Cyber}
\end{listofabbreviations}

\begin{listofsymbols}
	\symb{$A$}{$m$}{Antenna, cartesian coordinate (transceiver).}
\end{listofsymbols}

\begin{listofpublications}
  \pubhead{Conferences}
  \pub{Authors, \textbf{"Title"}, \textit{Conference Proceedings}, Vol.~ii, No.~ii, pp.~ii-ii, Year}
  
  \pubhead{Journals}
  \pub{Authors, \textbf{"Title"}, \textit{Journal} Vol.~ii, No~ii, pp.~ii-ii, Year}

  \pubhead{To Be Published}
  \pub{Authors, \textbf{"Title"}, 2019}
\end{listofpublications}

% Dont forget to set spacing - If not implemented spacing will be double.
\setstretch{1.25}

\chapter{First Chapter}\label{chap:one}

% Sets page numbering to standard arabic for all pages in main body.
\pagenumbering{arabic}

\section{First Section}
\blindtext

\subsection{First Sub Section}
\blindtext

\subsubsection{First Sub Sub Section}
\Blindtext

\chapter{Examples}\label{chap:one}
\section{Cleveref, Figures and Equations}

Use the cleveref package for referencing; e.g. reference chapter: \Cref{chap:one}

\begin{figure}[h!]
  \centering
  \rule{20pt}{20pt}
  \caption{My figure. Left algined text is set in the style file, so you can write lots of text and still have the figure caption look professional.}
  \label{fig:myfig1}
\end{figure}

\noindent Reference lowercase figure: \cref{fig:myfig1}

\noindent Reference uppercase figure: \Cref{fig:myfig1}

\begin{equation} 
  x = \sqrt{\frac{1}{M N}\sum_{i=0}^{N-1}\sum_{j=0}^{M - 1}(I_{ij} - \bar{I})^2} \label{eq:myEq}
\end{equation}

\noindent Reference lowercase equation: \cref{eq:myEq}

\noindent Reference uppercase equation: \Cref{eq:myEq}

\noindent Aligned equations:
\begin{align}
  y&=a_1x+b_1\label{eq:1}\\
  y&=a_2x+b_2\label{eq:2}\\
  y&=a_3x+b_3\label{eq:3}\\
  y&=a_4x+b_4\label{eq:4}
\end{align}

\noindent Cref range example of aligned equations: \crefrange{eq:1}{eq:4}
 
\noindent Mixed cref references example: \cref{eq:1,eq:3,eq:4,fig:myfig1}

\newpage
\section{Table Example}

\noindent Table example reference is shown here: \cref{tab:mytable}.

\begin{table}[h!]
  \centering
  \begin{tabular}{ccc}
  \hline
  \textbf{Col 1} & \textbf{Col 2} & \textbf{Col 3} \\ \hline
  1              & 4              & 7              \\ \hline
  2              & 5              & 8              \\ \hline
  3              & 6              & 9              \\ \hline
  \end{tabular}
  \caption{Here is my first table.}
  \label{tab:mytable}
\end{table}

\newpage
\section{Algorithm Example}

\noindent Algorithm example reference is shown here: - \cref{alg:algorithm1}. 

\begin{algorithm} % enter the algorithm environment
  \caption{Calculate $y = x^n$} % give the algorithm a caption
  \label{alg:algorithm1} % and a label for \ref{} commands later in the document
  \begin{algorithmic} % enter the algorithmic environment
      \REQUIRE $n \geq 0 \vee x \neq 0$
      \ENSURE $y = x^n$
      \STATE $y \Leftarrow 1$
      \IF{$n < 0$}
          \STATE $X \Leftarrow 1 / x$
          \STATE $N \Leftarrow -n$
      \ELSE
          \STATE $X \Leftarrow x$
          \STATE $N \Leftarrow n$
      \ENDIF
      \WHILE{$N \neq 0$}
          \IF{$N$ is even}
              \STATE $X \Leftarrow X \times X$
              \STATE $N \Leftarrow N / 2$
          \ELSE[$N$ is odd]
              \STATE $y \Leftarrow y \times X$
              \STATE $N \Leftarrow N - 1$
          \ENDIF
      \ENDWHILE
  \end{algorithmic}
\end{algorithm}

\chapter{New Chapter}

\section{Section}
\subsection{Sub Section}

% \printbibliography[heading=bibintoc,title=\uppercase{references}]

\appendix

\chapter{Appendix Chapter}

\section{Section}

\end{document}

LICENSE — binary, 1 KB

The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗