Skip to content

Eloitor/typst-to-utf8

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

49 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Typst to UTF-8 is a bodge to write simple UTF-8 math using Typst. Use the snippet tab for small math expressions and the text tab for text containing math in $...$ or $$...$$.

Mangled Typst UTF-8 approximation
nabla f(x) = 2 x βˆ‡π‘“(π‘₯) = 2π‘₯
v = diff x/diff t 𝑣 = πœ•π‘₯/πœ•π‘‘
EE[(x-mu)^2] = sigma^2 𝔼[(π‘₯βˆ’πœ‡)Β²] = 𝜎²
lim {x -> oo} 1/x = 0 lim {x β†’ ∞} 1/x = 0
Delta_t <= (1 - kappa)^t Delta_0 π›₯β‚œ ≀ (1 βˆ’ πœ…)α΅—π›₯β‚€
Phi = integral bold(E) dot d bold(A) 𝛷 = ∫ 𝐄 β‹… d𝐀
diff^2 u/diff x^2 + diff^2 u/diff y^2 = 0 πœ•Β²π‘’/πœ•π‘₯Β² + πœ•Β²π‘’/πœ•π‘¦Β² = 0
cal(N)(x; mu, sigma^2) = exp(-(x - mu)^2/sigma^2)/sqrt(2 pi sigma) 𝒩(π‘₯; πœ‡, 𝜎²) = exp(βˆ’(π‘₯ βˆ’ πœ‡)Β²/𝜎²)/βˆšΜ…2Μ…πœ‹πœŽ

This is a quick and dirty replacement of known commands to matching UTF-8 symbols. Commands that "do something" rather than produce a symbol, like mat(), do not work.

Props to Günter Milde for the Unicode ⟷ Typst mapping.

About

Write UTF-8 math with Typst syntax

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.1%
  • HTML 10.3%
  • CSS 2.6%