Universe

This package allows you to display Magic the Gathering mana symbols in Typst documents.

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.

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)

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)