slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Add Typst support as another option for formula rendering

Open uwni opened this issue 7 months ago • 1 comments

Hi, Slidev is really nice as an alternative to not only the PowerPoint but also $\LaTeX$ beamer

Typst is another brand-new scientific typesetting system as a replacement to $\LaTeX$, with powerful and modern math formula typesetting support but with more concise syntax. and a better package manager support which enables one to use third party(to Typst) package to do more complicated task, like plotting, drawing vector graphics, etc.

Currently KaTeX is the only math formula renderer for Slidev. Typst could be another option for the same purpose. Especially for those who are documenting with Typst, it will bring a consistent experience.

Typst.ts is a project introducing the typst to the JS world, which makes it easy to rendering typst source code to SVG or HTML(formula will be in MathML, experimental support currently) in both server side and client side.

I would be appreciative if someone consider integrating this to Slidev! 😊

uwni avatar Apr 27 '25 13:04 uwni

Hi, For this issue, I have worked and come up with Solution and raised PR - https://github.com/slidevjs/slidev/pull/2183 Please review it.

KHemanthRaju avatar May 24 '25 09:05 KHemanthRaju