This is a Typst template for typsetting documents in the style of the fifth edition of Dungeon&Dragons. This package has been heavily inspired by the awesome work done by the rpgTex team on their DND-5e-LaTeX-Template.
Features
- Color schemes, fonts, and layouts are close to the core books (2014, while 2025 style may be added in the future)
[!NOTE] Fonts need to be installed on the system to be correctly used. Instructions are on the template repo.
Quick Start
Before you begin, make sure you have installed the Typst environment and the default fonts. If not, you can use the Web App or the Tinymist LSP extension for VSCode.
#import "@preview/mythographer-5e:0.0.2": *
#show: dnd-template
A more comprehensive example can be found in TheDarkTypst.typ and in the documentation (docs.typ) where most of the core functionalities are covered.
Languages
Multiple languages are supported using transl. Languages are referred to by ISO 639-1. Translations are used to correctly typeset class names, spell levels, and other D&D specific terms. The template is designed to be easily extended to support new languages, so if you want to contribute a translation, feel free to open a PR.
| Supported Languages | Code |
|---|---|
| English | en |
| Italian | it |
Custom Themes
The template supports custom themes, they can be easily setup by overriding the default config. An example can be found in lib/config, at the toa-config.
They can be found in /fonts folder of the repository.
- meander: segment pages and wrap content around images
- Background image (
img/paper.jpg) from Lost and Taken - Config injection inspired by touying
Not similar, but related projects
- 5e-spellbooks: Generate PDF reference tables and lists of spell descriptions for spellcasting characters made for the fifth edition of “that” tabletop roleplaying game.
To all the people who contributed directly or indirectly to this project!
- @boondoc - providing some regex used in the monster parsing