Hacker News new | ask | show | jobs
by sega_sai 616 days ago
I was hoping that the syntax for equations would be borrowed from LaTeX but it is not the case unfortunately. I would like to switch away from LaTeX, but i think the syntax for equations in LaTeX is pretty sensible actually.
2 comments

Have you tried with ConTeXt? As LaTeX, it's built atop TeX - though it's not as modular (and popular) it's more powerful.

I'd like to like Typst, but (as mentioned the other day) it follows the same model as LaTeX - great for some predefined styles, but the moment you want or need something different you'd need to get third party plugins, and with that all the perks and cons they may have.

> Have you tried with ConTeXt?

Have you taken a look at my text editor, KeenWrite?

https://keenwrite.com/screenshots.html

The text processing chain for KeenWrite is:

    Markdown (input) -> XHTML (export) -> ConTeXt (import) -> PDF (output)
The look and feel of the final PDF document is controlled by a theme, which allows complete customization.
Do give typst's syntax a try! I had the same worry as you but I now find typst's syntax more pleasant to write, and the resulting code is much more readable. Instead of

    \frac{1}{\alpha - 1}\ \mathrm{for}\ n\in\{1, \ldots, N\}
you get to write

    1/(alpha - 1) "for" n in {1, ..., N}