Live data from Hacker News

Typst: An easy to learn alternative for LaTex

github.com

161–170 of 192 posts

Re: Typst: An easy to learn alternative for LaTex

#161

Earlier quoted context omitted.

More than plain text? I doubt so.

common people don't talk about plain text. what are you? a hacker?!?

I mean I guess you don't care as long as the file is signed if it is just some regulatory stuff that barely anyone would ever read anyway.

Re: Typst: An easy to learn alternative for LaTex

#163
Disclaimer: I haven’t tried the syntax but it doesn’t scream “easier” to me. Latex doesn’t either.

Plus this doesn’t seem to compile down to latex so I also lose the engine. From experience, latex makes beautiful documents and choices which I’ll always prefer over ease of use.

Re: Typst: An easy to learn alternative for LaTex

#164
post #109
post #79

The main problem I have with Typst compared with LaTeX is that it doesn't handle basic fine typographic features, such as the different types of spacing in mathematical mode (mathop, mathbin, mathrel, etc.) or the size of delimiters (big, bigg, etc.)

Am I misunderstanding what exactly you are looking for? You can change the spacing in math mode of symbols/operators with https://typst.app/docs/reference/math/class/ and delimiter size with https://typst.app/docs/reference/math/lr#functions-lr (or automatically).

I didn't know about math classes, thank you for the reference

The issue I have with delimiters is that there is no option for "big", but only for "140%" or whatever, making it harder to be consistent Someone created an issue on this on GitHub if I remember correctly

And automatically chosen sizes are often too large

Re: Typst: An easy to learn alternative for LaTex

#165
post #150

Two things interest me from this project: More templates than LaTeX. I have made PDF presentations in LaTeX, which look good, but they all look the same. Some variety is good. Unicode chars support. I prefer to type α instead of \alpha. That's it, both things together will make a LaTeX killer for me.

> Unicode chars support. I prefer to type α instead of \alpha.

This is not done by default by LaTeX, but if you can bear to \usepackage{unicode-math} then it's readily available. A life changer!

Regarding presentations, what do you mean exactly? There are a lot of weirdly different beamer themes. You can even put a single verbatim block inside each slide and you'll just have a "text mode" presentation, if that is your thing.

Re: Typst: An easy to learn alternative for LaTex

#166

Earlier quoted context omitted.

I've done .doc -> .md -> .tex -> .pdf via pandoc (e.g. to convert a confluence document to a nicely typeset PDF), so I'm not sure there's much difference. Naturally, a format with more metadata loses metadata when converted to one with less (and the reverse, you may need to add metadata in when going up the chain), but unless your document is bound to a specific format (in which case, I'd pick RST for HTML and LaTeX…

Markdown doesn't give you a table of contents, an index, page breaks, control over typesetting, control over table layout, captioned figures, diagramming tools, etc. The difference is about the same magnitude as between Pong and Call of Duty. Yes they're both video games, sometimes one is preferable over the other, but they are not equivalent.

Pandoc/Quarto markdown gives you most of these.

In my experience, it rarely really matters fine control. If the effort is too big to tweak the templates/markdown you export it to an intermediate state (LaTeX/Office/whatever) and drop the original markdown source.

There is no lock-in.

Re: Typst: An easy to learn alternative for LaTex

#167

Typst has been pretty amazing, and at my organization, we’re very happy with it. We needed to generate over 1.5 million PDFs every night and experimented with various solutions—from Puppeteer for HTML to PDF conversions, to pdflatex and lualatex. Typst has been several orders of magnitude faster and has a lighter resource footprint. Also, templating the PDFs in LaTeX wasn’t a pleasant developer experience, but with T…

Thanks for your writeup, that was exceptionally well-presented.

Re: Typst: An easy to learn alternative for LaTex

#168

Earlier quoted context omitted.

pdf/ps can easily be created in a way that data for text and qr code fields are easily in plain text. seems like yall focusing too much on the higher level tools instead of what's right in front of you.

Company branding is an important aspect of PDF creation that many tools struggle to handle correctly. PDF documents often need to include logos, company colors, fonts, and other branding elements. Puppeteer is popular because you can control these aspects through CSS. However, Puppeteer can be challenging to work with for larger documents, as each change requires programming effort or when your software needs to need…

Yep, it's mostly about branding and control. It needs certain concrete layout and logos, and has to be relatively easy to change them.

We also render shipping labels in PDF, and we have to be VERY strict with that. But we're still not touching that, as that process is not at slow and problematic as the invoicing one.

Re: Typst: An easy to learn alternative for LaTex

#169

Earlier quoted context omitted.

Having composed pieces of academic writing, I would like that, journals would start to supporting typst, or, plugins/bridges to LaTeX/Word would fall in place. For now I would not chose to write a paper in typst, because I most certainly need to convert it once it leaves the institution (even arXiv require LaTeX source). Tooling around LaTeX is quite good today, with a plethora of IDEs helping. Personally I use Emacs…

Typst is missing vital features to produce professional looking documents. Latex and Adobe InDesign use paragraph based algorithms for line breaks and hyphenation (see http://dx.doi.org/10.1002/spe.4380111102 for Latex). That is the main reason why papers written in Word look so amateurish. Proper support for footnotes seems to be also lacking in Typst. Footnotes might be handled properly in a future version of Typst…

I'm not sure what you're referring to because when justification is enabled Typst uses almost the same line breaking algorithm as TeX. [1]

One problem we had was over-eager hyphenation. We've addressed that recently. [2]

[1]: https://github.com/typst/typst/blob/9b001e21121ab7b5645aa36f...

[2]: https://github.com/typst/typst/pull/4584

Re: Typst: An easy to learn alternative for LaTex

#170

Earlier quoted context omitted.

pdf/ps can easily be created in a way that data for text and qr code fields are easily in plain text. seems like yall focusing too much on the higher level tools instead of what's right in front of you.

Company branding is an important aspect of PDF creation that many tools struggle to handle correctly. PDF documents often need to include logos, company colors, fonts, and other branding elements. Puppeteer is popular because you can control these aspects through CSS. However, Puppeteer can be challenging to work with for larger documents, as each change requires programming effort or when your software needs to need…

how having the value and name in an invoice as plain text affect branding? or do you mean there client branding is added to the invoice??

the end result when you open the file is still a regular pdf. it's just encoded with some areas unpacked

Post reply on HN