Package Information
- Last Updated
- Minimum Typst Version
- 0.14.0
- Authors
- Pazzaz
- Categories
- visualization
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/wubrg:0.1.02. Import in your Typst file
Add this to your .typ file:
#import "@preview/wubrg:0.1.0": *wubrg
This package allows you to display Magic the Gathering mana symbols in Typst documents.
Usage
This library exports a single function, mana, which allows you to display mana symbols. First you import it:
#import "@preview/wubrg:0.1.0": mana
then you write #mana[X], where X is the sequence of mana symbols.
Examples
| Mana type | Typst code |
|---|---|
| Green | mana[g] |
| Green or white hybrid | mana[g/w] |
| 5 generic and 1 blue | mana[5u] |
| 5 generic or blue hybrid | mana[5/u] |
| Cost of Ajani, Sleeper Agent | mana[1g{g/w/p}w] |
| Red and snow | mana[rs] |
| Snow and red | mana([sr], sort: false) |
Options
mana has a number of options:
sort: for consecutive mana symbols, should they become sorted. (default: true)normalize-hybrid: for hybrid mana symbols, should they be normalized, i.e. should the halves be sorted. (default: true)shadow: whether to draw drop-shadows (default: true)size: size of the mana symbols. (default: 1em)