logoalt Hacker News

xvilkatoday at 5:18 AM2 repliesview on HN

I have been using TeX/LaTeX for ages and today same issues hinder the user experience like multiple decades ago - cryptic error messages, complex pipeline, lack of the proper Unicode symbols support out of the box, and so on.

Nowadays, with Typst existing, it's vital for TeX ecosystem to solve these issues, since none of them are present in Typst. Projects like Tectonic would solve this for TeX, but they lack enough hands and (maybe) financial support.

Otherwise, using TeX only makes sense nowadays only if 1) you already have some templates 2) some features are still missing in Typst 3) you are just forced to use TeX/LaTeX for whatever reason.


Replies

gucci-on-fleektoday at 9:00 AM

(Disclaimer: I'm on the TeX Live team)

> cryptic error messages

These have somewhat improved recently, but I agree that they're still not great.

> complex pipeline

You can typically just run "latexmk --lualatex <filename.tex>" and your document should compile in a single step.

> lack of the proper Unicode symbols support out of the box

UTF-8 has been the default input encoding since 2018 [0], so character input should mostly just work. Using complex scripts (Arabic, Devanagari, etc.) requires XeLaTeX or LuaLaTeX, but LuaLaTeX is recommended for most documents anyways [1].

Now, you still won't be able to typeset arbitrary characters without any additional setup, but this is because there is no single font that contains all characters, and since mismatched fallback fonts usually looks bad, the (La)TeX developers do not want this to be the default. But

  \usepackage{fontspec}
  \setmainfont{Some Font with your Characters}
should be all that you need in most cases.

> Projects like Tectonic would solve this for TeX

All of these have already been fixed in TeX, except for the error messages, which would be impossible for Tectonic to fix.

(Background: the TeX engines give excellent error messages, and LaTeX gives good error messages for "expected" errors, but unexpected errors usually give a TeX engine error message unrelated to your LaTeX input, since LaTeX is internally implemented on top of TeX engine macros. So much like C++ template errors, it isn't really possible to fix this.)

> Otherwise, using TeX only makes sense nowadays only if

4) If you actually like TeX for some reason like I do :)

[0]: https://www.latex-project.org/news/latex2e-news/ltnews28.pdf...

[1]: https://www.latex-project.org/news/2024/11/01/issue40-of-lat...

show 1 reply
emil-lptoday at 8:04 AM

Using LaTeX makes sense because that's what all journals and conferences expect.

I'm writing two books, both in LaTeX.

I really don't get what the problem is.

show 1 reply