Hacker News new | ask | show | jobs
by enriquto 615 days ago
It's cute that you can write greek letters by spelling them, without any escape:

    pi, alpha
What I'd really want to type is however

    π, α
Will this work in typst? I had some trouble installing it.
1 comments

Yes that works.

What trouble did you have installing it? (It's literally a single binary with zero dependencies)

> Yes that works.

Oh, that great! My major point of friction with LaTeX is that using unicode is not straightforward. You sort of can, by including the right packages and using the right interpreters, but it imposes strange constraints involving the fonts that you can use and whatnot.

Regarding the usage, it's probably my fault. I tried to compile it locally and it didn't work at first (requires newer rustc version).

> My major point of friction with LaTeX is that using unicode is not straightforward.

Possibly you are describing how it used to be before the input encoding standard for LaTeX switched to UTF-8?

No. I'm talking about modern LaTeX. You can easily write é outside of math mode, but not inside. By default, you cannot write α either inside nor outside of math. By using the right packages, you can do both, but other things break.
Which engine? I believe XeTeX and LuaTeX support it natively?
Yes, that is the problem, precisely. Lualatex and xelatex do not support all the features of plain latex (mostly "hacky" things, like pdf controls, js animations in beamer, etc). So, you have to chose between using these features and being able to type unicode letters directly.

Probably there is a magic combination of engines and packages that allows to do everything at the same time, but I haven't found it.

If this works natively in typst, it's a great selling point for me (although I dislike the markdown-like syntax).