Browse Source

Confirmed that physical page size is correct when printed

Had to require package luatex85 in the Lua thesis.tex file (see notes in README and cls file).
Re-organised the README to make it easier to get started.
Taha Ahmed 1 year ago
  1. 1
  2. 57


@ -166,6 +166,7 @@
% Define page size and tell dvips to use it by entering the \special command
% these two commands require that your document has \RequirePackage{luatex85} *before* the \documentclass line, otherwise you'll get "undefined control sequence" error


@ -1,23 +1,65 @@
## How to use this LaTeX class
Clone this repo into your `TEXMF_LOCAL` directory (I suggest `/usr/local/texlive/texmf-local/tex/latex/local`).
Refresh your `texhash` or similar, and then you should be able to load the following packages:
$ cd /usr/local/texlive/texmf-local/tex/latex
$ git clone local
(note that these sty files depend on `xcolor`, so make sure to add `\usepackage{xcolor}` too)
and the following classes:
You may have to refresh your `texhash` or similar, and then you should be set.
## The LuaLaTeX UU thesis class
This is my own rewrite of [the official (but unsupported) XeLaTeX class for PhD thesis at Uppsala university](
To use it, start your main tex file with:
[... the rest of your document ...]
You will have to compile your document using `lualatex`, like this:
$ lualatex thesis.tex
But you probably use a nice makefile or something for that :-)
## The XeLaTeX UU thesis class
I have made some slight alterations to this class compared to the original UU class. Use it like this:
`LuaUUThesis` is based on the `UUThesisTemplate` but uses LuaLaTeX instead of XeLaTeX.
Compile your document with `xelatex`.
## UU colour profiles (CMYK and RGB)
The CMYK and RGB colour definitions are entirely based on the [Uppsala university graphical
profile]( from around 2014.
profile]( from around 2014. They are probably outdated now.
They simply use `xcolor` commands to define a bunch of colour names.
If you want to use any of these colour names in your document, load the package in your document preamble (choose CMYK or RGB colourspace depending on how your document will be printed).
Please note that both `uuprintcolor*` packages depend on the `xcolor` package.
## Notes and references
> Note to self: your [Ansible luxor playbook]( depends on this repo.
> This repo lives on luxor at `/usr/local/texlive/texmf-local/tex/latex/local/`.
@ -28,4 +70,5 @@ path](
+ [How to have a local package override default package](
+ [How do I add a .sty file to my MacTeX/TeXShop
+ [Undefined control sequence error for LuaLaTeX, TeX.SE](
+ [Avhandlingsstöd Uppsala universitet, XeLaTeX mall](