Implementing LaTeX macros unsupported by Typst

Background

There is not always a Typst equivalent for every LaTeX macro. This document provides a guide on how to implement unsupported LaTeX macros in Typst.

The \mathscr macro

The \LaTeX and \TeX macro

The \lfloor, \rfloor, \lceil, and \rceil macros

In Typst, there are floor and ceil functions to make the floor and ceiling symbols, respectively.

However, you cannot use a separated left or right version of the symbols. e.g. There is no lfloor function in Typst. If you really need them, you may define them directly using their Unicode characters as the following:

Using the op function to define custom operators

For example, if you want to define a custom operator \myopr.

References and Credits

The following resources were used to create this document:

  1. \mathscr: Typst の数式で Stylistic set したい話 #Typst - Qiita
  2. \TeX and \LaTeX: How do I insert the `LaTeX` symbol in Typst? · typst/typst · Discussion #1732