Go to file
Woromi ddfea3e23c
Update title.tex
generalized Czech supervisor label for other thesis types
2023-07-03 11:54:17 +02:00
.github/workflows update checkout action to kill the node warning 2023-04-18 08:45:37 +02:00
docker dockerfile 2020-06-22 12:51:31 +02:00
img add the nature faculty variant, redo the title typesetting 2021-06-08 13:16:54 +02:00
.gitignore update .gitignore to ignore latexmk stuff 2021-04-06 08:29:01 +02:00
.gitlab-ci.yml switch to mff-cuni-cz validator image 2022-05-09 18:15:51 +02:00
abstract-cz.tex Merge pull request #6 from jjonescz/abstract-page-nums 2022-05-08 20:09:20 +02:00
abstract-cz.xmpdata v1 2020-05-10 19:57:36 +02:00
abstract-en.tex disable page numbers on all abstract pages 2022-05-08 12:56:06 +02:00
abstract-en.xmpdata v1 2020-05-10 19:57:36 +02:00
bibliography.tex v1 2020-05-10 19:57:36 +02:00
ch1.tex improve ch1+2 2023-04-13 22:42:44 +02:00
ch2.tex colors 2023-04-14 15:49:50 +02:00
ch3.tex avoid double completely 2023-05-14 10:07:33 +02:00
conclusion.tex improve generated abstracts, add a few biblatex hints 2020-07-29 21:51:14 +02:00
howto.tex more c++ 2020-05-10 20:10:26 +02:00
intro.tex v1 2020-05-10 19:57:36 +02:00
macros.tex cleanup 2023-04-13 21:32:28 +02:00
Makefile Makefile: PDFs are no longer used 2022-05-08 13:33:41 +02:00
metadata.tex add the nature faculty variant, redo the title typesetting 2021-06-08 13:16:54 +02:00
pdfa.sh add a note to pdfa.sh 2021-07-20 12:20:22 +02:00
README.md improve some bits of the readme, split sentences for git editing 2023-04-18 08:28:16 +02:00
refs.bib what the L 2021-04-21 17:53:32 +02:00
thesis.tex cleanup 2023-04-13 21:32:28 +02:00
thesis.xmpdata v1 2020-05-10 19:57:36 +02:00
title.tex Update title.tex 2023-07-03 11:54:17 +02:00
todos.tex forgotten file 2020-05-10 20:03:23 +02:00

A slightly improved thesis template

What's new:

  • modern packages (biblatex, cleveref, better fonts)
  • less confusing directory structure
  • slightly more useful examples (figures, diagrams, tables, code listings), structure&writing hints, some goodies
  • autobuilding of PDF/A abstracts directly from metadata
  • multiple variants of the front page
    • MFF with the new logo
    • "traditional" UK variant
    • Nature faculty & bioinformatics
  • Czech localization with properly translated references
  • Automated docker-based & CI build options

See the pre-built version for details.

CI configuration

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! The GitHub version additionally pushes the files to GitHub pages to enabler easier sharing (incl. the link above); you can disable that by removing .github/workflow/pages.yml.

How-to

  1. Type make, check that everything compiles. You should get a thesis.pdf that passes the PDF/A validation. If not, complain.
  2. Fill in metadata.tex and all xmpdata files.
  3. Look at the example code (there is plenty of advice to follow), then erase it.
  4. Write the thesis.
  5. Submit and defend the thesis.

Installing LaTeX

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.

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: image size )

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

PDF/A

With a bit of luck, you should get a valid PDF/A right out of LaTeX. If you are using GitHub actions or GitLab CI, the CI will run the PDF/A verifier automatically for you.

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:

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 whole thesis.pdf

Ideas/improvements/more examples?

Pull requests welcome.

License?

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. Small and useful fixes were coded or pointed out by Vít Kabele, Jan Joneš, Gabriela Suchopárová, Evžen Wybitul, and many others. (Many thanks to everyone involved!)

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.