Dr Nicola Talbot | School of Computing Sciences | University of East Anglia
This is the documentation for cmpreprt.cls, a class file provided for writing reports in the style required by the School of Computing Sciences, University of East Anglia. All students should read the Report Writing Guide before writing a report.
The following commands may be used in the preamble. If they are placed
within the document environment, they must go before \maketitle
:
\ccode
\ccode{
code}
.\ccode{CMPS1A4Y}
\lecturer
\lecturer{
name}
\date
\date{
date}
\title
\title{
title}
\author
\author{
name(s)}
\regnum
\regnum{
registration number}
\regnum{01234567\\12345678\\23456789}
\numwords
\numwords{
number}
\numwords{1500}Some front-ends or editors have a build in word count function. For those who don't have this option, there are several ways of counting the number of words in your document.
If you are using a Makefile, you can use sed in combination with latexcount.pl to store the word count in a file, and then input it into your document. For example, suppose your document is called "myrep.tex", then your Makefile might look something like:
myrep.dvi : myrep.tex latexcount.pl myrep.tex | sed '/[0-9]\+ total/!d;s/\([0-9]\+\) total/\1/' > docwc.tex latex myrep(You may need to write "perl latexcount.pl" instead of simply "latexcount.pl" depending on your system.) The second line of the above creates a file called "docwc.tex" which simply contains the total number of words. This can then be read in by "myrep.tex":
\numwords{\input{docwc}}If you are using Windows, latexcount.pl is probably the best method if your front-end doesn't have a word count facility. (Although obviously you will need to have Perl installed.)
myrep.dvi : myrep.tex detex myrep.tex | wc -w | sed '/[0-9]\+ myrep.tex/!d;s/\([0-9]\+\) myrep.tex/\1/' > docwc.tex latex myrepAgain, your LaTeX source code will need to load in "docwc.tex":
\numwords{\input{docwc}}
myrep.dvi : myrep.tex wordcount.sh myrep.tex | \ sed '/[0-9]\+ words/!d;s/.\+ \([0-9]\+\) words\./\1/' \ > docwc.tex latex myrep(You may need to use bash wordcount.sh instead of wordcount.sh.) Again, your LaTeX source code will need to load in "docwc.tex":
\numwords{\input{docwc}}
\input{
filename}
.
Most front-ends (such as WinEdt and TeXnicCenter) have a spell checking tool, make sure you use it to check your document. For those not using a front-end, there is an application called "ispell" which will spell check an ASCII file. You will need to use the "-t" option to indicate that your file is a LaTeX file.
Other Commands
All commands that are defined in the article class file, may also
be used with this class file. There is an additional page style
called cmpreprt available, which is used by default. Remember
to use \maketitle to generate the title page.
Dr Nicola Talbot | School of Computing Sciences | University of East Anglia