GigTypst.Content (gig_typst v0.1.0)

Copy Markdown View Source

A label Typst lays out, as GigTypst.text/2 and GigTypst.math/2 make it: its source, how it is read (:markup, :inline_math or :display_math), the font directories it looks in and its maths font. It implements Giggly.Label, so it goes where a title's string goes.

Summary

Types

mode()

@type mode() :: :markup | :inline_math | :display_math

t()

@type t() :: %GigTypst.Content{
  font_dirs: [Path.t()],
  math_family: String.t(),
  mode: mode(),
  source: String.t()
}