-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
new featureEnhancement specifically adding a new feature (feature request should be used for issues instead)Enhancement specifically adding a new feature (feature request should be used for issues instead)
Milestone
Description
Description of proposed feature
It would be nice to have support for the typst typesetting language next to LaTeX.
https://github.com/typst/typst
How can the new feature be used?
from manim import *
complex_typst_example = \
"""$ frac(a^2, 2) $
$ vec(1, 2, delim: "[") $
$ mat(1, 2; 3, 4) $
$ lim_x =
op("lim", limits: #true)_x $
"""
class Formula(Scene):
def construct(self):
s = Typst(f"This is normal text rendered with typst.")
t = MathTypst("A = pi r^2")
u = Typst(complex_typst_example)
self.add(s)
self.add(t)
self.add(u)
See https://typst.app/docs/reference/math/ for the typst math introduction.
dongguaguaguagua, bkorecic, supersurviveur, wmstack, starptr and 4 moremcncmpineapplehunter, rednixch, NicoWeio, supersurviveur, starptr and 3 more
Metadata
Metadata
Assignees
Labels
new featureEnhancement specifically adding a new feature (feature request should be used for issues instead)Enhancement specifically adding a new feature (feature request should be used for issues instead)
Type
Projects
Status
🆕 New