Live data from Hacker News

Typst: A Possible LaTeX Replacement

lwn.net

291–300 of 390 posts

Re: Typst: A Possible LaTeX Replacement

#291
post #127
post #119

Earlier quoted context omitted.

E.g. Pandoc, universal tool…

You will be surprised to learn that pandoc uses latex for generating the PDF. It's barely hidden: https://www.pandoc.org/demo/example33/2.4-creating-a-pdf.htm...

I know it ;) But we are talking about how to use something universal. I like pandoc as it is easy to use and… boring.

Re: Typst: A Possible LaTeX Replacement

#292
post #172

Earlier quoted context omitted.

> I've been using LaTeX for over ten years and I still wouldn't say that I "know" TeX in any meaningful way. I was not only productive but proficient in Typst in a day or two. That's an interesting insight. Do you have an idea why this is? Do you have a CS background?

From experience, you don’t need to not have a CS background to find TeX/LaTeX difficult or obscure to customize or extend. Here’s a challenge to try (I hacked together something similar that only works in specific cases): write an environment where you get N columns in portrait page mode, with a vertical ruler, say, 12pt to the left of each column; respecting different paper sizes. The amount of \makeatother, and wha…

> The amount of \makeatother, and what does that even mean??

I’m not a TeX lover, but this part is just a snipe. I’m guessing you know and this was a joke. Apologies that it annoyed me enough to write this comment.

If you care enough to read this, you could learn the purpose of \makeatother [1]. It’s not tricky.

[1]: https://tex.stackexchange.com/questions/8351/what-do-makeatl...

Re: Typst: A Possible LaTeX Replacement

#293
I'm teaching compsci at university, and since a few years I create all the material I use (slides, exams, sometimes booklets) in Typst. It does perfectly the job, and it's fast. I'm 100% convinced, even tho I was not a big LaTeX user before, so can't compare the two.

Re: Typst: A Possible LaTeX Replacement

#294

Earlier quoted context omitted.

> 5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you need them. You can define macros anywhere you want, but you can only load packages in the preamble (before \begin{document}). I'm not familiar with Typst, but I would assume that it also requires you to load packages at the top of the document (or at least that…

I am 95% sure that you can import wherever you want. I remember doing it with Tables i defined in an extra document and then imported only where i actually needed them.

There are multiple kinds of import in latex.

The GP specifically mentions packages, so means \usepackage.

Re: Typst: A Possible LaTeX Replacement

#295

Earlier quoted context omitted.

> 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 concentr…

I have hear of ConTeXt, but never tried it. I originally wanted to write my resume in LaTeX, but I quickly realized that my choice was either to use a template and have a resume that looks like everyone else's, or dig deeply into the arcane working of TeX. In the end I had my sister do it in InDesign, but now she is the only one who can update it. I would love to remake it in something I can actually edit myself, whe…

I really think Context is the correct starting point if you want to make your own thing with the Tex quality. So many people frustrated that Latex makes it kinda hard to customize things and I was too. There is a learning curve to use the advanced features of Context but at least it feels like a sane system (and generally no need to add packages, the power to change the style of your document is fully granted to you).

Re: Typst: A Possible LaTeX Replacement

#296
I doubt it would come to completely replace LaTeX. The momentum behind LaTeX is enormous. Having said that, if it manages to simplify language handling, fonts, and bibliographhies it would be great.

But, especially, it would be good to see whether it improves on LaTeX's handling of tabulars (tables) and floats (figures), somethingh that is kind of an esoteric art right now. I wish Typst the best.

Re: Typst: A Possible LaTeX Replacement

#297
post #225

The programming parts are very tempting, but I find the philosophy of the math mode input simplification to be questionable. E.g. automatically generating fractions from "/", or removing parentheses depending on whether they are redundant with other grouping. Those are all choices that I want explicit control over, and the most readable choice depends strongly on the details of the expressions. After some digging it'…

I am also not a fan of automatic fraction.

BTW, I notice that both of your complaints will be addressed in the next version:

https://github.com/typst/typst/pull/6672

https://github.com/typst/typst/pull/6442 , see also https://laurmaedje.github.io/posts/math-mode-problem/

Re: Typst: A Possible LaTeX Replacement

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

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

Sure, but if you want to just _write_ then latex is just fine. I don’t understand why you had to write in markdown?

Re: Typst: A Possible LaTeX Replacement

#299
post #172

It's night and day. I'm a PhD student currently writing my thesis in Typst. On paper this is an absurdly risky decision: it's a new technology without a huge user-base, it's not totally stable yet, etc. But I tried Typst and I had no choice. It was obviously the right thing to do, even though I'm going to have to make a pixel-perfect clone of my university's LaTeX template. I've been using LaTeX for over ten years an…

> I've been using LaTeX for over ten years and I still wouldn't say that I "know" TeX in any meaningful way. I was not only productive but proficient in Typst in a day or two. That's an interesting insight. Do you have an idea why this is? Do you have a CS background?

Ease of use can't have been top of mind when creating Tex, that's all.

Re: Typst: A Possible LaTeX Replacement

#300
As an economist, I write papers for a living. I use quarto markdown, which takes latex and typst and leverages pandoc behind the scenes to render PDFs or other formats. It’s as easy as it gets.
Post reply on HN