x

xodec

@preview

Get Codex/Typst names of symbols.

v0.3.0
Apache-2.0

Package Information

Last Updated
Minimum Typst Version
0.14.0
Authors
Malo
Categories
scriptingintegration

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/xodec:0.3.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/xodec:0.3.0": *

Version History

0.3.00.14.0
02366653e63b...
0.2.00.14.0
d3d2bea66219...

Xodec

This package makes it possible to find the names of a symbol in Codex, the library that populates the sym and emoji modules in Typst.

Usage

#get-names("x") \
#get-names("∅") \
#get-names("➡\u{FE0E}") \
#get-math-names("4") \
#get-math-names("ϕ") \
#get-math-names("ℒ\u{FE00}") \
#get-math-names("ℕ") \
#get-math-names("𝑀") \
#get-math-names("≠")

Result of the code example: The names of the characters are displayed in arrays: an empty array, an array containing two names, an array containing Typst math syntax, etc..

Changelog

Version 0.3.0

  • Update to Codex 0.3.0.

Version 0.2.0

  • get-names, get-deprecated-names, and get-math-names functions.
  • codex-version constant.