matsavage / DND-5e-LaTeX-Character-Sheet-Template

LaTeX package to typeset character sheets for the fifth edition of the "world's greatest roleplaying game".
103 stars 48 forks source link
dnd dnd5e dungeons-and-dragons latex lualatex rpg tex

DND 5e LaTeX Character Sheet Template

LaTeX template to typeset Dungeons and Dragons 5th edition character sheets.

Test LaTeX Template

Features

Usage

Building a character sheet

It is reccomended to look at pre-existing character sheets in the characters directory when using this repository for the first time, each text input area of the character sheet is fillable with functions defined in the template, however it may require some trial and error to have the sheet looking as you intend.

Compilation

Overleaf

This package can be used as-is with Overleaf.

Steps for running on Overleaf:

You should then be able to compile any of the example characters in the characters/ directory.

Nix

A nix flake is a reproducible way to describe the building process to nix. See https://nixos.org/download.html, on how to install nix. Afterwards running nix build in the repository will result in a successful build.

Flakes and Nix-Commands are still experimental, so they must be enabled as described at https://nixos.wiki/wiki/Flakes#Enable_flakes.

Makefile

The example or specific character sheets can be compiled using the following make commands:

make build                               # Will complile all characters

make build_character CHARACTER=unnamed   # Will complile the example "unnamed" character

make develop                             # Will drop you into a shell with all dependencies installed

GitHub Action

This repository contains a GitHub action which will build all pages in the characters/ directory and upload them as an artifact to the workflow run.

Customisation

There are a large number of character sheet customisation options available in dndtemplate.sty which acts a central location to modify colour and opacity for a number of character sheet elements.

Dependencies

This package requires LaTeX and (optionally) the DnD 5e LaTeX Template. I reccomend using the instructions provided with this package to set up your environment if not using overleaf, nix or the GitHub action in this repository.

Credits