Skip to content

Repository files navigation

Thesis template

The template should comply with UHK requirements (2023 and 2025 versions) for bachelor's and diploma thesis.

Wayback Machine links:
2023: UHK requirements - spec
2025: UHK requirements - spec

You can use these files for your own thesis with some small or minimal changes. In the filters folder are some modified filters and some filters made by me. Chapters and pictures folder store all chapters and pictures respectively.

Running without docker

As of writing this readme pandoc and other tools already updated and broke things. This thesis was written with pandoc 3.1.2, pandoc-crossref 0.3.16.0 and pandoc-plot 1.7.0.

Apart from needing to install pandoc, texlive (it's recommended to install most of the packages), and lualatex. You will also need to install d2 for diagrams and some backend for it (I use tala) or use a different toolkit offered by pandoc-plot. Next, you will need to install pygments for code highlighting (pygments are used by minted) and plotly for plots or some other toolkit supported by pandoc-plot. You will also need to download missing fonts.

With docker

If you want to use this as is, without adding new things then you can use my docker image.

You just need to mount this folder with md files, template and other stuff to /home/user/thesis. If you don't run it with your build script it will drop you into bash (in this case don't forget to run it with the flags -it).

example usage - mount current directory and run conversion:

$ docker run -it --rm -v "$(pwd):/home/user/thesis" handz/pandoc-toolkit:3.1.2 "./create_thesis.sh"

Example usages

All the fixes and features were backported to this template, and they are written next to the projects only for info. Also examples go in order of creation (first to last).

  • My bachelor's thesis (generated pdf) - most of the files for this template come from here (you can also find the Dockerfile here)
  • Applied Game Theory projects (not versioned and not available) - improved create_thesis.sh script and Makefile
  • NoSQL project (generated pdf) - edited plot-config.yaml, updated pandoc-plot filter and fixed 4th and 5th level headings
  • My diploma thesis (generated pdf) - fixes caption and heading position for code listings, fixes link coloring, adds option for coloring links in list of figures, tables and listings, fixes inline code not breaking long words properly, adds filter for non-breaking spaces, adds paragraph breaking across pages

About

A Pandoc-based LaTeX thesis template tailored to the UHK (University of Hradec Králové) bachelor’s or diploma thesis requirements. Supports Docker and local builds, includes filters, chapters structure, and plot configuration.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages