edmaths package for LaTeX/reportThe current version is 0.96.
An easy way to implement the University’s typesetting
rules in LaTeX is provided by the package edmaths.
This is its documentation.
Simply download the file edmaths.sty
and store it either along with your .tex file(s) or in any directory
that is findable by LaTeX.
The edmaths package sets the page margins as required and defines commands
to create the correct cover page and standard declaration. It also loads the
amsmath, amsthm, amscd and amssymb
packages, which are required by almost all mathematical publications.
Line spacing settings are available that only affect the body text, but not footnotes and captions.
(This is thanks to the setspace package.)
The basic package has no special requirements. If you have certain additional packages installed, you can make use of some fancifying options (see below).
report document class (via
“\documentclass[...]{report}”) with options
10pt, 11pt, 12pt,oneside (default), twoside.\title{…}, \author{…} and date{…}.
\usepackage[<options>]{edmaths}” to your
preamble. (This must be after step 2 or you will get errors.)
Here <options> is a comma-separated list of the following keywords:
firstyear, secondyear,
thirdyear, fourthyear,
phd, masterph,
mastersc, y4project (for undergraduate projects), :\degreetext
manually before including this package,
e.g. “\newcommand{\degreetext}{Internal Report}”
single, onehalf or double: Set linespacing
of the body text to single, one-half and double spaced, respectively. See below for custom spacing.
fourier: This provides much improved typography
by activating the fourier font package (based on
Adobe’s Utopia family) along with the
cmap and microtype packages; all
those are required for this option.
hyperref: If the hyperref and
xcolor packages are installed, this creates PDF
output with clickable and all-black links. The packages are set
up with sane default options, but to modify the behaviour,
simply use the “\hypersetup” command;
see the hyperref documentation for details.
colour: If the previous option is used, this sets clickable links to have a
sane default colour (sepia for internal links, blue for external URLs).
fancyhdr: If the fancyhdr package is
installed, this creates nice page headers and footers (with
sane default settings); to modify this behaviour, simply use
the commands described in the fancyhdr
documentation.
Once edmaths is set up, use the
“\maketitle” command to create the
cover page, the “\declaration” command
to create the standard declaration, the
“\dedication{…}” command for a
dedication page, the
“\begin{abstract}…\end{abstract}”
environment for the abstract and the
“\tableofcontents” command for the
table of contents. To redefine the title of the abstract, use
“\renewcommand{\abstractname}{My New
Title}”.
When using the y4project option, the command “\yfourdeclaration{…}” can be used right after the
abstract to print a declaration at the bottom of that page; the argument of this
command is the name of the particular degree.
Apart from these basics, you might also consider the following suggestions. (You may have to search the internet to obtain the actual documentation of what is mentioned below.)
setspace package,
but you can use “{\singlespacing\tableofcontents}”
etc. (and likewise for \listoffigures and \listoftables).
\newcommand{\stretchfactor}{<x>}”
before calling this package, where <x> is the line spacing factor (1 = single spacing).
\flushbottom” right after
“\begin{document}” to obtain
vertically justified pages.
\setlength{\parskip}{0pt}” in the preamble to remove
any vertical rubber space between paragraphs, thus enforcing a strict grid layout. If you encounter
underful boxes, add \vfills where necessary, most likely after headings (i.e. use “\chapter(Introduction}\vfill” etc.).
\pagenumbering{roman}” and “\pagenumbering{arabic}”
to get different page numbers for the front matter.
\listoftables” and
“\listoffigures” to create a
reference of all table and figure
environments.
ccaption package to customise the way
that captions under figures and tables appear (e.g. if you
prefer a sans-serif font).
\addcontentsline” command to add otherwise unreferenced chapters (e.g. the table of contents itself, the list of figures, the list of tables or the index) to the table of contents.
fourier option, and
instead load fontenc, cmap,
microtype and your font package as described in
the font package’s documentation.
The following two examples demonstrate the usage of the
edmaths package, once in a basic fashion and once a
little beefed up.
None at the moment. Send an email to the author if you would like to raise an issue.