Hacker News new | ask | show | jobs
by wdroz 819 days ago
> Yes, we are aware of typst. I think it’s cool, but C++ hasn’t replaced C, Rust hasn’t replaced C++, Typst is unlikely to replace LaTeX. Likewise, many are aware of LuaTeX, but, again, the entrenching of a 40-odd year system is not to be underestimated. I am rooting for typst, anyway, and hope it finds its place. A good place to start would be to provide a compilation toolchain from typst to TeX, if they really want to replace TeX.

Pandoc[0] can convert Typst to LaTeX.

IMO If you are able to write in Typst, write in Typst, it's so much better and readable. Your final LaTeX3 macro are hard to read and difficult to parse with the eyes... Also Typst is easier to learn.

[0] -- https://pandoc.org/try/

2 comments

pandoc is seriously under-powered for the kinds of things that LaTeX and Typst can do. Much of the information in Typst/LaTeX source code would simply be ignored during the conversion. It is fine for simple documents, but cannot handle a lot of stuff.
Pandora offers a superset of LaTeX and any other markup languages as long as you’re not using it for final rendering. I have a Markdown+LaTeX project I’m working on and try to write mostly in markdown, but can drop down into LaTeX in-line if need be. I compile a tex file with Pandoc and render with pdflatex, bibtex, makeindex, etc., etc.
This is not the workflow being discussed. Yes, you can use Pandoc Markdown (in which you can embed LaTeX) and then Pandoc can parse the markdown and produce a LaTeX file. But the actual typesetting is still done by LaTeX; here Pandoc is basically just a preprocssing step.

what was being discussed is using Pandoc to convert from Typst to LaTeX, which it can't really do because its internal document representations are not as expressive as either Typst or LaTeX.

Come on, be serious.

Pandoc can "convert" html to things too, but you wouldn't use it as a web browser.

I can't remember not being disappointed in pandoc. I used to try pandoc first for file conversions but at this point I try it last, only after exhausting format specific tools first. For example, the conversion from latex to html in pandoc is a joke, just unusable garbage, compared to the results of tex4ht.