What's new:
- modern packages (biblatex, cleveref, better fonts)
- less confusing directory structure
- slightly more useful examples (figures, diagrams, tables, code listings), structure hints, some goodies
- autobuilding of abstract PDF/A files from metadata
- multiple variants of the front page
- MFF with the new logo
- "traditional" UK variant
- Nature faculty & bioinformatics
- Czech localization with nicely named references
- Dockerized & CI build options
See the pre-built version for details
The repository contains valid configuration for both GitLab CI and the GitHub actions. No matter what GIT hosting you use, you can always download latest version of your thesis right from the artifacts!
- Type
make
, check that everything compiles. You should get athesis.pdf
that passes the PDF/A validation. If not, complain. - Fill in
metadata.tex
and allxmpdata
files. - Look at the example code (there are several hints), remember it, erase it.
- Write the thesis.
- Submit and defend the thesis.
LaTeX installation may be hard (especially on various substandard operating systems). On most BSD and GNU-style Linux distributions, it should be sufficient to install some random texlive-*
packages (and add more if non-standard TeX functionality is required); see e.g. a complete list for Debian.
- For a single-user distribution on unix, use the provided installation script.
- On windows, use MiKTeX.
- On Mac, use any suitable variant of MacTeX.
Optionally, you can use a Docker container with TeX. You can either build the image yourself from the supplied Dockerfile
:
cd docker
docker build -t betterthesis/latex .
...or get some pre-built one (which is usually much faster: )
docker pull aergus/latex
After that, you should be able to compile the thesis using this command (change the container name to betterthesis/latex
in case you built it yourself):
docker run -u $UID -ti --rm -v $PWD:/th -w /th aergus/latex make
With a bit of luck, you should get a valid PDF/A right out of LaTeX.
A PDF/A validator that can point out exact problems is available here: https://github.com/mff-cuni-cz/cuni-thesis-validator
Common PDF/A problems include:
- imported PDF pictures that are not PDF/A.
- the used font does not support PDF/A (including the fonts in imported pictures). See https://martin.hoppenheit.info/blog/2018/pdfa-validation-and-inconsistent-glyph-width-information/ for a very ugly case.
Solutions:
- use
pdfa.sh
to convert the imported picture PDFs to PDF/A-compatible form the "hard way" (although this does not retain the PDF/A metadata mark, see comments in the script) - read the commentary by Martin Mareš (that describes most of the common problems) here: https://mj.ucw.cz/vyuka/bc/pdfaq.html
- as a last resort if everything other fails, use
pdfa.sh
for the wholethesis.pdf
Pull requests welcome.
Parts of the code (esp. the title page) are based on the original template (available from the faculty website) by Martin Mareš, Arnošt Komárek, and Michal Kulich. (Thanks!)
University and faculty logos are a property of the respective universities and faculties.
Everything else in this repository is released into the public domain, not encumbered by any kind of copyright at all.