\def\filedate{28 January 2014}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Document class for lecture/lab worksheets (particularly for fourth year).
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Version History
% v1.0 Initial version.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[2001/06/01]
\ProvidesClass{lectureassignment}%
[2016/03/08 INFO assignment style, v.1.0]
\LoadClassWithOptions{article}
% Load required packages.
\RequirePackage{geometry}
\RequirePackage{pifont}
\RequirePackage{parskip} % Space-separated rather than indented paragraphs.
% DO NOT REMOVE THE NEXT LINE! The lecturecommon package loads a bunch
% of other packages and sets up various counters, etc., several of which
% are used below.
\RequirePackage{lecturecommon}
% Some additional variables.
\newcommand{\AssignmentNumber}{UNDEFINED}
\newcommand{\SetAssignmentNumber}[1]{\renewcommand{\AssignmentNumber}{#1}}
% Package initialisation.
% geometry setup.
\geometry{a4paper,margin={1in,1in}}
% hyperref setup. We can't execute this immediately, because the
% macros referenced here haven't been set yet. All paper and chapter
% variables (where applicable) must therefore be initialised in the
% document preamble.
\AtBeginDocument{%
\hypersetup{%
pdftitle={\PaperCode\ Assignment \AssignmentNumber},%
pdfsubject={\PaperTitle},%
pdfauthor={Information Science, University of Otago},%
}%
}
\endinput