Live data from Hacker News

Typst: A Possible LaTeX Replacement

lwn.net

91–100 of 390 posts

Re: Typst: A Possible LaTeX Replacement

#92

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.

> 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.

There are lots of people (myself included) who genuinely like LaTeX, so it's not just inertia preventing people from switching (although that is definitely a significant factor).

Re: Typst: A Possible LaTeX Replacement

#93
post #41

Earlier quoted context omitted.

The fast preview makes it a fun environment for interactive graphical/visual programming. With some limitations, unfortunately no animations and don't try to create thousands of objects or curves, the language server will run out of memory and have to be restarted.

Is what you’re describing something that latex handles well? I’m no expert, but that problem seems solvable by rendering previews with say sampling of large or complex objects vs full builds that maybe take a minute if high fidelity animations or very large graphs are desired as a supported use case in something fully open source

LaTeX comping/rendering is generally extremely slow.

Re: Typst: A Possible LaTeX Replacement

#94

It's great to see Typst getting more visibility. We migrated a real-world workload to it a couple of years back: generating and e-mailing 1.5M+ PDFs daily at my org, Zerodha. Our previous pipeline was LaTeX-based (first pdflatex, then lualatex), but we were constantly fighting cryptic memory errors on large documents and huge Docker image sizes that slowed down boot times of our ephemeral workers. Switching to Typst…

For your use case, why were you using LaTeX in the first place? That is more surprising than finding a replacement for LaTeX.

Re: Typst: A Possible LaTeX Replacement

#95
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…

I also have written. thesis in reStructuredText and used Pandoc to make a latex file and then latexmk to make a PDF file from it. I also used matplotlib and Python to make PDF plots, which I then could losslessly embed into the main document. Was there anything that you were not able to achieve with reStructuredText? I am not aware of any limitations, because you can use latex in your Pandoc template and reStructured…

> Was there anything that you were not able to achieve with reStructuredText? I am not aware of any limitations, because you can use latex in your Pandoc template and reStructuredText is very powerful to begin with, compared to most if not all Markdown dialects for example. I think it might have been easy to continue writing reStructuredText, instead of latex.

Honestly I can't remember, it has been seven years since. I don't think I was aware that I could add LaTeX inside the reStructuredText, or maybe that wasn't a feature at that time. Or maybe the formulas were too complex to express in reSturedText (my topic was differential geometry). I think my main reason was that I did want control over the final layout and I wanted to add drawings in TikZ because that way the fonts in the image would match exactly the fonts in the text.

Re: Typst: A Possible LaTeX Replacement

#98

I've started using typst for small local documents that I would previously have written in markdown (or R-markdown). Typst offers programming features that are very helpful for small writing tasks that need more customization than markdown provides but that don't need the wildly expansive set of templates available in the latex world. Like other academics, I plan to stick with latex for journal articles and books, un…

I imagine that it would be productive to write a draft of a paper or book in Typist, and then do the painful LaTeX writing for the later and final drafts. The pain saved on early drafts would outweigh the cost of doing some work twice.

Re: Typst: A Possible LaTeX Replacement

#100

TBH, I'm sick about LaTeX: - compilation is heavy - it's not friendly for writing (far from the dominant markup languages) - poor support to HTML / Epub / mobile outputs - output (PDF) not friendly for parsing / digesting. - tonnes of templates, lot of mess. We should just use human friendly markups like MyST Markdown [1] or Org Mode [2]. Unfortunately, whitepapers are predominantly written in LaTeX. Thankfully, arXi…

MyST seems nice but it appears to be not a replacement for LaTeX, but is a way to embed LaTeX in non-LaTeX content
Post reply on HN