Skip to content

Foggalong/edinburgh-math-latex

Repository files navigation

Edinburgh LaTeX

LaTeX styles files for School of Math, University of Edinburgh. This includes:

To use, download the files and store them either with your .tex file(s) or in any directory that's findable by LaTeX (e.g. $TEXINPUTS).

Report Stylesheet

When working on a report or thesis, an easy way to implement the University’s typesetting rules in LaTeX is provided by edmaths.sty. It 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. Through setspace, line spacing settings are available that only affect the body text and not footnotes and captions.

Requirements

The basic package has no special requirements, but if you have certain additional packages installed then you can use some fancifying options (see below).

Setup

  1. Use the report document class (via \documentclass[…]{report}) with options
    1. for font size: 10pt, 11pt, 12pt;
    2. for sidedness: oneside (default), twoside.
  2. Define \title{…}, \author{…}, and \date{…}.
  3. Add the line \usepackage[<options>]{edmaths} to your preamble.

The steps must be in order or you will get errors.

Here <options> is a comma-separated list of the following keywords:

Keyword Effect
One of firstyear, secondyear, thirdyear, fourthyear, phd, masterph, or mastersc for postgrad projects, or mmath or y4project for undergraduate projects. Prints the correct degree name or report type on the cover page. If you do not specify any of these, set \degreetext manually before including this package, e.g. \newcommand{\degreetext}{Internal Report}
single, onehalf, or double Set line spacing of the body text to single, one-half and double spaced, respectively. Check out setspace for custom spacing options.
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 hyperref 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.

Usage

Once edmaths is set up, use \maketitle to create the cover page, \declaration to create the standard declaration, \dedication{…} for a dedication page, the \begin{abstract}…\end{abstract} environment for the abstract, and \tableofcontents 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.

Beamer Theme

The file beamerthemedmaths.sty gives a modification of the Usher Institute's theme for LaTeX/beamer presentations which uses the standard university branding.

Colourful Variants

The default theme \usetheme{edmaths} gives is 'UoE Blue', #00325F, but there are other colourscheme variations:

  • \usetheme[colour=UoEcyan]{edmaths} for #CC5911,
  • \usetheme[colour=UoEgreen]{edmaths} for #9C9A00,
  • \usetheme[colour=UoEorange]{edmaths} for #457E81.

Examples

These files are bundled with an example report and presentation, as well as a bibliography file for use across both. There are also simple examples of a report and presentation in the project wiki, as well as some further formatting suggestions.

Presentation Notes

It's handy to be able to add slide notes which can be viewed while presenting. While there are various ways of doing this, PDFPC is a presenter console with multi-monitor support and an official package for adding such notes.

To use it simply add

\usepackage[overridenote=true]{pdfpc}

in the document header and enter slide notes as

\note{Some wonderful note.}

after each frame you want to annotate. These notes will then be included as comments with the compiled PDF. Note that the only formatting supported is using \\ to add newlines.

Authors

While Josh Fogg maintains these versions, they would not have been possible without the work of:

Issues can be flagged on GitHub by by email.

Licenses

The stylesheets edmaths.sty and beamerthemeedmaths.sty are provided under the LaTeX Project Public License v1.3c (LPPL). The examples example-presentation.tex and example-report.tex are provided under the BSD Zero Clause License (0BSD). The images edinburgh-logo and white-tied-in are registered trademarks; they are not to be used as part of derived or independent works without the permission of The University of Edinburgh. This does not affect use as part of compiled LaTeX documents using this stylesheet for the university.