A Typst port of undergradmath.
The following limitations are also annotated in the document.
-
Script letters, such asIt's possible to get script letters like$\mathscr{P}$ form\mathscr{P}
, are unavailable.$\mathscr{P}$ fromcal(P)
by changing thestylistic-set
of thetext()
function. The stylistic set to apply is font-specific, so it's necessary to consult the font to know which set is desired. -
Greek letter$\varsigma$ \u{03C2}
from\varsigma
is not defined as a symbol and should probably be defined assigma.alt
.sigma.alt
is available as fromtypst v0.5.0
. -
$\emptyset$ from\emptyset
is available in Typst asnothing
, while$\varnothing$ from\varnothing
is not. May need alet
binding with some specific fonts. See the Version 3.93 section of README at https://www.ctan.org/tex-archive/fonts/newcomputermodern. See also #10 and #16 for details. -
$\imath$ \u{1D6A4}
and$\jmath$ \u{1D6A5}
, from\imath
and\jmath
respectively, are not defined as symbols. They are used in like vectors$\vec{\imath}$ with\vec{\imath}
.$\imath$ and$\jmath$ aredotless.i
anddotless.j
respectively as fromtypst v0.4.0
. -
It's automatic if you write$\widehat{x + y}$ from\widehat{x + y}
is unavailable.$hat(x+y)$
, as mentioned in #2. -
No idea withIt can be obtained with$\doteq$ from\doteq
. Maybe use fonts from mathabx or do some spacing adjustment withdot
andeq
.\u{2250}
, which is a bit tricky. -
LaTeX arrays (i.e., matrices without fences) are unavailable, but it's easy to get them with theIt's actually available withgrid
function. For math mode, it would be nice to add a new option""
fordelim
of themat
function.$mat(delim: #none, ..)$
. -
No idea with spacing between values and units. It would be really great to have something like siunitx.The space between values and units can bethin
(\u{2009}
), as mentioned in #17. There are also some amazing Typst ports of siunitx, such as metro and unify.
Like undergradmath, typst-undergradmath is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
If you're interested in contributing to this project, feel free to comment on existing issues, open new issues and create pull requests.
If you create a pull request, make sure to observe the following rules:
- adopt Conventional Commits, and
- keep the document two-page.