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.

Releases

No releases published

Packages

No packages published

Languages

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