An unofficial, slightly opinionated Typst template for theses at Chalmers University of Technology (Gothenburg, Sweden).
The covers and front matter are based on Chalmers’s official LaTeX thesis templates and comply with all design requirements for publishing.
Overview
Layout
- Front cover
- Title page
- Imprint
- English abstract
- Swedish abstract
- Preface
- Acknowledgements
- List of abbreviations
- Nomenclature
- Table of contents
- List of figures
- List of tables
- …
- Back cover
Features
- Supports both English and Swedish via
set text(lang: "en")andset text(lang: "sv") - Supports both bachelor’s and master’s theses
- Supports University of Gothenburg collaborations
- Custom styled level 1 headers for chapters and appendices
- Numeric numbering for chapters and alphabetical for appendices (via
#show: appendix) - A
captionfunction for specifying separate figure captions in the list of figures and underneath figures. - Optional, recto-aligned page formatting for physical printing
- Uses
Arialfont for cover pages if available, otherwise falls back toTeX Gyre Heros(included in Typst web app). See docs for how to add custom fonts. - Separate numbering for figures and tables
- Figure and table numbering in appendices are prefixed by appendix numbering letter (e.g., A1)
- Figure and table numbering reset for each appendix
- Embeds the title, author, abstract, keywords, and date into the file metadata
Getting Started
Visit the template’s homepage and click “Create project in app” to try it out in the Typst web app.
Alternatively, create a local project via the Typst CLI:
typst init @preview/cthesis:0.1.0
Usage
To initialize the template, invoke the cth-thesis function via a show rule at the top of your document:
#show: cth-thesis.with(title: "Thesis Title")
With configuration options (see next section) being passed as needed. All content following this declaration constitutes the thesis body, and level 1 headings (=) mark chapters, level 2 (==) sections and level 3 (===) subsections.
Finally, optionally invoke appendix as a show rule to mark the subsequent sections as appendices and format them accordingly.
#show: appendix
Level 1 headings now mark appendices instead of chapters.
Configuration
title: The main title of the thesissubtitle: An optional subtitleauthors: The name(s) of the author(s)program: The academic programdepartment: The department hosting the projectabstracts: A dictionary containing the abstract text mapped by language keys:en: English abstractsv: Optional Swedish abstract
keywords: The keywords used for metadata and the abstract pagesupervisors: The supervisor(s) for the thesisexaminer: The primary examineradvisor: The corporate or industrial advisor, if applicableco-examiner: The co-examiner who helped grade the thesiscover: A dictionary to add a cover image, accepting:image: Content representing a cover imagedescription: Description of the cover image for the imprint page
preface: The body text for the preface sectionacknowledgments: The body text for the acknowledgments sectiongu: A boolean value; set totrueif the project is a joint collaboration with the University of Gothenburg, which adjusts logos and branding accordinglyyear: The year of publication; defaults to the current calendar yeartype: The thesis type, accepting"b","ba","bachelor", or"bachelors"for Bachelor’s theses, and"m","ma","master", or"masters"for Master’s theses.print: A boolean value; iftrue, the layout optimizes page breaks for physical two-sided printing by forcing major sections to start on right-hand pagesabbreviations: A dictionary mapping abbreviations directly to their full definitions (e.g.,("CTH": "Chalmers Tekniska Högskola")).nomenclature: A nested dictionary of dictionaries used to group terms by category
To do
- Use new Chalmers logos
- Abstracts in arbitrary languages
License
MIT. See LICENSE for details.
The included Chalmers and University of Gothenburg SVG logo assets are derived from the current Chalmers/GU Word cover templates. Their use is subject to the universities’ own visual identity and logo rules.