Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

LaTeX Thesis Template

Updated: 11 May 2026

In this section we briefly outline the export to pdf using LaTeX. A more elaborate description is provided here.

For the starter kit we created a LaTeX template, an export_latex.yml file in which you can set the main settings and a separate github action that will build the pdf and include it on the website. It needs a manual trigger as installing the LaTeX packages takes time and is therefore not always desired in the build process of your project.

PLACEHOLDER FIGURE OF TEMPLATE

Use this template

To use this template, a minimalistic version of an export

downloads:
    - id: output-pdf

exports:
    - format: pdf 
        output: exports/output_file.pdf
        template: https://github.com/TUD-JB-OS/latex_template.git
        id: output-pdf
Configuration options

An example export.yml file can be found here.

OptionTypeDefaultDescription
linkstring-Link to the article online as a footnote on the first page
showTOCbooleantrueWhether to show the table of contents after the title page
tocDepthnumber2=The depth of the table of contents (e.g. 2 for sections and subsections)
coverfile-Path to an optional image for the title page (e.g. “images/front.png”)
cover_widthstring0.9\\linewidthWidth of the cover image (e.g. “8cm” for 8 centimeters, “0.9\linewidth” for 90% of the line width)
cover_marginstring2emVertical space between the title and the cover image (e.g. “2em” for 2em)
logofile-Path to an optional logo image to be placed at the top of each page
logo_widthstring1cmWidth of the logo image in cm (e.g. “10” for 10cm)
margin_{side}string2.5cmmargin of the page (e.g. “2.5cm” for 2.5 centimeters). Can be used for top, bottom, left and right.
papersizestringa4paperPaper size to be used. See the reference guide for available sizes.
show_pagenumbersstringarabicWhether to show page numbers in the footer. Page numbers can be turned off by setting show_pagenumbers to gobble.
extra_informationstring\u00A0Extra information to be placed on the title page (e.g. “Version 2.0, Draft, university, course”). Default is a space character.

After adding the template, you can build a PDF file using the --pdf flag:

jupyter book build --pdf

Additional options can be used to customise the output. A full example of an export.yml file can be found here.