Skip to content

Instantly share code, notes, and snippets.

@jason-s
Last active March 23, 2023 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jason-s/f3333130f1e38cf41e68ea82ccd45621 to your computer and use it in GitHub Desktop.
Save jason-s/f3333130f1e38cf41e68ea82ccd45621 to your computer and use it in GitHub Desktop.
LaTeX -> typst migration guide
LaTeX (render) typst (render)
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ $$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ sum_(i=0)^n i^2 = ((n^2+n)(2n+1))/6
\lim_{\Delta x \to 0} \frac{\sin (x + \Delta x) - \sin x}{\Delta x} = \frac{d}{dx} \sin x = \cos x $$\lim_{\Delta x \to 0} \frac{\sin (x + \Delta x) - \sin x}{\Delta x} = \frac{d}{dx} \sin x = \cos x$$ lim_(Delta x->0) (sin (x + Delta x) - sin(x))/(Delta x) = d/(d x) sin x = cos x
\mathbf{T}(\theta) = \begin{bmatrix}\cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} (won't render in this form in GitHub Markdown math in a table) #let bf(x) = $upright(bold(#x))
#set math.mat(delim: "[")
bf(T)(theta) = mat(cos theta, -sin theta; sin theta, cos theta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment