Live data from Hacker News

Typst: A Possible LaTeX Replacement

lwn.net

31–40 of 390 posts

Re: Typst: A Possible LaTeX Replacement

#31
I have been planning to put out a quarterly Sanskrit newsletter for some time now, and was dreading having to deal with LaTeX. For basic stuff, LibreOffice PDF export works. But that is not a plain text workflow.

I then discovered typst and it is a breath of fresh air. Unicode/Dēvanāgarī support out-of-the-box, no installing gigabytes of packages, near-instant compilation.

My complements to those who got this done.

Re: Typst: A Possible LaTeX Replacement

#32
post #17

Since there are typist folks here, how do you work with hash and dollar signs? If I want to write C# on my resume, I do C`#` but there has to be a better way?

I'm not a typst user but from a quick look at the language you should be able to type C\#

You can also write a macro

#let csharp = [C\#]

And then use it as #csharp

Re: Typst: A Possible LaTeX Replacement

#34
post #26

I have written a couple of lecture notes in LaTeX and I wrote my master's thesis (mathematics) in LaTeX as well[1]. It's actually a fine language if all you want to do is write and rely on other people's templates. But actually writing my own package or understand how the underlying systems work has always seemed like black magic where individual packages have to avoid stepping on each other's toes, or add specific w…

> It would be nice if Typst could be a LaTeX replacement that makes actually layout and designing the document approachable

Those goals fall way out of the scope of LaTeX (and of course of Typst). If you want to have more control and power into a document's design, there's ConTeXt - as a graphic designer I just love it and can't imagine myself replacing it with LaTeX or Typst.

But as you said, if you want to concentrate on writing your text without thinking too much about its design, LaTeX or Typst are great for that.

Re: Typst: A Possible LaTeX Replacement

#36

Assuming it's at all desirable, it's an interesting and recurring problem of how to dislodge existing sub-optimal (sometimes even harmful) standards and notations. Almost nobody wants to learn something new when they already know something similar. Creates a heck of a momentum effect, not just from the practitioners resisting the change, but also available resources and so on.

If the software is actually good, it can start from an enthusiastic core of students, PhD students and later niche conference organizers and niche journal editors and if they gossip about their experience, it can spread through word of mouth if it's sufficiently good.

Yeah I think this is correct, with the added caveat that it must be as good as the alternative PLUS the awkwardness of switching to have any hopes of breaking out of the local minimum.

Otherwise you become Dvorak, which despite being better than Qwerty and having been around for almost a hundred years, still hasn't seen widespread adoption, in this case because the awkwardness of switching is very significant. The effect is likely smaller on something like Typst.

Re: Typst: A Possible LaTeX Replacement

#37
post #26

I have written a couple of lecture notes in LaTeX and I wrote my master's thesis (mathematics) in LaTeX as well[1]. It's actually a fine language if all you want to do is write and rely on other people's templates. But actually writing my own package or understand how the underlying systems work has always seemed like black magic where individual packages have to avoid stepping on each other's toes, or add specific w…

You footnote really describes why latex was not fine.

I recently wrote a thesis in typst. I have written other thesis in latex.

In latex i actually wrote in markdown and compiled to latex.

I don't need that for typst.

If typst can avoid enshittifaction over the next years, then I will stay with them.

Re: Typst: A Possible LaTeX Replacement

#38

These are some notes I wrote when I started out with typst when comparing with LaTeX: 1. It doesn't generate 5 bloody files when compiling. 2. Compiling is instant. 3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style). 4. List items can be either - item1 - item2, etc. or [item1], [item2]. The latter is way better because you can use anchoring to match on the braces (like "%" in vi…

Have you tried actually writing an article with it? I had very limited success. And since nobody is using it really, you're kind of on your own.

Re: Typst: A Possible LaTeX Replacement

#39

I must say I really like the more straightforward syntax, semantics, and distribution model of Typst. LaTeX is akin to programming with the C preprocessor, it's both ridiculous and amazing what people have done with it but it gets quickly intractable. However, I really do enjoy the quality of graphics, diagrammatic, and scientific output from LaTeX, even if typing them is a pain (LLMs are a huge help here). So asking…

Cetz[0] is the drawing library in typst. For your other needs check out the package repository at [1] (visualization should be the correct category).

Typst has a bibtex support by default [2].

[0] https://typst.app/universe/package/cetz [1] https://typst.app/universe/search/?kind=packages&category=vi... [2] https://typst.app/docs/reference/model/bibliography/

Post reply on HN