Live data from Hacker News

Typst 0.13 is out now

typst.app

21–30 of 61 posts

Re: Typst 0.13 is out now

#22
post #18
post #16

After reading Laurenz's blog post on TeX vs Typst layout [1], it made me wonder: how hard would it be at this point for them to make Typst directly understand TeX, and let you insert chunks of TeX. It would make for a really nice upgrade path. Of course, being bug-for-bug compatible once people layer on tons of TeX packages seems like a losing game. But if most straightforward TeX stuff "just worked", it would be an…

>let you insert chunks of TeX Honestly a better first step would be getting inserting another pdf plot to work, but seems hard https://github.com/typst/typst/issues/145

Tl;dr it's because they don't want to neglect the other output formats PNG and SVG. For those they'd have to render the PDF, for which there is apparently no satisfactory rust package.

Re: Typst 0.13 is out now

#23
post #9

Is this a LaTeX killer yet?

As long as I don't have to submit a paper, I always use Typst nowadays for PDF generation. So for me that answer is a yes. (I also wrote my PhD thesis in typst and the thesis was accepted.)

Out of curiosity, what was the thesis about? Can you share the PDF?

Re: Typst 0.13 is out now

#24

Is this a LaTeX killer yet?

I've migrated everything I did in LaTeX to Typst. Books (I've written 12 books), invoicing, slides, and handouts. Happy to never touch LaTeX again.

How's the typesetting and justification nowadays? Last time I committed to it for a few months I found the latter to be about the quality of HTML with a better linebreak algorithm.

Re: Typst 0.13 is out now

#26
post #20
post #16

After reading Laurenz's blog post on TeX vs Typst layout [1], it made me wonder: how hard would it be at this point for them to make Typst directly understand TeX, and let you insert chunks of TeX. It would make for a really nice upgrade path. Of course, being bug-for-bug compatible once people layer on tons of TeX packages seems like a losing game. But if most straightforward TeX stuff "just worked", it would be an…

There is a Typst package called MiTeX that supports at least some basic TeX input. [1] https://typst.app/universe/package/mitex

Oh, wow. That's fantastic!

Re: Typst 0.13 is out now

#27
post #21

The only downside of typst is that there is no libtypst, which would make it easy to embed.

https://crates.io/crates/typst

That’s a rust library or rather typst code also gets published to crates.io. But it’s not something that can be turned into a libtypst.so/dylib/dll.

Re: Typst 0.13 is out now

#28

Is this a LaTeX killer yet?

Probably not for scientific publishing until journals and conferences provide Typst templates as they do with LaTeX. I wish it will happen, to be honest it would be great to get rid of LaTeX. It's old and it shows a lot, a replacement is long overdue.

Re: Typst 0.13 is out now

#29
post #27

Earlier quoted context omitted.

https://crates.io/crates/typst

That’s a rust library or rather typst code also gets published to crates.io. But it’s not something that can be turned into a libtypst.so/dylib/dll.

You can turn a Rust library into a dynamic library w/ a C ABI - exposing the whole API would be tedious, even with tools like bindgen, but if you just want to provide a "render this char* to PDF" function (or whatever) then it's pretty easy [1].

I know of a few Rust crates that offer something like this - Minijinja, off the top of my head.

[1]: https://doc.rust-lang.org/nomicon/ffi.html#calling-rust-code...

Re: Typst 0.13 is out now

#30
post #22
post #18

Earlier quoted context omitted.

>let you insert chunks of TeX Honestly a better first step would be getting inserting another pdf plot to work, but seems hard https://github.com/typst/typst/issues/145

Tl;dr it's because they don't want to neglect the other output formats PNG and SVG. For those they'd have to render the PDF, for which there is apparently no satisfactory rust package.

and there's no nice way to insert PDF using WebASM, which is their first-tier support and monetization platform (i.e. 1st party Overleaf)
Post reply on HN