logoalt Hacker News

anboterolast Tuesday at 10:59 PM1 replyview on HN

That Typst source looks really clean. I may go back to look into its HTML support.

Thanks for sharing!


Replies

enricozblast Wednesday at 9:18 AM

Thanks! The main thing that I had difficulty with, which you can see from the typst source, is the rendering and spacing around inline math symbols. They are rendered as SVGs, which is fine but then copying them doesn't work. Their spacing is sometimes unpredictable so I'll add something like $thick x + y$ to pad on the left hand side. I'm not sure what parts of the math symbol contribute to the dimensions of the SVG and I'm sure it's rather complex, but other than that the experience has been solid.