%% CHANGE THIS ACCORDINGLY:
\newcommand{\authorFullName}{First name Surname}
\newcommand{\authorUCO}{UCO}
\newcommand{\authorFieldOfStudy}{Field of study}
%% AND NAME THE PROJECT UCO-surname-firstname-STAT-CS-YEAR (with or without dashes)
\newcommand{\courseName}{MV013 Statistics for Computer Science}
\documentclass[12pt, oneside]{report}
\usepackage[margin=0.85in]{geometry}
\linespread{1}
\usepackage{xcolor}
\usepackage[colorlinks=false, linkbordercolor=white, citebordercolor=white,
filebordercolor=white, urlbordercolor=white]{hyperref}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.4pt}
\fancyhead{}
\fancyhead[L]{\courseName\ -- Assignment}
\fancyhead[R]{\authorFullName}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\usepackage{titlesec}
\titlespacing{\chapter}{0pt}{*4}{*2.5}
\titleformat{\chapter}{\normalfont\huge\bf}{\thechapter}{20pt}{\huge\bf}
% definition of an environment
\usepackage{listings}
\definecolor{dgray}{gray}{0.35} % colour of R comments
\definecolor{lgray}{gray}{0.95} % background colour of R-code
\lstset{ % setting appearance of R-code
language=R, % setting language R
basicstyle=\ttfamily\small, % font and size of R-code
backgroundcolor=\color{lgray}, % background colour of R-code
commentstyle=\ttfamily\small\itshape\color{dgray}, % colour of R comments
showstringspaces=false, % forbidding the highlighting of spaces
numbers=left, % numbering on the left
numberstyle=\ttfamily\small, % font and size of numbering
stepnumber=1, % numbering with step 1
firstnumber=last, % cumulative numbering of rows in consecutive uses of lstlisting environment
breaklines=T} % automatic line breaks of code at the end of a line
\begin{document}
\input{stka-title-page-template-eng}
\addtocontents{toc}{~\hfill\textbf{Page}\par}
\input{stka-text-template-eng} % inputs file with main text
\end{document}