Riskless/whitepaper/Bath-CS-Dissertation.sty

84 lines
3.5 KiB
Plaintext
Raw Normal View History

% Modified by Alessio Guglielmi, 5 October 2020
%\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{Bath-CS-Dissertation}[2020/10/10 v1.1]
%%
%% Package includes to provide the basic style
%%
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx} % Permits import of various graphics formats
\usepackage{hyperref} % Provides hyperlinks to sections automatically
\usepackage{pdflscape} % Provides landscape mode for end code listings
\usepackage{multicol} % Provides ability to split output into columns
\usepackage{listings} % Provides styled code listings
\usepackage{parskip} % No paragraph indents
\usepackage{pdfpages} % Allows to include PDFs
\usepackage[nottoc,notlot,notlof]{tocbibind}
% Bibliography to appear in TOC
\usepackage{microtype} % Micro typography features
\usepackage[margin=1in]{geometry}
2023-04-06 19:42:24 +00:00
% Margins
2023-03-31 10:45:06 +00:00
%\usepackage{sfmath} % These two lines set the fonts to
%\renewcommand{\familydefault}{\sfdefault} % sans-serif
\usepackage{natbib} % Bibliography and citations
\newcommand*{\urlprefix}{Available from: }% in the Harvard-Bath style
\newcommand*{\urldateprefix}{Accessed } %
2023-04-20 09:13:03 +00:00
\bibliographystyle{plain} %
\pagestyle{headings}
%%
%% Definitions to provide layout in the dissertation title pages
%%
\newenvironment{spaced}[1]
{\begin{minipage}[c]{\textwidth}\vspace{#1}}
{\end{minipage}}
\newenvironment{centrespaced}[2]
{\begin{center}\begin{minipage}[c]{#1}\vspace{#2}}
{\end{minipage}\end{center}}
\newcommand{\consultation}[1]{%
\thispagestyle{empty}
\begin{centrespaced}{0.8\textwidth}{0.4\textheight}
\ifnum #1 = 0
This dissertation may be made available for consultation within the University Library and may be photocopied or lent to other libraries for the purposes of consultation.
\else
2023-04-06 19:42:24 +00:00
This dissertation may not be consulted, photocopied or lent to other libraries without the permission of the author for #1
\ifnum #1 = 1
year
\else
years
\fi
from the date of submission of the dissertation.
\fi
\end{centrespaced}
}
\newcommand{\declaration}[2]{
\thispagestyle{empty}
\begin{spaced}{4em}
\begin{center}
\LARGE\textbf{#1}
\end{center}
\end{spaced}
\begin{spaced}{3em}
\begin{center}
Submitted by: #2
\end{center}
\end{spaced}
\begin{centrespaced}{0.8\textwidth}{0.1\textheight}
\section*{Copyright}
Attention is drawn to the fact that copyright of this dissertation rests with its author. The Intellectual Property Rights of the products produced as part of the project belong to the author unless otherwise specified below, in accordance with the University of Bath's policy on intellectual property (see \url{https://www.bath.ac.uk/publications/university-ordinances/attachments/Ordinances_1_October_2020.pdf}).
This copy of the dissertation has been supplied on condition that anyone who consults it is understood to recognise that its copyright rests with its author and that no quotation from the dissertation and no information derived from it may be published without the prior written consent of the author.
\section*{Declaration}
This dissertation is submitted to the University of Bath in accordance with the requirements of the degree of Bachelor of Science in the Department of Computer Science. No portion of the work in this dissertation has been submitted in support of an application for any other degree or qualification of this or any other university or institution of learning. Except where specifically acknowledged, it is the work of the author.
\end{centrespaced}
}