\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
% 
% % font definitions, try \usepackage{ae} instead of the following
% % three lines if you don't like this look
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
 
\usepackage[T1]{fontenc}
\usepackage{graphicx}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% Support for including code listings %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{listings}
\lstset{
  language=Java,
  basicstyle=\footnotesize\ttfamily,
  keywordstyle=\color{blue}\bfseries,
  commentstyle=\color[rgb]{0,0.5,0}\it,
  stringstyle=\color[rgb]{1,0,1},
  showstringspaces=false,
  numbers=none,
  numbers=left,   
  numberstyle=\tiny, 
%  stepnumber=1,
  numbersep=5pt,
  xleftmargin=10pt,
%  frame=L,
%  frameround=ffff,
%  framesep=6pt,
%  framexleftmargin=5mm,
%  rulesepcolor=\color[rgb]{0.8,0.8,0.8},
  captionpos=b,
  backgroundcolor=\color[RGB]{230,230,240}
}

% Define a larger style, used for e.g. inline listsings
\lstdefinestyle{large}{basicstyle = \normalsize\ttfamily\bfseries}


% Common title page bits
\date{%
  Thirteenth GATE Training Course\\%
  February 2021\\%
  \vspace{2em}%
  {\scriptsize \copyright{} 2021 The University of Sheffield\\%
    This material is licenced under the Creative Commons %
      Attribution-NonCommercial-ShareAlike Licence %
      (\url{http://creativecommons.org/licenses/by-nc-sa/3.0/})}%
}
